Skip to content

Commit

Permalink
Reset MPICH GPU support for conversion tool
Browse files Browse the repository at this point in the history
Disable MPICH/MPI GPU support for ADIOS to NetCDF conversion
tool.

Without this change the conversion tool crashes (with message
"MPIDI_CRAY_init: GPU_SUPPORT_ENABLED is requested, but GTL
library is not linked" - most likely due to the way SCREAM
builds/links SCORPIO) on Frontier.
  • Loading branch information
jayeshkrishna committed Mar 12, 2024
1 parent e7e1185 commit 9a17bda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cime_config/customize/case_post_run_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ def _convert_adios_to_nc(case):
# Load the environment
case.load_env(reset=True)

# Reset MPICH/MPI GPU support, if enabled
is_mpich_gpu_enabled = os.environ.get('MPICH_GPU_SUPPORT_ENABLED')
if int(0 if is_mpich_gpu_enabled is None else is_mpich_gpu_enabled) == 1:
logger.info("Resetting support for GPU in MPICH/MPI library (since its not used by the tool)")
os.environ['MPICH_GPU_SUPPORT_ENABLED'] = str(0);

run_func = lambda: run_cmd(cmd, from_dir=rundir)[0]

# Run the modified case
Expand Down

0 comments on commit 9a17bda

Please sign in to comment.