Closed EdvardsZ closed 1 month ago
Thanks for the write up!
You can set the env var:
# in pyproject.toml add [tool.pixi....
[target.unix.activation.env]
CUDA_HOME="$CONDA_PREFIX"
[target.windows.activation.env]
CUDA_HOME="%CONDA_PREFIX%"
This should expose that env variable on all activations (run
, shell
, shell-hook
) of the environment.
Thanks for the write up!
You can set the env var:
# in pyproject.toml add [tool.pixi.... [target.unix.activation.env] CUDA_HOME="$CONDA_PREFIX" [target.windows.activation.env] CUDA_HOME="%CONDA_PREFIX%"
This should expose that env variable on all activations (
run
,shell
,shell-hook
) of the environment.
Thanks!
Assuming that helped you fix it, I'll close the issue :smile:
Checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
This is Pixi.toml
Then executing
I get
Issue description
Hello I am trying to build pytorch extension with different cuda version. My system has cuda 12.6 installed
When in pixi shell without the extension installed it gives me correctly
However, when installing pytorch extension "simple_knn" it gives me that error:
The workaround I found was to set CUDA_HOME variable:
Expected behavior
This should be possible to do without changing environment variables or be possible to specify in pixi.toml
EDIT i think this is bug with pytorch. However, it would be nice to set environment variable like something like this in pixi.toml https://github.com/pytorch/pytorch/issues/136845