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

fix --cuda-device arg for AMD/HIP devices #5586

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

Bratzmeister
Copy link
Contributor

concerning #5585
CUDA_VISIBLE_DEVICES is ignored for HIP devices/backend. Instead it uses HIP_VISIBLE_DEVICES. Setting this environment variable has no side effect for CUDA/NVIDIA so it can safely be set in any case and vice versa.

CUDA_VISIBLE_DEVICES is ignored for HIP devices/backend. Instead it uses HIP_VISIBLE_DEVICES. Setting this environment variable has no side effect for CUDA/NVIDIA so it can safely be set in any case and vice versa.
@Bratzmeister
Copy link
Contributor Author

as mentioned in #5585 this should solve the problem itself but it needs testing. I currently can't verify myself due to my multi-gpu setup being faulty apparently. However the switch is working as intended after this code change.

@comfyanonymous comfyanonymous merged commit a72d152 into comfyanonymous:master Nov 12, 2024
@Bratzmeister Bratzmeister deleted the hip-device-switch branch November 12, 2024 19:26
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

Successfully merging this pull request may close these issues.

2 participants