Skip to content

Fix all the cuda memory leaks discovered with stmv run

Mahesh Doijade requested to merge md_fix_cuda_mem_leaks into main

running compute-sanitizer --target-processes=all --leak-check=full with STMV dataset for 1 PME and 1 PP rank below 19 memory leaks as reported by compute-sanitizer.

========= LEAK SUMMARY: 172991796 bytes leaked in 19 allocations

========= ERROR SUMMARY: 31 errors

after changes in this MR.

========= LEAK SUMMARY: 30487740 bytes leaked in 2 allocations

========= ERROR SUMMARY: 14 errors

the 2 remaining leaks looks to be coming from OpenMPI this commit does not address them.

Refs #4387

Edited by Szilárd Páll

Merge request reports