summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-tensorflow/package.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-tensorflow/package.py b/var/spack/repos/builtin/packages/py-tensorflow/package.py
index f9d531a8e2..4587b04707 100644
--- a/var/spack/repos/builtin/packages/py-tensorflow/package.py
+++ b/var/spack/repos/builtin/packages/py-tensorflow/package.py
@@ -799,8 +799,12 @@ class PyTensorflow(Package, CudaPackage, ROCmPackage, PythonExtension):
if "~nccl" in spec:
args.append("--config=nonccl")
- if "+numa" in spec:
- args.append("--config=numa")
+ # https://github.com/tensorflow/tensorflow/issues/63080
+ if self.spec.satisfies("@2.14:"):
+ args.append(f"--define=with_numa_support={'+numa' in spec}")
+ else:
+ if "+numa" in spec:
+ args.append("--config=numa")
args.append("--config=v2")