Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions cscs-checks/compile/libsci_resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
class LibSciResolveBaseTest(rfm.CompileOnlyRegressionTest):
sourcesdir = 'src/libsci_resolve'
sourcepath = 'libsci_resolve.f90'
executable = 'libsciresolve.x'
valid_systems = ['daint:login', 'daint:gpu', 'dom:login', 'dom:gpu']
modules = ['craype-haswell']
maintainers = ['AJ', 'LM']
Expand Down Expand Up @@ -41,8 +42,8 @@ def update_tags(self):
def set_modules(self):
self.modules += [f'craype-accel-nvidia{self.accel_nvidia_version}']

@run_before('sanity')
def set_sanity(self):
@sanity_function
def libsci_acc_resolve(self):
# here lib_name is in the format: libsci_acc_gnu_48_nv35.so or
# libsci_acc_cray_nv35.so
regex = (r'.*\(NEEDED\).*libsci_acc_(?P<prgenv>[A-Za-z]+)_'
Expand All @@ -56,7 +57,7 @@ def set_sanity(self):
cver_sanity = sn.assert_eq(
sn.extractsingle(regex, self.stdout, 'cver'), cver)

self.sanity_patterns = sn.all([
return sn.all([
sn.assert_eq(
sn.extractsingle(regex, self.stdout, 'prgenv'), prgenv),
cver_sanity,
Expand All @@ -83,11 +84,11 @@ def cdt_2105_workaround(self):
'-L/opt/intel/oneapi/mkl/latest/lib/intel64/'
]

@run_before('sanity')
def set_sanity(self):
@sanity_function
def libmkl_resolve(self):
regex = (r'.*\(NEEDED\).*libmkl_(?P<prgenv>[A-Za-z]+)_(?P<version>\S+)'
r'\.so')
self.sanity_patterns = sn.all([
return sn.all([
sn.assert_eq(
sn.extractsingle(regex, self.stdout, 'prgenv'), 'intel'),
sn.assert_eq(
Expand Down