How to reason about "Environment <environment> was resolved for a richer platform than <platform> provides" warnings? #6547
|
As noted in matthewfeickert-talks/reproducible-cuda-workflows-with-pixi-scipy-2026#5 (comment), with Pixi [workspace]
channels = ["conda-forge"]
name = "example"
platforms = [ { name = "linux-64-cuda", platform = "linux-64", cuda = { driver = "13", arch = "8.0" } } ]
version = "0.1.0"
[tasks.download]
cmd = "curl -sLO https://raw.githubusercontent.com/NVIDIA/cutile-python/refs/heads/main/samples/quickstart/VectorAdd_quickstart.py"
[tasks.quickstart]
cmd = "python ./VectorAdd_quickstart.py"
[tasks.start]
depends-on = ["download", "quickstart"]
[dependencies]
numpy = ">=2.5.1,<3"
cupy = ">=14.1.1,<15"
cutile-python = ">=1.4.0,<2"
curl = ">=8.21.0,<9"However, on a $ nvidia-smi --query-gpu=name,compute_cap --format=csv,noheader,nounits
NVIDIA GeForce RTX 4060 Laptop GPU, 8.9
$ nvidia-smi -q | grep -i architecture
Product Architecture : Ada Lovelace
$ nvidia-smi --version
NVIDIA-SMI version : 595.71.05
NVML version : 595.71
DRIVER version : 595.71.05
CUDA Version : 13.2we get a warning that the resolved environment is not compatible with the local platform: $ pixi run start
✨ Pixi task (download): curl -sLO https://raw.githubusercontent.com/NVIDIA/cutile-python/refs/heads/main/samples/quickstart/VectorAdd_quickstart.py
WARN Environment 'default' was resolved for a richer platform than 'linux-64' provides; this machine only meets the installed packages' minimum requirements, so it runs here by accident.
✨ Pixi task (quickstart): python ./VectorAdd_quickstart.py
✓ vector_add_example passed!but this only happens the first time the workspace is created, as $ rm -f ./pixi.lock && pixi clean && pixi run start
Removed /tmp/example/.pixi/envs (2.4 GiB) Removed 2.4 GiB
✨ Pixi task (download): curl -sLO https://raw.githubusercontent.com/NVIDIA/cutile-python/refs/heads/main/samples/quickstart/VectorAdd_quickstart.py
✨ Pixi task (quickstart): python ./VectorAdd_quickstart.py
✓ vector_add_example passed!Why is this warning happening and how can I debug this? |
Replies: 2 comments 4 replies
|
I asked Claude Code Fable 5 and its summary is: That warning isn't about your hardware — it's about what pixi can prove about your hardware. Your GPU comfortably meets the declared platform (compute capability 8.9 ≥ 8.0, CUDA driver 13.2 ≥ 13). The problem is that the official pixi binary is a statically linked musl build, which physically cannot detect your GPU's compute capability, so the The mechanicsYour At
Your Your machine's detected virtual packages include Why
|
I believe the warning is also useless for the time being in this case. As no package in your environment depends on the
__cuda_archvirtual package.@baszalmstra @hunger We always build for musl for the Pixi github release, so the cuda_arch will always be None: https://github.com/conda/rattler/blob/13951af152f9890d4776d877ecd1197ec28c4e02/crates/rattler_virtual_packages/src/cuda.rs#L133-L146