Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage 1 can only be run on one gpu card 0 #46

Open
Beilong-Tang opened this issue May 27, 2024 · 1 comment
Open

Stage 1 can only be run on one gpu card 0 #46

Beilong-Tang opened this issue May 27, 2024 · 1 comment

Comments

@Beilong-Tang
Copy link

When i run stage 1

bash encoding_decoding.sh --stage 1 --batch_size 16 --num_workers 4 --gpu_devices "0" \
  --model_dir exp/${model_name} --bit_width 16000 \
  --wav_scp input_wav.scp  --out_dir outputs/codecs/

It seems that the gpu_devices can only be 0. Other number or array than 0 will give a cuda ordinal error.

@ZhengRachel
Copy link

It seems that by removing the os.environ["CUDA_VISIBLE_DEVICES"] = gpuid line in the scripts will solve the problem. There is a conflict while specifying cuda when using os.environ["CUDA_VISIBLE_DEVICES"] = gpuid and torch.cuda.set_device(int(gpuid)) at the same time if cuda is not cuda:0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants