From 2f59c832f9d4194d8f828b83c72806783d3a7c64 Mon Sep 17 00:00:00 2001 From: Luke Iwanski Date: Sat, 17 Dec 2016 15:30:46 +0100 Subject: Added missing BUILD dummy file to third_party/sycl/crosstool/BUILD (#22) * Added missing BUILD dummy file to third_party/sycl/crosstool/BUILD * Use floor_div_real for SYCL device. * Cleaned up SYCL crosstool. --- third_party/sycl/crosstool/computecpp.tpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'third_party/sycl/crosstool/computecpp.tpl') diff --git a/third_party/sycl/crosstool/computecpp.tpl b/third_party/sycl/crosstool/computecpp.tpl index 1d604055a5..532d7779f9 100755 --- a/third_party/sycl/crosstool/computecpp.tpl +++ b/third_party/sycl/crosstool/computecpp.tpl @@ -26,8 +26,6 @@ def main(): if(output_file_index == 1): # we are linking - # Inserting this flag is required as natively bazel adds "-Wl,-no-as-needed" for linking *.so's, but the CROSSTOOL doesn't. - compiler_flags.insert(5, "-Wl,-no-as-needed") return subprocess.call([CPU_CXX_COMPILER] + compiler_flags) compiler_flags = compiler_flags + ['-D_GLIBCXX_USE_CXX11_ABI=0', '-DEIGEN_USE_SYCL=1'] @@ -47,7 +45,7 @@ def main(): # strip asan for the device computecpp_device_compiler_flags = [flag for flag in compiler_flags if not flag.startswith(('-fsanitize'))] computecpp_device_compiler_flags = ['-sycl-compress-name', '-DTENSORFLOW_USE_SYCL', '-Wno-unused-variable', '-I', COMPUTECPP_INCLUDE, '-isystem', - COMPUTECPP_INCLUDE, '-std=c++11', '-sycl', '-emit-llvm', '-no-serial-memop', '-Xclang', '-cl-denorms-are-zero'] + computecpp_device_compiler_flags + COMPUTECPP_INCLUDE, '-std=c++11', '-sycl', '-emit-llvm', '-no-serial-memop', '-Xclang', '-cl-denorms-are-zero', '-Xclang', '-cl-fp32-correctly-rounded-divide-sqrt'] + computecpp_device_compiler_flags x = subprocess.call([COMPUTECPP_DRIVER] + computecpp_device_compiler_flags ) if(x == 0): -- cgit v1.2.3