Repository navigation
Conversation
Measured on aust10km, together these take wrf-run from 2 h 15 min to 1 h 9 min: - history_begin_h is set from the spin-up length, so wrf.exe no longer writes the spin-up output that cleanup deletes unread. - use_netcdf_classic in every domain, so the 5-minute frames are not compressed on rank 0 before being averaged and deleted. - debug_level = 0 in every domain, which drops the trace lines written on every halo exchange. - The default rank count is the number of physical cores, rather than every hardware thread. The first three leave the hourly output byte-identical. The rank count changes the decomposition, which changes the output at the level of rounding, as moving between hosts already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
use_netcdf_classic and debug_level describe how we run wrf.exe rather than anything about a domain, so they're set alongside history_begin_h when the namelist is generated. debug_level = 100 comes out of the domain namelists for the same reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aethr
force-pushed
the
wrf-performance-defaults
branch
from
October 9, 2026 00:49
3ab2fe8 to
fa96a7c
Compare
Author
|
Closing in favour of #92, which includes the same perf changes but not the complexity of parameterising all the settings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the #89 findings the defaults. Stacked on #90, so it can adjust the rank-count call #90 added for quilting. Measured results are in #89 (comment).
Changes
c8id.16xlarge)history_begin_h=num_hours_spin_upsetup_for_wrf.pyuse_netcdf_classic = .true.setup_for_wrf.pydebug_level = 0(was 100)setup_for_wrf.py, and removed from everydomains/*/namelist.wrfsafe_mpi_tasks(), newphysical_cpu_count()Together:
wrf-run8,125 s → 4,163 s.Notes
setup_for_wrf.pywhen the namelist is generated, not in the domain namelists, because they describe how we runwrf.exerather than the domain.history_begin_hfollows the config's spin-up length.debug_level = 100comes out of the domain namelists for the same reason. A run can still override any of these throughWRF_NAMELIST_OVERRIDES(Set wrf.exe namelist values and mpirun arguments from the environment #90), which is applied afterwards.physical_cpu_count()counts distinct(physical id, core id)pairs in/proc/cpuinfo, the same way the[om-metrics]entrypoint does. It falls back toos.cpu_count()where those fields are missing, as on aarch64, which has no SMT anyway.NCPUSstill overrides the default.WrfStorageSpothosts the default drops from 64 to 32 ranks. A 96-vCPU host would get 48.wrf.exewrites.average_fields()still compresses the hourlyWRFOUTfiles, andnccopy_compress_output.shconverts any classic files left over at cleanup.Testing
make test: 45 passed, including new tests forphysical_cpu_count()(hyperthreaded, two-socket, no core information).&time_controlas expected.WRF_NAMELIST_OVERRIDES/NCPUSin wrf.exe spends over half its run writing history output; cut that before sizing ranks #89, against an in-batch control. This branch's defaults themselves haven't been run end to end.🤖 Generated with Claude Code