From 2d7b648a243a97d18899677a51c9e441d6edf508 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sat, 14 Oct 2017 10:49:25 +0200 Subject: Added OpenCL to CUDA translation header for the kernels --- src/routine.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/routine.cpp') diff --git a/src/routine.cpp b/src/routine.cpp index aaa85fde..0f9fe360 100644 --- a/src/routine.cpp +++ b/src/routine.cpp @@ -167,6 +167,13 @@ void Routine::InitProgram(std::initializer_list source) { source_string += "#define GLOBAL_MEM_FENCE 1\n"; } + // Optionally adds a translation header from OpenCL kernels to CUDA kernels + #ifdef CUDA_API + source_string += + #include "kernels/opencl_to_cuda.h" + ; + #endif + // Loads the common header (typedefs and defines and such) source_string += #include "kernels/common.opencl" -- cgit v1.2.3