Skip to content

nix-builder: always pass GPU_LANG to CMake - #901

Draft
danieldk wants to merge 2 commits into
mainfrom
nix-pass-gpu-lang
Draft

danieldk wants to merge 2 commits into
mainfrom
nix-pass-gpu-lang

Conversation

@danieldk

Copy link
Copy Markdown
Member

So far, we have relied on detection. However this turns out to be flaky for macOS, since the same Torch build can be used for CPU and Metal builds. It seems that since Torch 2.15, mps.is_available() starts reporting False on our CI machines (presumably due to not having visible Metal GPUs).

The language detection is really more for non-Nix development builds. So, let's be explicit for Nix builds to avoid detection mistakes.

So far, we have relied on detection. However this turns out to
be flaky for macOS, since the same Torch build can be used for CPU and
Metal builds. It seems that since Torch 2.15, `mps.is_available()`
starts reporting `False` on our CI machines (presumably due to not
having visible Metal GPUs).

The language detection is really more for non-Nix development builds.
So, let's be explicit for Nix builds to avoid detection mistakes.

This branch has not been deployed

No deployments
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