Repository navigation
Add torchvulkan fallback - #27
Open
BishopWolf wants to merge 2 commits into
Open
BishopWolf wants to merge 2 commits into
BishopWolf wants to merge 2 commits into
Conversation
CUDA is the only GPU backend PyTorch can use, so systems with an AMD, Intel, or Apple GPU compute on the CPU even when a Vulkan driver is available. Install the experimental torchvulkan backend only in that case: the PyTorch version required by torchvulkan is selected when PyTorch is installed, an incompatible PyTorch is never changed without asking the user for an upgrade, and computation falls back to the CPU when torchvulkan cannot be installed or loaded. The module now reports the Vulkan status and getDevice() returns the Vulkan device when it is usable. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Made and reviewed in a real Slicer environment. Assisted by : DeepSeek 4.1 Flash 10/17
Author
|
@lassoan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #26
This successfully adds a torchvulkan gpu to my Slicer, the ci tests all pass. For the final merge commit I will remove the Vulkan button so the "Install PyTorch" button will be completely automatic, now is deliberately separate for testing.
However I can't test it fully since TotalSegmentator must be made aware of the vulkan device, it currently fails to detect it.