Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions cscs-checks/compile/libsci_resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ def set_sanity(self):
sn.extractsingle(regex, self.stdout, 'version'), mod_name)
])

@rfm.run_before('compile')
def cray_linker_workaround(self):
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_environ.name.startswith('PrgEnv-cray') and
self.current_system.name == 'dom'):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'


@rfm.required_version('>=2.14')
@rfm.simple_test
Expand Down
13 changes: 5 additions & 8 deletions cscs-checks/libraries/io/hdf5_compile_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,8 @@ def __init__(self, lang, linkage):

@rfm.run_before('compile')
def cray_linker_workaround(self):
# FIXME: static compilation yields a link error in case of
# PrgEnv-cray(Cray Bug #255707)
if not (self.linkage == 'static' and
self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-cray'):
return

self.variables = {'ALT_LINKER': '/usr/bin/ld'}
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-cray'):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'
13 changes: 5 additions & 8 deletions cscs-checks/libraries/io/netcdf_compile_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,8 @@ def setflags(self):

@rfm.run_before('compile')
def cray_linker_workaround(self):
# FIXME: static compilation yields a link error in case of
# PrgEnv-cray(Cray Bug #255707)
if not (self.linkage == 'static' and
self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-cray'):
return

self.variables = {'ALT_LINKER': '/usr/bin/ld'}
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-cray'):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'
13 changes: 5 additions & 8 deletions cscs-checks/libraries/math/scalapack_compile_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,11 @@ def __init__(self, linkage):

@rfm.run_before('compile')
def cray_linker_workaround(self):
# FIXME: static compilation yields a link error in case of
# PrgEnv-cray(Cray Bug #255707)
if not (self.linkage == 'static' and
self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-cray'):
return

self.variables['ALT_LINKER'] = '/usr/bin/ld'
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-cray'):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'


@rfm.required_version('>=2.14')
Expand Down
8 changes: 8 additions & 0 deletions cscs-checks/mch/automatic_arrays_acc.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,11 @@ def setflags(self):
envname = self.current_environ.name

self.reference = self.arrays_reference[envname]

@rfm.run_before('compile')
def cray_linker_workaround(self):
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-cray'):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'
8 changes: 8 additions & 0 deletions cscs-checks/mch/gpu_direct_acc.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,11 @@ def setflags(self):
self.build_system.fflags += ['-ta=tesla:cc35']
elif self.current_system.name in ['arolla', 'tsa']:
self.build_system.fflags += ['-ta=tesla:cc70']

@rfm.run_before('compile')
def cray_linker_workaround(self):
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-cray'):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'
8 changes: 8 additions & 0 deletions cscs-checks/microbenchmarks/stream/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,11 @@ def prepare_test(self):
self.reference = self.stream_bw_reference[envname]
except KeyError:
pass

@rfm.run_before('compile')
def cray_linker_workaround(self):
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-cray_classic'):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'
13 changes: 5 additions & 8 deletions cscs-checks/prgenv/helloworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,11 @@ def compile_timer_end(self):

@rfm.run_before('compile')
def cray_linker_workaround(self):
# FIXME: static compilation yields a link error in case of
# PrgEnv-cray(Cray Bug #255707)
if not (self.linkage == 'static' and
self.current_system.name == 'dom' and
self.current_environ.name.startswith('PrgEnv-cray')):
return

self.variables['ALT_LINKER'] = '/usr/bin/ld'
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_system.name == 'dom' and
self.current_environ.name.startswith('PrgEnv-cray')):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'


@rfm.required_version('>=2.14')
Expand Down
8 changes: 8 additions & 0 deletions cscs-checks/prgenv/mpi_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ def __init__(self):
self.maintainers = ['JG']
self.tags = {'production', 'craype', 'maintenance'}

@rfm.run_before('compile')
def cray_linker_workaround(self):
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_system.name == 'dom' and
self.current_environ.name.startswith('PrgEnv-cray')):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'

@rfm.run_before('sanity')
def set_sanity(self):
# 1/ MPI Control Variables:
Expand Down
8 changes: 8 additions & 0 deletions cscs-checks/prgenv/openacc_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,11 @@ def setflags(self):
self.build_system.fflags = ['-acc', '-ta=tesla:cc35']
elif self.current_system.name in ['arolla', 'tsa']:
self.build_system.fflags = ['-acc', '-ta=tesla:cc70']

@rfm.run_before('compile')
def cray_linker_workaround(self):
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_system.name == 'dom' and
self.current_environ.name.startswith('PrgEnv-cray')):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'
8 changes: 8 additions & 0 deletions cscs-checks/tools/profiling_and_debugging/ipm_mpi_omp.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,11 @@ def setup(self, partition, environ, **job_opts):
r'(?P<totalmissesL1>\d+)',
self.htmlrpt, 'totalmissesL1', float), 91159658, -0.1, 0.1),
])

@rfm.run_before('compile')
def cray_linker_workaround(self):
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_system.name == 'dom' and
self.current_environ.name.startswith('PrgEnv-cray')):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'
8 changes: 8 additions & 0 deletions cscs-checks/tools/profiling_and_debugging/notool.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,11 @@ def setup(self, partition, environ, **job_opts):
])
if self.current_system.name in {'dom', 'daint'}:
self.reference['*:elapsed_time'] = self.reference_lang

@rfm.run_before('compile')
def cray_linker_workaround(self):
# NOTE: Workaround for using CCE < 9.1 in CLE7.UP01.PS03 and above
# See Patch Set README.txt for more details.
if (self.current_system.name == 'dom' and
self.current_environ.name.startswith('PrgEnv-cray')):
self.variables['LINKER_X86_64'] = '/usr/bin/ld'