summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libceed/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/libceed/package.py')
-rw-r--r--var/spack/repos/builtin/packages/libceed/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/libceed/package.py b/var/spack/repos/builtin/packages/libceed/package.py
index 5bbf12b94c..b11276c7a7 100644
--- a/var/spack/repos/builtin/packages/libceed/package.py
+++ b/var/spack/repos/builtin/packages/libceed/package.py
@@ -12,7 +12,7 @@ class Libceed(MakefilePackage, CudaPackage, ROCmPackage):
homepage = "https://github.com/CEED/libCEED"
git = "https://github.com/CEED/libCEED.git"
- maintainers = ['jedbrown', 'v-dobrev', 'tzanio']
+ maintainers = ['jedbrown', 'v-dobrev', 'tzanio', 'jeremylt']
version('develop', branch='main')
version('0.10.1', tag='v0.10.1')
@@ -107,6 +107,8 @@ class Libceed(MakefilePackage, CudaPackage, ROCmPackage):
if '+cuda' in spec:
makeopts += ['CUDA_DIR=%s' % spec['cuda'].prefix]
+ makeopts += ['CUDA_ARCH=sm_%s' %
+ spec.variants['cuda_arch'].value]
if spec.satisfies('@:0.4'):
nvccflags = ['-ccbin %s -Xcompiler "%s" -Xcompiler %s' %
(compiler.cxx, opt, compiler.cc_pic_flag)]
@@ -118,6 +120,8 @@ class Libceed(MakefilePackage, CudaPackage, ROCmPackage):
if '+rocm' in spec:
makeopts += ['HIP_DIR=%s' % spec['hip'].prefix]
+ amdgpu_target = ','.join(spec.variants['amdgpu_target'].value)
+ makeopts += ['HIP_ARCH=%s' % amdgpu_target]
if spec.satisfies('@0.8'):
makeopts += ['HIPBLAS_DIR=%s' % spec['hipblas'].prefix]
@@ -138,7 +142,8 @@ class Libceed(MakefilePackage, CudaPackage, ROCmPackage):
@property
def install_targets(self):
- return ['prefix={0}'.format(self.prefix)] + self.common_make_opts
+ return ['install', 'prefix={0}'.format(self.prefix)] + \
+ self.common_make_opts
def check(self):
make('prove', *self.common_make_opts, parallel=False)