summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliot Saba <staticfloat@gmail.com>2020-11-03 10:04:29 -0800
committerGitHub <noreply@github.com>2020-11-03 12:04:29 -0600
commit771e8b62943a82c3572b2a73aad8521c8043d080 (patch)
treee69ce071bacf507dd10492e6f6dffc341bc4c264
parent8cc08bd88b9eb0d6f8c2947ac86d668100b9b9ee (diff)
downloadspack-771e8b62943a82c3572b2a73aad8521c8043d080.tar.gz
spack-771e8b62943a82c3572b2a73aad8521c8043d080.tar.bz2
spack-771e8b62943a82c3572b2a73aad8521c8043d080.tar.xz
spack-771e8b62943a82c3572b2a73aad8521c8043d080.zip
[julia]: CPU names are LLVM-style, must map across (#19549)
In this case, the `zen2` architecture is unknown; Spack must use the LLVM-style `znver2` target instead.
-rw-r--r--var/spack/repos/builtin/packages/julia/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/julia/package.py b/var/spack/repos/builtin/packages/julia/package.py
index a6bcd0be20..8c6a6aaf90 100644
--- a/var/spack/repos/builtin/packages/julia/package.py
+++ b/var/spack/repos/builtin/packages/julia/package.py
@@ -164,6 +164,8 @@ class Julia(Package):
]
else:
target_str = str(spec.target).replace('_', '-')
+ if target_str == "zen2":
+ target_str = "znver2"
options += [
'JULIA_CPU_TARGET={0}'.format(target_str)
]