Open Pigbrainlyh opened 1 year ago
Did you set cuda:2
in your torch code or did you set CUDA_VISIBLE_DEVICES=2
? CUDA_VISIBLE_DEVICES=2
will make the GPU with index 2 to become cuda:0
.
Did you set
cuda:2
in your torch code or did you setCUDA_VISIBLE_DEVICES=2
?CUDA_VISIBLE_DEVICES=2
will make the GPU with index 2 to becomecuda:0
.
I set cuda:2
in my torch code.
Given the current information, it is very hard to understand what is causing the error. We are currently developing SAPIEN 3, and it should come with more error detection and workarounds in the renderer. It will have a few API changes and I am not sure if it will greatly affect your code. Our latest development version will always be posted to the release page (Nightly Release). You can try it out and see if the error still exists.
Hi, I meet the same error. Is there any possible solution / related issue to this issue? Thanks.
I meet the same error. Any solution will be highly appreciated....🧎🧎🧎
what version of sapien are you using? And are you testing this via ManiSkill?
Hi, I met with this error too. I am using sapien version of 2.2.2. Tried with NVIDIA A40 and A5000.
I was testing it via ManiSkill, but the error occurs even if I run:
>>> import sapien.core as sapien
>>> sapien.SapienRenderer(offscreen_only=True, device="cuda:0")
Any help would be highly appreciated.
@srye2 can you install sapien==3.0.0b1 and run
sapien info --all
If it doesn't work please follow https://maniskill.readthedocs.io/en/latest/user_guide/getting_started/installation.html#troubleshooting, make sure the relevant packages and files are installed
Upgrading worked, thank you so much!
System:
Describe the bug I have used sapien to render camera pictures as observations in a gym environment. However, the following error occured during training.
The agent had already interacted with the gym environment before the above error occured, and the memory for the corresponding gpu is sufficient. The agent model is on cuda:2 device. I want to know why the error could occur and how to fix it.
Expected behavior Successfully obtain a renderer and set it to the sapien engine.
Additional context Also in the beginning I run the code without
device="cuda:0"
, and another error occuredI guess it was because the renderer and the agent used the same gpu, and this is the reason I chose to specify the device of the renderer.