From fc87d9110c44896427ef8c0bc08a96ef59f0e995 Mon Sep 17 00:00:00 2001 From: Luke Iwanski Date: Tue, 4 Jul 2017 07:05:02 +0100 Subject: [PATCH] Add -Wno-c++11-narrowing to ComputeCpp device compiler flags to avoid build errors on 32-bit targets. (#109) (#11244) --- third_party/sycl/crosstool/computecpp.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/sycl/crosstool/computecpp.tpl b/third_party/sycl/crosstool/computecpp.tpl index 8b0a7a7d4ad..c699eabb6f3 100755 --- a/third_party/sycl/crosstool/computecpp.tpl +++ b/third_party/sycl/crosstool/computecpp.tpl @@ -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']