diff options
author | wspear <wjspear@gmail.com> | 2019-08-02 13:14:43 -0700 |
---|---|---|
committer | Greg Becker <becker33@llnl.gov> | 2019-08-02 15:14:43 -0500 |
commit | 9dd61f53134ad2ffd6225847daefdf10e1acbf16 (patch) | |
tree | a97c415ef97001d0f5dc0e33eac0767a0f20ee0d | |
parent | 0e532d324cbabb19d299a8dd52e9d8961fa3db77 (diff) | |
download | spack-9dd61f53134ad2ffd6225847daefdf10e1acbf16.tar.gz spack-9dd61f53134ad2ffd6225847daefdf10e1acbf16.tar.bz2 spack-9dd61f53134ad2ffd6225847daefdf10e1acbf16.tar.xz spack-9dd61f53134ad2ffd6225847daefdf10e1acbf16.zip |
Fixed arch setting variants. Activate cray arch automatically. (#11203)
-rw-r--r-- | var/spack/repos/builtin/packages/tau/package.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py index 0cccc3e619..8d73eb497b 100644 --- a/var/spack/repos/builtin/packages/tau/package.py +++ b/var/spack/repos/builtin/packages/tau/package.py @@ -64,6 +64,7 @@ class Tau(Package): variant('craycnl', default=False, description='Build for Cray compute nodes') variant('bgq', default=False, description='Build for IBM BlueGene/Q compute nodes') variant('ppc64le', default=False, description='Build for IBM Power LE nodes') + variant('x86_64', default=False, description='Force build for x86 Linux instead of auto-detect') depends_on('pdt', when='+pdt') # Required for TAU instrumentation depends_on('scorep', when='+scorep') @@ -133,6 +134,21 @@ class Tau(Package): options = ["-prefix=%s" % prefix, "-iowrapper"] + if '+craycnl' in spec: + options.append('-arch=craycnl') + + if '+bgq' in spec: + options.append('-arch=bgq') + + if '+ppc64le' in spec: + options.append('-arch=ibm64linux') + + if '+x86_64' in spec: + options.append('-arch=x86_64') + + if ('platform=cray' in self.spec) and ('+x86_64' not in spec): + options.append('-arch=craycnl') + if '+pdt' in spec: options.append("-pdt=%s" % spec['pdt'].prefix) |