summaryrefslogtreecommitdiff
path: root/src/kernels
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-10-14 11:43:57 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2017-10-14 11:43:57 +0200
commit54d0c440ce84d61db1b462033052dd0f532a40d8 (patch)
treeb117bb9044a2f6b56428af2fc8e73c27c106ba15 /src/kernels
parent16b9efd60528ea9230810e6cb6287fe780f02527 (diff)
Various fixes to make the host code and sample compile with the CUDA API
Diffstat (limited to 'src/kernels')
-rw-r--r--src/kernels/opencl_to_cuda.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/kernels/opencl_to_cuda.h b/src/kernels/opencl_to_cuda.h
index 43a26a2f..2e46bc2b 100644
--- a/src/kernels/opencl_to_cuda.h
+++ b/src/kernels/opencl_to_cuda.h
@@ -11,6 +11,11 @@
//
// =================================================================================================
+// Enables loading of this file using the C++ pre-processor's #include (C++11 standard raw string
+// literal). Comment-out this line for syntax-highlighting when developing.
+R"(
+// =================================================================================================
+
// Replaces the OpenCL keywords with CUDA equivalent
#define __kernel __placeholder__
#define __global
@@ -49,3 +54,9 @@ typedef struct { float s0; float s1; float s2; float s3;
float s12; float s13; float s14; float s15; } float16;
// =================================================================================================
+
+// End of the C++11 raw string literal
+)"
+
+// =================================================================================================
+