Skip to content

Instantly share code, notes, and snippets.

Avatar

Axel Huebl ax3l

View GitHub Profile
@ax3l
ax3l / cuda.h
Created Apr 26, 2018 — forked from eliben/cuda.h
Minimal CUDA support header for parsing with Clang
View cuda.h
/* Minimal declarations for CUDA support. Testing purposes only. */
#define __constant__ __attribute__((constant))
#define __device__ __attribute__((device))
#define __global__ extern "C" __attribute__((global))
#define __host__ __attribute__((host))
#define __shared__ __attribute__((shared))
#define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__)))
#define __forceinline__ __attribute__((always_inline))
View YT.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.