diff options
author | Satish Balay <balay@mcs.anl.gov> | 2021-07-19 05:01:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 12:01:05 +0200 |
commit | fa503ef0e24d5fdd561f32b04e2256415b7624e8 (patch) | |
tree | 87067f5ba4ef5a7c0773d1ab320543581d8d1d3c | |
parent | 99eb98d029a0efe58819775747eb6fdd7430f407 (diff) | |
download | spack-fa503ef0e24d5fdd561f32b04e2256415b7624e8.tar.gz spack-fa503ef0e24d5fdd561f32b04e2256415b7624e8.tar.bz2 spack-fa503ef0e24d5fdd561f32b04e2256415b7624e8.tar.xz spack-fa503ef0e24d5fdd561f32b04e2256415b7624e8.zip |
strumpack@develop: update change in examples/data PATH (#24814)
-rw-r--r-- | var/spack/repos/builtin/packages/strumpack/package.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/strumpack/package.py b/var/spack/repos/builtin/packages/strumpack/package.py index b8cf21116b..e949db7dad 100644 --- a/var/spack/repos/builtin/packages/strumpack/package.py +++ b/var/spack/repos/builtin/packages/strumpack/package.py @@ -147,11 +147,13 @@ class Strumpack(CMakePackage, CudaPackage, ROCmPackage): args.append('-DHIP_HIPCC_FLAGS=--amdgpu-target={0}'. format(",".join(rocm_archs))) + if self.spec.satisfies('@:5.1.1'): + self.test_data_dir = 'examples/data' + else: + self.test_data_dir = 'examples/sparse/data' + self.test_src_dir = 'test' return args - test_data_dir = 'examples/data' - test_src_dir = 'test' - @run_after('install') def cache_test_sources(self): """Copy the example source files after the package is installed to an @@ -185,7 +187,7 @@ class Strumpack(CMakePackage, CudaPackage, ROCmPackage): test_dir = join_path(self.install_test_root, self.test_src_dir) test_exe = 'test_sparse_seq' test_exe_mpi = 'test_sparse_mpi' - exe_arg = ['../../examples/data/pde900.mtx'] + exe_arg = [join_path('..', '..', self.test_data_dir, 'pde900.mtx')] if '+mpi' in self.spec: test_args = ['-n', '4', test_exe_mpi] test_args.extend(exe_arg) |