diff options
author | 2016-12-17 15:30:46 +0100 | |
---|---|---|
committer | 2016-12-19 09:00:55 -0800 | |
commit | 2f59c832f9d4194d8f828b83c72806783d3a7c64 (patch) | |
tree | 56a8db1c209ac4fc0956802b2e71dbf4a338be81 /third_party/sycl/crosstool/computecpp.tpl | |
parent | a8436c649855f07f906130af9bd4583b0228fed0 (diff) |
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.
Diffstat (limited to 'third_party/sycl/crosstool/computecpp.tpl')
-rwxr-xr-x | third_party/sycl/crosstool/computecpp.tpl | 4 |
1 files changed, 1 insertions, 3 deletions
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): |