aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorGravatar Patrick <pmc01@users.noreply.github.com>2017-03-22 00:54:57 -0400
committerGravatar gunan <gunan@google.com>2017-03-21 21:54:57 -0700
commite9fbd58473f063923ba35db8a3656c1181014552 (patch)
tree9caca74611809f5b04ca6c027932e9418fcea9ff /third_party
parent7d724a81456c6a30e15adaf2f049ed6f997e316e (diff)
Update computecpp.tpl (#8578)
Computecpp can't generate code for AVX function __builtin_ia32_cmpps256.
Diffstat (limited to 'third_party')
-rwxr-xr-xthird_party/sycl/crosstool/computecpp.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/sycl/crosstool/computecpp.tpl b/third_party/sycl/crosstool/computecpp.tpl
index 66dd9aea7b..595e7136a6 100755
--- a/third_party/sycl/crosstool/computecpp.tpl
+++ b/third_party/sycl/crosstool/computecpp.tpl
@@ -65,7 +65,7 @@ def main():
# strip asan for the device
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', '-Xclang', '-cl-fp32-correctly-rounded-divide-sqrt']
- computecpp_device_compiler_flags += [flag for flag in compiler_flags if not flag.startswith(('-fsanitize'))]
+ computecpp_device_compiler_flags += [flag for flag in compiler_flags if not flag.startswith(('-fsanitize', '-march=native', '-mavx'))]
x = subprocess.call([COMPUTECPP_DRIVER] + computecpp_device_compiler_flags )
if(x == 0):