voxcraft / voxcraft-sim

a GPU-accelerated voxel-based physics engine
Creative Commons Zero v1.0 Universal
43 stars 10 forks source link

Google Colab Runtime Configuration #37

Closed jrieffel closed 3 years ago

jrieffel commented 3 years ago

What runtime configuration settings should I be using? I've been getting the following error using the High-RAM machine with GPU accelleration.

=== set device to 0 for 1 simulations ===

Total GPU memory 16914055168 bytes. Set GPU heap size to be 8457027584 bytes.

/content/voxcraft-sim/src/VX3/VX3_SimulationManager.cu(413): CUDA Function Error: too many resources requested for launch Running simulation locally by default. ./vx3_node_worker -i workspace/locally/20210106152335.vxt -o workspace/locally/20210106152335.vxr

skriegman commented 3 years ago

John, as you know we cannot replicate your error without your .vxa/d files!

However, in all likelihood this error is from using too small of a heap size. Perhaps try 0.75 or higher, instead of the default 0.5.

https://gpuvoxels.readthedocs.io/en/docs/vxa-vxd/tags.html#vxa-gpu-heapsize

Please let us know whether or not that resolves the issue.

jrieffel commented 3 years ago

(my question was simply about GPU configuration, not asking for debugging help - but now that you offer)

Here is a zip with my vxa, vxd, history, and simulator configuration file. The config file is where I have updated the HeapSize. I'd love it if you could take a peek.

jr-heapsize-data.zip

skriegman commented 3 years ago

Actually if you are still having this problem, my lab members pointed out that your heapsize might be too large not too small (as I suggested). This is because not everything in the code allocates through the cuda kernel heap.

jrieffel commented 3 years ago

That did the trick! Lowered HeapSize to 0.25. Thank you!