Skip to content

Commit

Permalink
Update derecho modules, recognize compute nodes
Browse files Browse the repository at this point in the history
All tests pass on derecho (need to be on compute node for mpi test); I
recommend the develop queue with 1 node and 2 cores
  • Loading branch information
mnlevy1981 committed Dec 28, 2023
1 parent 9f62492 commit ddf969a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions tests/python_for_tests/machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,21 @@ def load_module(mach, compiler, module_name):
sys.path.insert(0, os.path.join(os.sep, 'glade', 'u', 'apps', 'derecho', '23.06', 'spack', 'opt', 'spack', 'lmod', '8.7.20', 'gcc', '7.5.0', 'pdxb', 'lmod', 'lmod', 'init'))
from env_modules_python import module
module('--force', 'purge')
module('load', 'ncarenv/23.06')
module('load', 'craype')
module('load', 'cesmdev/1.0')
if compiler == 'cray':
module('load', 'ncarenv/23.06')
module('load', 'craype')
elif compiler == 'nvhpc':
module('load', 'ncarenv/23.06')
else:
module('load', 'ncarenv/23.09')
module('load', module_name)
module('load', 'ncarcompilers/1.0.0')
if compiler == 'cray':
module('load', 'cray-mpich/8.1.25')
else:
module('load', 'cray-mpich/8.1.27')
module('load', 'netcdf/4.9.2')
module('load', 'ncarcompilers')
if compiler in ['gnu', 'cray']:
module('load', 'cray-libsci/23.02.1.1')

Expand Down Expand Up @@ -88,7 +98,7 @@ def machine_specific(mach, supported_compilers, module_names):
supported_compilers.append('gnu')
supported_compilers.append('cray')
supported_compilers.append('nvhpc')
module_names['intel'] = 'intel/2023.0.0'
module_names['intel'] = 'intel/2023.2.1'
module_names['gnu'] = 'gcc/12.2.0'
module_names['cray'] = 'cce/15.0.1'
module_names['nvhpc'] = 'nvhpc/23.1'
Expand Down
2 changes: 1 addition & 1 deletion tests/python_for_tests/marbl_testing_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def parse_args(self, desc, HaveCompiler=True, HaveInputFile=True,
from socket import gethostname
self._hostname = gethostname()
found = True
if 'derecho' in self._hostname:
if 'derecho' in self._hostname or self._hostname.startswith('dec'):
self._machine = 'derecho'
elif 'cheyenne' in self._hostname:
self._machine = 'cheyenne'
Expand Down

0 comments on commit ddf969a

Please sign in to comment.