Skip to content

Commit dd32f0f

Browse files
Merge branch 'jayeshkrishna/scorpio-v1.6.2' (PR #6329)
Upgrading to SCORPIO v1.6.3 and adding support for the new rearranger, PIO_REARR_ANY. SCORPIO v1.6.3 includes the following enhancements/fixes, * Support for standalone EAMXX/SCREAM builds * A new rearranger, PIO_REARR_ANY * Fixes for ADIOS to NetCDF conversion tool hangs/crashes in certain scenarios * Fixes for ultra high res simulations using the SUBSET rearranger * Support for reading ADIOS BP files and updates to the BP to NetCDF conversion tool to integrate with CIME/E3SM * Adding a SCORPIO CMake package during install * Support for new CDF5 types in the C interface * Support for pio_set_fill() * Fix for performance issues while writing large output files (hang during enddef() call) * Fix for issues writing/reading ADIOS string attributes * Misc bug fixes [BFB]
2 parents ed030dc + 7f5de8b commit dd32f0f

File tree

9 files changed

+23
-10
lines changed

9 files changed

+23
-10
lines changed

cime_config/customize/case_post_run_io.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ def _convert_adios_to_nc(case):
7474
# Load the environment
7575
case.load_env(reset=True)
7676

77+
# Reset MPICH/MPI GPU support, if enabled
78+
is_mpich_gpu_enabled = os.environ.get('MPICH_GPU_SUPPORT_ENABLED')
79+
if int(0 if is_mpich_gpu_enabled is None else is_mpich_gpu_enabled) == 1:
80+
logger.info("Resetting support for GPU in MPICH/MPI library (since its not used by the tool)")
81+
os.environ['MPICH_GPU_SUPPORT_ENABLED'] = str(0);
82+
7783
run_func = lambda: run_cmd(cmd, from_dir=rundir)[0]
7884

7985
# Run the modified case

components/cmake/modules/FindPIO.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ endif()
1818
if (PIO_VERSION STREQUAL 2)
1919
# This is a pio2 library
2020
set(PIOLIBS "${PIO_LIBDIR}/libpiof.a;${PIO_LIBDIR}/libpioc.a")
21+
if (DEFINED ENV{ADIOS2_ROOT})
22+
list(APPEND PIOLIBS "${PIO_LIBDIR}/libadios2pio-nm-lib.a")
23+
endif()
2124
else()
2225
# This is a pio1 library
2326
set(PIOLIBS "${PIO_LIBDIR}/libpio.a")

driver-mct/cime_config/config_component.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2692,10 +2692,10 @@
26922692

26932693
<entry id="PIO_REARRANGER">
26942694
<type>integer</type>
2695-
<valid_values>1,2</valid_values>
2695+
<valid_values>1,2,3</valid_values>
26962696
<group>run_pio</group>
26972697
<file>env_run.xml</file>
2698-
<desc>pio rearranger choice box=1, subset=2 </desc>
2698+
<desc>pio rearranger choice box=1, subset=2, any=3 </desc>
26992699
<values>
27002700
<value compclass="ATM">$PIO_VERSION</value>
27012701
<value compclass="CPL">$PIO_VERSION</value>

driver-mct/cime_config/namelist_definition_modelio.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@
9090
<type>integer</type>
9191
<category>pio</category>
9292
<group>pio_inparm</group>
93-
<valid_values>-99,1,2</valid_values>
93+
<valid_values>-99,1,2,3</valid_values>
9494
<desc>
95-
Rearranger method for pio 1=box, 2=subset.
95+
Rearranger method for pio 1=box, 2=subset, 3=any.
9696
</desc>
9797
<values>
9898
<value component="cpl">$CPL_PIO_REARRANGER</value>

driver-moab/cime_config/config_component.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2684,10 +2684,10 @@
26842684

26852685
<entry id="PIO_REARRANGER">
26862686
<type>integer</type>
2687-
<valid_values>1,2</valid_values>
2687+
<valid_values>1,2,3</valid_values>
26882688
<group>run_pio</group>
26892689
<file>env_run.xml</file>
2690-
<desc>pio rearranger choice box=1, subset=2 </desc>
2690+
<desc>pio rearranger choice box=1, subset=2, any=3 </desc>
26912691
<values>
26922692
<value compclass="ATM">$PIO_VERSION</value>
26932693
<value compclass="CPL">$PIO_VERSION</value>

driver-moab/cime_config/namelist_definition_modelio.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@
9090
<type>integer</type>
9191
<category>pio</category>
9292
<group>pio_inparm</group>
93-
<valid_values>-99,1,2</valid_values>
93+
<valid_values>-99,1,2,3</valid_values>
9494
<desc>
95-
Rearranger method for pio 1=box, 2=subset.
95+
Rearranger method for pio 1=box, 2=subset, 3=any.
9696
</desc>
9797
<values>
9898
<value component="cpl">$CPL_PIO_REARRANGER</value>

externals/scorpio

Submodule scorpio updated 827 files

share/build/buildlib.spio

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def buildlib(bldroot, installpath, case):
106106

107107
if "ADIOS2_ROOT" in os.environ:
108108
cmake_opts += "-DWITH_ADIOS2:BOOL=ON "
109+
if "FROM_CREATE_TEST" in os.environ and os.environ["FROM_CREATE_TEST"] == "True":
110+
cmake_opts += "-DADIOS_BP2NC_TEST:BOOL=ON "
111+
109112
if debug:
110113
cmake_opts += "-DPIO_ENABLE_LOGGING=ON "
111114
# Case changes for NetCDF/NETCDF forces us to do this. For other packages

share/util/shr_pio_mod.F90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,8 @@ subroutine shr_pio_namelist_set(npes,mycomm, pio_stride, pio_root, pio_numiotask
730730
if(pio_stride == 1 .and. .not. pio_async_interface) then
731731
pio_root = 0
732732
endif
733-
if(pio_rearranger .ne. PIO_REARR_SUBSET .and. pio_rearranger .ne. PIO_REARR_BOX) then
733+
if(pio_rearranger .ne. PIO_REARR_SUBSET .and. pio_rearranger .ne. PIO_REARR_BOX .and.&
734+
pio_rearranger .ne. PIO_REARR_ANY) then
734735
write(shr_log_unit,*) 'pio_rearranger value, ',pio_rearranger,&
735736
', not supported - using PIO_REARR_BOX'
736737
pio_rearranger = PIO_REARR_BOX

0 commit comments

Comments
 (0)