Skip to content

Revert to cpu if cuda is not available (simpler version)#11

Open
JasonGross wants to merge 1 commit intoJoshEngels:mainfrom
JasonGross:cuda-available-simpler
Open

Revert to cpu if cuda is not available (simpler version)#11
JasonGross wants to merge 1 commit intoJoshEngels:mainfrom
JasonGross:cuda-available-simpler

Conversation

@JasonGross
Copy link
Contributor

@JasonGross JasonGross commented Sep 9, 2024

Also allow passing --device cpu, --device mps, etc to circle_probe_interventions.py, and remove the logic for special handling of numbers n as cuda:n to simplify logic.

Simpler alternative to #7
Closes #7

Also allow passing `--device cpu`, `--device mps`, etc to
`circle_probe_interventions.py`, and remove the logic for special
handling of numbers *n* as `cuda:n` to simplify logic.
@JasonGross JasonGross changed the title Revert to cpu if cuda is not available Revert to cpu if cuda is not available (simpler version) Sep 9, 2024
Tauheed-Elahee added a commit to Tauheed-Elahee/MultiDimensionalFeatures that referenced this pull request Mar 12, 2026
Tauheed-Elahee added a commit to Tauheed-Elahee/MultiDimensionalFeatures that referenced this pull request Mar 13, 2026
Tauheed-Elahee added a commit to Tauheed-Elahee/MultiDimensionalFeatures that referenced this pull request Mar 13, 2026
Most machines index GPUs from 0. The previous default of cuda:4
assumed a specific multi-GPU server setup and would fail on machines
with fewer than 5 GPUs.

Depends on PR JoshEngels#11 (CPU fallback).
Tauheed-Elahee added a commit to Tauheed-Elahee/MultiDimensionalFeatures that referenced this pull request Mar 13, 2026
Most machines index GPUs from 0. The previous default of cuda:4
assumed a specific multi-GPU server setup and would fail on machines
with fewer than 5 GPUs.

Depends on PR JoshEngels#11 (CPU fallback).
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.

1 participant