[PATCH] D20389: NVPTX: Add supported CL features
Jan Vesely via llvm-commits
llvm-commits at lists.llvm.org
Wed May 18 14:57:57 PDT 2016
jvesely created this revision.
jvesely added a reviewer: jholewinski.
jvesely added subscribers: llvm-commits, yaxunl.
jvesely set the repository for this revision to rL LLVM.
Fixes libclc compilation broken by r269670
Taken from clinfo on one nVidia system, probably not accurate. It's enough to fix clc build.
Repository:
rL LLVM
http://reviews.llvm.org/D20389
Files:
lib/Basic/Targets.cpp
Index: lib/Basic/Targets.cpp
===================================================================
--- lib/Basic/Targets.cpp
+++ lib/Basic/Targets.cpp
@@ -1840,6 +1840,21 @@
return GPU != GK_NONE;
}
+ void setSupportedOpenCLOpts() override {
+ auto &Opts = getSupportedOpenCLOpts();
+ Opts.cl_clang_storage_class_specifiers = 1;
+ Opts.cl_khr_gl_sharing = 1;
+ Opts.cl_khr_gl_event = 1;
+ Opts.cl_khr_d3d10_sharing = 1;
+ Opts.cl_khr_subgroups = 1;
+
+ Opts.cl_khr_fp64 = 1;
+ Opts.cl_khr_byte_addressable_store = 1;
+ Opts.cl_khr_global_int32_base_atomics = 1;
+ Opts.cl_khr_global_int32_extended_atomics = 1;
+ Opts.cl_khr_local_int32_base_atomics = 1;
+ Opts.cl_khr_local_int32_extended_atomics = 1;
+ }
};
const Builtin::Info NVPTXTargetInfo::BuiltinInfo[] = {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20389.57683.patch
Type: text/x-patch
Size: 815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160518/90b9910a/attachment.bin>
More information about the llvm-commits
mailing list