IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

[Bug Report] --device_id can not work

Open kevincheng3 opened this issue 1 year ago • 2 comments

I think the problem may be related to running Isaac Sim, my classmates and I have the same problem that prevents us from using the second graphics card

Describe the bug

When I use command --device 1 to run the simulation using cuda:1, the simulation cannot run. The isaacsim window will pop up but the screen is black and the simulation is stuck. However, it can run normally when command --device 0 is used.

Steps to reproduce

For example, running exist scripts with ./isaaclab.sh -p source/standalone/demos/hands.py We can successfully run the script through ./isaaclab.sh -p source/standalone/demos/hands.py --device_id 0

Screenshot from 2024-08-01 20-06-48

But the simulation cannot be run with ./isaaclab.sh -p source/standalone/demos/hands.py --device_id 1 Screenshot from 2024-08-01 20-09-02

And the isaacsim window is in black screen state

System Info

  • Isaac Sim Version: 4.1.0
  • OS: [Ubuntu 22.04
  • GPU: RTX 4090 *2
  • CUDA: 11.8
  • GPU Driver: 535.183.01 Screenshot from 2024-08-01 20-05-16

kevincheng3 avatar Aug 01 '24 12:08 kevincheng3

Basic Simulation Environment starting in cuda:0

shendredm avatar Sep 19 '24 17:09 shendredm

I don't know if this might help but a possibility is to define CUDA_VISIBLE_DEVICES as discussed in https://discuss.pytorch.org/t/how-to-change-the-default-device-of-gpu-device-ids-0/1041

GiulioRomualdi avatar Oct 05 '24 11:10 GiulioRomualdi

Hi,

Have you tried headless?

glvov-bdai avatar Oct 29 '24 03:10 glvov-bdai

Closing due to inactivity. Please re-open if needed (after trying latest version)

garylvov avatar Sep 14 '25 19:09 garylvov