Skip to content
Mark Gates edited this page Jul 13, 2023 · 1 revision

CPU

This command gives the maximum amount of memory used by ls:

/usr/bin/time -v ls
Maximum resident set size (kbytes): 1116

getrusage() can be used in code.

GPU

Nsight shows the used memory amount.

nsys profile --cuda-memory-usage=true ./tester --dim 1000 --target d gemm
Clone this wiki locally