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:
Luke Iwanski 2017-07-04 07:05:02 +01:00 committed by gunan
parent 1e48740b87
commit fc87d9110c

View File

@ -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']