diff options
author | AMD Toolchain Support <73240730+amd-toolchain-support@users.noreply.github.com> | 2021-03-22 22:00:08 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 09:30:08 -0700 |
commit | 2fba3e2bd3c43d1f7fc42fd76b2e3aeda7354739 (patch) | |
tree | 1f2c567a3b1f787dacb49324a07b2a38e0d308ca /var/spack/repos/builtin/packages/amdscalapack | |
parent | 3a33d45d6d1d54f8b86c6cfb4ea8f79b405f4f45 (diff) | |
download | spack-2fba3e2bd3c43d1f7fc42fd76b2e3aeda7354739.tar.gz spack-2fba3e2bd3c43d1f7fc42fd76b2e3aeda7354739.tar.bz2 spack-2fba3e2bd3c43d1f7fc42fd76b2e3aeda7354739.tar.xz spack-2fba3e2bd3c43d1f7fc42fd76b2e3aeda7354739.zip |
Spack recipes for AOCL 3.0 (#22376)
Added Spack recipes for AOCL 3.0 blis, ambles, amdlibflame, amdlibm, amdscalapack, aocl-sparce.
Diffstat (limited to 'var/spack/repos/builtin/packages/amdscalapack')
-rw-r--r-- | var/spack/repos/builtin/packages/amdscalapack/package.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/amdscalapack/package.py b/var/spack/repos/builtin/packages/amdscalapack/package.py index 268e1a2827..23ccc2ccb3 100644 --- a/var/spack/repos/builtin/packages/amdscalapack/package.py +++ b/var/spack/repos/builtin/packages/amdscalapack/package.py @@ -20,11 +20,12 @@ class Amdscalapack(ScalapackBase): _name = 'amdscalapack' homepage = "https://developer.amd.com/amd-aocl/scalapack/" - url = "https://github.com/amd/scalapack/archive/2.2.tar.gz" + url = "https://github.com/amd/scalapack/archive/3.0.tar.gz" git = "https://github.com/amd/scalapack.git" maintainers = ['amd-toolchain-support'] + version('3.0', sha256='6e6f3578f44a8e64518d276e7580530599ecfa8729f568303ed2590688e7096f') version('2.2', sha256='2d64926864fc6d12157b86e3f88eb1a5205e7fc157bf67e7577d0f18b9a7484c') variant( @@ -38,11 +39,13 @@ class Amdscalapack(ScalapackBase): args = super(Amdscalapack, self).cmake_args() spec = self.spec - args.extend([ - "-DUSE_DOTC_WRAPPER:BOOL=%s" % ( - 'ON' if '%aocc ^amdblis' in spec else 'OFF' - ) - ]) + if spec.satisfies('%gcc@10:'): + args.extend(['-DCMAKE_Fortran_FLAGS={0}'.format( + "-fallow-argument-mismatch")]) + + if spec.satisfies('@2.2'): + args.extend(['-DUSE_DOTC_WRAPPER:BOOL=%s' % ( + 'ON' if spec.satisfies('%aocc ^amdblis') else 'OFF')]) args.extend([ '-DUSE_F2C=ON', |