strumpack@develop: update change in examples/data PATH (#24814)
This commit is contained in:
parent
99eb98d029
commit
fa503ef0e2
@ -147,11 +147,13 @@ def cmake_args(self):
|
|||||||
args.append('-DHIP_HIPCC_FLAGS=--amdgpu-target={0}'.
|
args.append('-DHIP_HIPCC_FLAGS=--amdgpu-target={0}'.
|
||||||
format(",".join(rocm_archs)))
|
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
|
return args
|
||||||
|
|
||||||
test_data_dir = 'examples/data'
|
|
||||||
test_src_dir = 'test'
|
|
||||||
|
|
||||||
@run_after('install')
|
@run_after('install')
|
||||||
def cache_test_sources(self):
|
def cache_test_sources(self):
|
||||||
"""Copy the example source files after the package is installed to an
|
"""Copy the example source files after the package is installed to an
|
||||||
@ -185,7 +187,7 @@ def test(self):
|
|||||||
test_dir = join_path(self.install_test_root, self.test_src_dir)
|
test_dir = join_path(self.install_test_root, self.test_src_dir)
|
||||||
test_exe = 'test_sparse_seq'
|
test_exe = 'test_sparse_seq'
|
||||||
test_exe_mpi = 'test_sparse_mpi'
|
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:
|
if '+mpi' in self.spec:
|
||||||
test_args = ['-n', '4', test_exe_mpi]
|
test_args = ['-n', '4', test_exe_mpi]
|
||||||
test_args.extend(exe_arg)
|
test_args.extend(exe_arg)
|
||||||
|
Loading…
Reference in New Issue
Block a user