sundials: fix for rocm support (#27295)

This commit is contained in:
Cody Balos 2021-11-12 14:13:32 -08:00 committed by GitHub
parent 98fbfa2739
commit 203a5a0f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 @@ def on_off(varstr):
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,