diff options
author | Sajid Ali <sajidsyed2021@u.northwestern.edu> | 2022-11-07 09:20:03 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 16:20:03 +0100 |
commit | c3851704a205b87244fe157ade895cfc16380377 (patch) | |
tree | 8f8f9fe5da606f12bdd7a90ace5e572a044cbab8 /var | |
parent | 1eb35d037820238e00b0f33004012220e3a816e5 (diff) | |
download | spack-c3851704a205b87244fe157ade895cfc16380377.tar.gz spack-c3851704a205b87244fe157ade895cfc16380377.tar.bz2 spack-c3851704a205b87244fe157ade895cfc16380377.tar.xz spack-c3851704a205b87244fe157ade895cfc16380377.zip |
openblas confuses flang/flang-new, so do not set TIME with ~fortran (#33163)
Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
Co-authored-by: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/openblas/package.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py index 692718e6cc..e9d3a50d46 100644 --- a/var/spack/repos/builtin/packages/openblas/package.py +++ b/var/spack/repos/builtin/packages/openblas/package.py @@ -382,8 +382,9 @@ class Openblas(MakefilePackage): if "+consistent_fpcsr" in self.spec: make_defs += ["CONSISTENT_FPCSR=1"] - # Flang/f18 does not provide ETIME as an intrinsic - if self.spec.satisfies("%clang"): + # Flang/f18 does not provide ETIME as an intrinsic. + # Do not set TIMER variable if fortran is disabled. + if self.spec.satisfies("+fortran%clang"): make_defs.append("TIMER=INT_CPU_TIME") # Prevent errors in `as` assembler from newer instructions |