summaryrefslogtreecommitdiffstats
path: root/test/SemaCUDA/cuda.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCUDA/cuda.h')
-rw-r--r--test/SemaCUDA/cuda.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCUDA/cuda.h b/test/SemaCUDA/cuda.h
index e3aeb99..26a8df0 100644
--- a/test/SemaCUDA/cuda.h
+++ b/test/SemaCUDA/cuda.h
@@ -10,7 +10,7 @@
struct dim3 {
unsigned x, y, z;
- dim3(unsigned x, unsigned y = 1, unsigned z = 1) : x(x), y(y), z(z) {}
+ __host__ __device__ dim3(unsigned x, unsigned y = 1, unsigned z = 1) : x(x), y(y), z(z) {}
};
typedef struct cudaStream *cudaStream_t;
OpenPOWER on IntegriCloud