mark@atmos_colostate_edu
Member
Is it possible to run cesm2 with valgrind turned on? I tried doing this on Cori by doing these two things:1) added a "module load valgrind" to cime/config/cesm/machines/config_machines.xml in the cori-haswell section cray-netcdf-hdf5parallel cray-netcdf-hdf5parallel/4.4.1.1.6 cray-hdf5-parallel/1.10.1.1 cray-parallel-netcdf/1.8.1.3 valgrind 2) modified env_mach_specific.xml srun --label -n {{ total_tasks }} valgrind --leak-check=yes -c {{ srun_binding }} The log file in the case directory itself showed this:run command is srun --label -n 45 valgrind --leak-check=yes -c 2 /global/cscratch1/sd/mbranson/ne5-has/bld/cesm.exe >> cesm.log.$LID 2>&1 But the cesm log file had this:16: valgrind: 2: command not found19: valgrind: 2: command not found18: valgrind: 2: command not found 6: valgrind: 2: command not found 1: valgrind: 2: command not found 7: valgrind: 2: command not found 4: valgrind: 2: command not found17: valgrind: 2: command not found 5: valgrind: 2: command not found so I suspect that adding a module load for valgrind in the config_machines.xml file is only getting utilized in the build stage (i.e., the module is not being loaded when the model is actually executed). Is there any workaround for this?Thanks,Mark Branson