summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2020-06-06 13:51:19 -0700
committerGitHub <noreply@github.com>2020-06-06 15:51:19 -0500
commit73d13461b1b4c0ad595c0506e104d2ffccc07be2 (patch)
tree1d8a921b0ea5d0521172da6cd069e1ea13eead2c
parent7b6e1ae9d3fb614f45744254bf90a3674f3e30eb (diff)
downloadspack-73d13461b1b4c0ad595c0506e104d2ffccc07be2.tar.gz
spack-73d13461b1b4c0ad595c0506e104d2ffccc07be2.tar.bz2
spack-73d13461b1b4c0ad595c0506e104d2ffccc07be2.tar.xz
spack-73d13461b1b4c0ad595c0506e104d2ffccc07be2.zip
ensure xla is turned off (#16974)
Co-authored-by: Sinan81 <sbulut@3vgeomatics.com>
-rw-r--r--var/spack/repos/builtin/packages/py-tensorflow/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-tensorflow/package.py b/var/spack/repos/builtin/packages/py-tensorflow/package.py
index 888e9432bf..6bdc7e69be 100644
--- a/var/spack/repos/builtin/packages/py-tensorflow/package.py
+++ b/var/spack/repos/builtin/packages/py-tensorflow/package.py
@@ -525,6 +525,13 @@ class PyTensorflow(Package, CudaPackage):
@run_after('configure')
def post_configure_fixes(self):
spec = self.spec
+
+ # make sure xla is actually turned off
+ if spec.satisfies('~xla'):
+ filter_file(r'--define with_xla_support=true',
+ r'--define with_xla_support=false',
+ '.tf_configure.bazelrc')
+
if spec.satisfies('@1.5.0: ~android'):
# env variable is somehow ignored -> brute force
# TODO: find a better solution