Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions clang/lib/Basic/Targets/NVPTX.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ class LLVM_LIBRARY_VISIBILITY NVPTXTargetInfo : public TargetInfo {
Opts["cl_khr_int64_extended_atomics"] = true;
Opts["cl_khr_fp16"] = true;
Opts["cl_khr_3d_image_writes"] = true;
Opts["__opencl_c_3d_image_writes"] = true;
Opts["__opencl_c_images"] = true;

Opts["__opencl_c_generic_address_space"] = true;
}
Expand Down
8 changes: 0 additions & 8 deletions libclc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -514,14 +514,6 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
# Build for OpenCL 3.0 independently of the target or device.
list( APPEND build_flags -cl-std=CL3.0 )

# OpenCL 3.0 extensions
string(CONCAT CL_3_0_EXTENSIONS
"-cl-ext="
"+__opencl_c_3d_image_writes,"
"+__opencl_c_images,"
"+cl_khr_3d_image_writes")
list( APPEND build_flags "-Xclang" ${CL_3_0_EXTENSIONS} )

# Add platform specific flags
if(WIN32)
list(APPEND build_flags -D_WIN32)
Expand Down