diff options
author | Jonathan Hseu <jhseu@google.com> | 2016-12-22 15:38:30 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-12-22 15:48:41 -0800 |
commit | bed8383c27a0a7225e6fc7ff59a2cd6388fb4d09 (patch) | |
tree | b70cfc88f95f318195f8610ffb960e98604348d1 /third_party/sycl | |
parent | 1e5bd8cdd62033d1f7ea928fcbec521bb48bb1f5 (diff) |
Merge changes from github.
Change: 142805270
Diffstat (limited to 'third_party/sycl')
-rwxr-xr-x | third_party/sycl/crosstool/BUILD.tpl | 2 | ||||
-rwxr-xr-x | third_party/sycl/crosstool/CROSSTOOL.tpl | 2 | ||||
-rwxr-xr-x | third_party/sycl/crosstool/computecpp.tpl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/third_party/sycl/crosstool/BUILD.tpl b/third_party/sycl/crosstool/BUILD.tpl index f539a376c8..cd8df93cd6 100755 --- a/third_party/sycl/crosstool/BUILD.tpl +++ b/third_party/sycl/crosstool/BUILD.tpl @@ -20,7 +20,7 @@ cc_toolchain( objcopy_files = ":empty", static_runtime_libs = [":empty"], strip_files = ":empty", - supports_param_files = 0, + supports_param_files = 1, ) filegroup( diff --git a/third_party/sycl/crosstool/CROSSTOOL.tpl b/third_party/sycl/crosstool/CROSSTOOL.tpl index d767b8ca4a..19b6f3ae32 100755 --- a/third_party/sycl/crosstool/CROSSTOOL.tpl +++ b/third_party/sycl/crosstool/CROSSTOOL.tpl @@ -34,6 +34,7 @@ toolchain { # Use "-std=c++11" for nvcc. For consistency, force both the host compiler # and the device compiler to use "-std=c++11". cxx_flag: "-std=c++11" + linker_flag: "-Wl,-no-as-needed" linker_flag: "-lstdc++" linker_flag: "-B/usr/bin/" @@ -100,4 +101,3 @@ toolchain { compiler_flag: "-DNDEBUG" } } - diff --git a/third_party/sycl/crosstool/computecpp.tpl b/third_party/sycl/crosstool/computecpp.tpl index e90d51bf87..532d7779f9 100755 --- a/third_party/sycl/crosstool/computecpp.tpl +++ b/third_party/sycl/crosstool/computecpp.tpl @@ -45,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'] + 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): |