diff options
author | Cody Balos <balos1@llnl.gov> | 2021-11-12 14:13:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-12 16:13:32 -0600 |
commit | 203a5a0f7126b473bc768d3f2027bc63f15c337e (patch) | |
tree | e33add281f83f7ad658dd2a4426a0371ab62cdb5 /var | |
parent | 98fbfa27392f8cddcd87bc2ff9aec1a4dad6c0e8 (diff) | |
download | spack-203a5a0f7126b473bc768d3f2027bc63f15c337e.tar.gz spack-203a5a0f7126b473bc768d3f2027bc63f15c337e.tar.bz2 spack-203a5a0f7126b473bc768d3f2027bc63f15c337e.tar.xz spack-203a5a0f7126b473bc768d3f2027bc63f15c337e.zip |
sundials: fix for rocm support (#27295)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/sundials/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/sundials/package.py b/var/spack/repos/builtin/packages/sundials/package.py index acb6f993a6..2529b30621 100644 --- a/var/spack/repos/builtin/packages/sundials/package.py +++ b/var/spack/repos/builtin/packages/sundials/package.py @@ -18,7 +18,7 @@ class Sundials(CMakePackage, CudaPackage, ROCmPackage): git = "https://github.com/llnl/sundials.git" tags = ['radiuss', 'e4s'] - maintainers = ['cswoodward', 'gardner48', 'balos1'] + maintainers = ['balos1', 'cswoodward', 'gardner48'] # ========================================================================== # Versions @@ -290,6 +290,7 @@ class Sundials(CMakePackage, CudaPackage, ROCmPackage): if '+rocm' in spec: args.extend([ + '-DCMAKE_C_COMPILER=%s' % (spec['llvm-amdgpu'].prefix + '/bin/clang'), '-DCMAKE_CXX_COMPILER=%s' % spec['hip'].hipcc, '-DENABLE_HIP=ON', '-DHIP_PATH=%s' % spec['hip'].prefix, |