Skip to content

Is there any profiling tools on memory usage? #171

Answered by nvlukasz
Luke-Skycrawler asked this question in Q&A
Discussion options

You must be logged in to vote

We don't currently have a way to check memory usage in Warp, but I have something in progress for that. In the meantime, you could use a tool like nvidia-smi that reports GPU usage. If running out of memory, you should see an exception from Warp that the memory allocation failed.

There are a few things you can try debugging the illegal access.

  • Set wp.config.mode = "debug" at the start of your program. This will add some internal checks that may catch memory access errors.
  • Also try wp.config.verify_cuda = True to add some additional checks when launching kernels.
  • You could also try running your code on the "cpu" device to help narrow it down.

When you create an array like this:

self.arr …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Luke-Skycrawler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants