aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCUDA/cuda.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCUDA/cuda.h')
-rw-r--r--test/SemaCUDA/cuda.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCUDA/cuda.h b/test/SemaCUDA/cuda.h
new file mode 100644
index 0000000000..c503747820
--- /dev/null
+++ b/test/SemaCUDA/cuda.h
@@ -0,0 +1,7 @@
+/* Minimal declarations for CUDA support. Testing purposes only. */
+
+#define __constant__ __attribute__((constant))
+#define __device__ __attribute__((device))
+#define __global__ __attribute__((global))
+#define __host__ __attribute__((host))
+#define __shared__ __attribute__((shared))