Closed billsacks closed 5 years ago
Because this problem seems limited to the nag compiler (which we don't use for production runs), and because there seems to be at least a small memory leak even without water tracers with nag, I'm going to tentatively chalk this up to a compiler-specific issue and close it as a wontfix.
I got a slightly larger memory leak in this test in a recent run of the test suite (for ctsm1.0.dev056): FAIL SMS_D_Ld10.f10_f10_musgs.I2000Clm50BgcCropGs.hobart_nag.clm-tracer_consistency MEMLEAK memleak detected, memory went from 1250.830000 to 1518.500000 in 8 days
. For now I'm just increasing the memleak tolerance on this test from 0.2 to 0.3.
Brief summary of bug
I just changed the one-timestep tracer consistency test to a 10-day test:
SMS_D_Ld10.f10_f10_musgs.I2000Clm50BgcCropGs.hobart_nag.clm-tracer_consistency
. It is now failing the MEMLEAK test - e.g.:General bug information
CTSM version you are using: ctsm1.0.dev050-20-gf96cbf94
Does this bug cause significantly incorrect results in the model's science? No
Configurations affected: Configurations with water tracers, but seemingly just with hobart_nag (I haven't checked izumi_nag).
Details of bug
Here is the memory growth over this 10-day test (
SMS_D_Ld10.f10_f10_musgs.I2000Clm50BgcCropGs.hobart_nag.clm-tracer_consistency
) (this was from a different run from the one summarized in the MEMLEAK line above, hence the slightly different numbers):I reran this test a few times, and get about the same results each time. Without water tracers (
SMS_D_Ld10.f10_f10_musgs.I2000Clm50BgcCropGs.hobart_nag.clm-default
), there still appears to be a memory leak, but of about 25% the magnitude:I tried turning off all output in the test with tracers (doing only monthly rather than daily output, and even setting hist_empty_htapes to true), and that didn't help much, if at all.
However, this memory leak does NOT show up on cheyenne_gnu, cheyenne_intel, hobart_gnu, hobart_intel or gnu on my laptop (bishorn) – though hobart_intel shows a small increase in usage (but not really highwater) over time: