diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2019-05-11 20:39:00 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2019-05-11 20:39:00 +0200 |
commit | af6a9eedd118b0e3d7f1a2098c10ff90b27b5d0e (patch) | |
tree | a5644ea6de5a2b72772238d35741072c5db54486 /src/utilities/compile.cpp | |
parent | 9cbffc9b7cbcfa6d6c8a048c45c1ad52d22effb3 (diff) |
Added a function to set the OpenCL kernel standard, either 1.1 or 1.2
Diffstat (limited to 'src/utilities/compile.cpp')
-rw-r--r-- | src/utilities/compile.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utilities/compile.cpp b/src/utilities/compile.cpp index 00cb90cb..aeb7a3e2 100644 --- a/src/utilities/compile.cpp +++ b/src/utilities/compile.cpp @@ -111,6 +111,7 @@ std::shared_ptr<Program> CompileFromSource( // Compiles the kernel auto program = std::make_shared<Program>(context, kernel_string); try { + SetOpenCLKernelStandard(device, options); program->Build(device, options); } catch (const CLCudaAPIBuildError &e) { if (program->StatusIsCompilationWarningOrError(e.status()) && !silent) { |