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

how to test in multiple GPU #64

Open
GraceZhuuu opened this issue Aug 9, 2024 · 0 comments
Open

how to test in multiple GPU #64

GraceZhuuu opened this issue Aug 9, 2024 · 0 comments

Comments

@GraceZhuuu
Copy link

I wrote a multi-GPUs test script with reference to basic SR. Although it can run, only one GPU is used.

PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0,1,2,3 \
python -m torch.distributed.launch --nproc_per_node=4 --master_port=4321 DiffIR/test.py -opt options/test_DiffIRS2.yml --launcher pytorch
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

1 participant