Add -Wno-c++11-narrowing to ComputeCpp device compiler flags to avoid build errors on 32-bit targets. (#109) (#11244)
This commit is contained in:
parent
1e48740b87
commit
fc87d9110c
2
third_party/sycl/crosstool/computecpp.tpl
vendored
2
third_party/sycl/crosstool/computecpp.tpl
vendored
@ -73,7 +73,7 @@ def main():
|
||||
bc_out = filename + '.sycl'
|
||||
|
||||
# strip asan for the device
|
||||
computecpp_device_compiler_flags = ['-sycl-compress-name', '-Wno-unused-variable',
|
||||
computecpp_device_compiler_flags = ['-sycl-compress-name', '-Wno-unused-variable', '-Wno-c++11-narrowing',
|
||||
'-I', COMPUTECPP_INCLUDE, '-isystem', COMPUTECPP_INCLUDE,
|
||||
'-std=c++11', '-sycl', '-emit-llvm', '-no-serial-memop',
|
||||
'-Xclang', '-cl-denorms-are-zero', '-Xclang', '-cl-fp32-correctly-rounded-divide-sqrt']
|
||||
|
Loading…
Reference in New Issue
Block a user