XPandora / PhysGaussian

[CVPR 2024 Highlight] PhysGaussian: Physics-Integrated 3D Gaussians for Generative Dynamics
1.05k stars 43 forks source link

RuntimeError: CUDA error detected: 700 #11

Open willehlad opened 8 months ago

willehlad commented 8 months ago

Hi Tianyi, I finally managed to get it all working (including simulating the demo)

Im not sure about the config.jason file as i just copied and rename the demo one for my project but i keep getting this error (even when using one demo config.json on another demo's model)

File "C:\Users\howv\anaconda3\envs\physgaussian\lib\site-packages\warp\context.py", line 2422, in verify_cuda_device raise RuntimeError(f"CUDA error detected: {err}") Warp CUDA error 700: an illegal memory access was encountered (W:\a9ae500d09a78409\warp\native\warp.cu:223) [E 03/06/24 11:31:57.167 3076] [taichi/rhi/cuda/cuda_driver.h:taichi::lang::CUDADriverFunction<void *>::operator ()@90] CUDA Error CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered while calling stream_synchronize (cuStreamSynchronize)

so i'm assuming there is some mismatch with numbers if i just use a demo config.json on another model ..like particle numbers or something like it is expecting more data or less data from something not lining up correctly

I'm not sure how to go about creating a config.json or altering a demo one to suit my project.. I can't see anywhere in the documentation that creates one for you so i'm assuming you just have to edit an existing one ?

the WHOLE point of me trying to do this is so i can make a person 'crumble' to the floor like one of your demo videos..for a personal music video :)

thanks Howie

XPandora commented 8 months ago

Hi Howie,

Sounds great that you got it working. This is probably because some particles are out of the simulation grid as I mentioned in #10 .

Yes, you should create a config file for each demo. For your case, you can probably create the config file based on wolf_config.json, since it sounds like you want to simulate it as sand.

I'll update the README soon with more instructions.

Best, Tianyi