sxyu / svox2

Plenoxels: Radiance Fields without Neural Networks
BSD 2-Clause "Simplified" License
2.79k stars 359 forks source link

RuntimeError: CUDA error: too many resources requested for launch #6

Closed vahidEtt closed 2 years ago

vahidEtt commented 2 years ago

Any idea how this solves this issue? it looks related to the CUDA_NUM_THREADS. Can we set in the build? image

pwais commented 2 years ago

what GPU are you using? I don't get that on a K80

ishanic commented 2 years ago

I am getting the same error as @vahidEtt, and at the same code location as well. I am running it on Titan RTX (24GB), Driver Version: 460.91.03, CUDA Version: 11.2.

sxyu commented 2 years ago

Sorry about the issues, we've been using Titan RTX 24GB so it's quite weird. Yeah reducing the number of threads or adding launch_bounds will fix it this issue most likely. We have to pinpoint which one is causing trouble. However from your screenshot it's not super clear which kernel is at fault; it seems it's not one of the main ones. Maybe it's dilate_kernel?

What data are you using here?

sxyu commented 2 years ago

I just pre-emptively added launch_bounds in a bunch of places, not sure if that will fix it

vahidEtt commented 2 years ago

It's only happened when I ran it on the RTX 2080Ti. It was ok on the GTX 1080Ti.

I used my own data and dataloader.

OK. I will test it. Thanks!

vahidEtt commented 2 years ago

after reinstalling, It fixed the issue! Thanks!

ishanic commented 2 years ago

Indeed, adding launch_bounds seems to have fixed the issue. Thanks!