Skip to content

Commit 7270362

Browse files
author
Vasileios Karakasis
committed
Minor fixes
1 parent 601cbec commit 7270362

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

cscs-checks/libraries/math/trilinos_compile_run.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,23 @@ def set_cxxflags(self):
5858
def cdt2006_workaround_intel(self):
5959
if (self.current_environ.name == 'PrgEnv-intel' and
6060
os_ext.cray_cdt_version() == '20.06'):
61-
self.modules += ['cray-netcdf-hdf5parallel']
62-
self.prebuild_cmds = [
63-
'ln -s $CRAY_NETCDF_HDF5PARALLEL_PREFIX/lib/pkgconfig/'
64-
'netcdf-cxx4_parallel.pc netcdf_c++4_parallel.pc']
65-
self.variables['PKG_CONFIG_PATH'] = '.:$PKG_CONFIG_PATH'
61+
self.modules += ['cray-netcdf-hdf5parallel']
62+
self.prebuild_cmds = [
63+
'ln -s $CRAY_NETCDF_HDF5PARALLEL_PREFIX/lib/pkgconfig/'
64+
'netcdf-cxx4_parallel.pc netcdf_c++4_parallel.pc'
65+
]
66+
self.variables['PKG_CONFIG_PATH'] = '.:$PKG_CONFIG_PATH'
6667

6768
@rfm.run_before('compile')
6869
def cdt2006_workaround_dynamic(self):
6970
if (os_ext.cray_cdt_version() == '20.06' and
70-
self.linkage == 'dynamic'):
71-
self.variables['PATH'] = '/opt/cray/pe/cce/10.0.1/cce-clang/x86_64/bin:$PATH'
71+
self.linkage == 'dynamic' and
72+
self.current_environ.name == 'PrgEnv-gnu'):
73+
self.variables['PATH'] = (
74+
'/opt/cray/pe/cce/10.0.1/cce-clang/x86_64/bin:$PATH'
75+
)
7276
self.prgenv_flags[self.current_environ.name] += ['-fuse-ld=lld']
73-
if self.current_environ.name == 'PrgEnv-gnu':
74-
self.modules += ['gcc/9.3.0']
77+
78+
# GCC >= 9 is required for the above option; our CUDA-friendly CDT
79+
# uses GCC 8 as default.
80+
self.modules += ['gcc/9.3.0']

0 commit comments

Comments
 (0)