Open Kelly510 opened 3 years ago
Describe the bug When I run training on multi-gpus and run the following part of the code, I hope to perform rendering on GPU 3 so I set device_id = 3. But GPU utilization message shows that the rendering actually perform on GPU 1.
# set ofscreen render contexts print('offscreen render contexts on gpu', device_id) print('before rendering:') GPUtil.showUtilization() self.mjr_render_context_offscreen = MjRenderContext(self.sim, offscreen=True, device_id=device_id, opengl_backend='egl') print('after rendering:') GPUtil.showUtilization()
The output is as following.
offscreen render contexts on gpu 3 before rendering: | ID | GPU | MEM | ------------------ | 0 | 2% | 4% | | 1 | 0% | 4% | | 2 | 0% | 0% | | 3 | 0% | 0% | | 4 | 0% | 0% | | 5 | 0% | 0% | after rendering: | ID | GPU | MEM | ------------------ | 0 | 0% | 4% | | 1 | 7% | 8% | | 2 | 0% | 0% | | 3 | 0% | 0% | | 4 | 0% | 0% | | 5 | 0% | 0% |
Expected behavior Perform rendering on device_id gpu.
Error Messages Shown in Description part.
Desktop (please complete the following information):
Environment
echo $LD_LIBRARY_PATH
Same issue. Do you figure this out?
Describe the bug When I run training on multi-gpus and run the following part of the code, I hope to perform rendering on GPU 3 so I set device_id = 3. But GPU utilization message shows that the rendering actually perform on GPU 1.
The output is as following.
Expected behavior Perform rendering on device_id gpu.
Error Messages Shown in Description part.
Desktop (please complete the following information):
Environment
echo $LD_LIBRARY_PATH
/u/user/.mujoco/mujoco200/bin: