stylegan2-pytorch
stylegan2-pytorch copied to clipboard
can not set GPU ids when DDP
I tried: CUDA_VISIBLE_DEVICES=4,5,6,7 python -m torch.distributed.launch --nproc_per_node=4 --master_port=PORT train.py --batch BATCH_SIZE LMDB_PATH But the ids are always 0,1,2,3. I don't wha't the reason. Anybody konw this?
it's ok for other program
As ddp is depend on torch.distributed.launch, it is related on that module. I think you can try to use export CUDA_VISIBLED_DEVICES=4,5,6,7.