Repository navigation
Conversation
484272c to
2564a33
Compare
Triton JIT-compiles cuda_utils.c at runtime using whatever `cc`/`gcc` is on PATH. In environments without a compiler in PATH (e.g. deployed Nix environments), this fails with linker errors (cannot find crti.o, -lc, -lgcc_s). Hardcode the Nix cc-wrapper path as the default fallback for the CC lookup in build.py, matching the pattern already used in the test's axpy-cuda derivation. Assisted-by: Claude Code (claude-opus-4-6)
2564a33 to
8ba00c4
Compare
Review dismissed automatically
Review dismissed automatically
Triton JIT-compiles cuda_utils.c at runtime using whatever `cc`/`gcc` is on PATH. In environments without a compiler in PATH (e.g. deployed Nix environments), this fails with linker errors (cannot find crti.o, -lc, -lgcc_s). Hardcode the Nix cc-wrapper path as the default fallback for the CC lookup in build.py, matching the pattern already used in the test's axpy-cuda derivation. Assisted-by: Claude Code (claude-opus-4-6) Originally submitted at NixOS#526003
|
Thanks for the submission! As #519925 will already lead to a full rebuild of |
|
Sounds good, thanks! |
Triton JIT-compiles cuda_utils.c at runtime using whatever `cc`/`gcc` is on PATH. In environments without a compiler in PATH (e.g. deployed Nix environments), this fails with linker errors (cannot find crti.o, -lc, -lgcc_s). Hardcode the Nix cc-wrapper path as the default fallback for the CC lookup in build.py, matching the pattern already used in the test's axpy-cuda derivation. Assisted-by: Claude Code (claude-opus-4-6) Originally submitted at NixOS#526003
|
Maaaaaaaaaaaan GitHub lost the Email reply again...
|
Triton JIT-compiles cuda_utils.c at runtime using whatever `cc`/`gcc` is on PATH. In environments without a compiler in PATH (e.g. deployed Nix environments), this fails with linker errors (cannot find crti.o, -lc, -lgcc_s). Hardcode the Nix cc-wrapper path as the default fallback for the CC lookup in build.py, matching the pattern already used in the test's axpy-cuda derivation. Assisted-by: Claude Code (claude-opus-4-6) Originally submitted at NixOS#526003
Triton JIT-compiles cuda_utils.c at runtime using whatever `cc`/`gcc` is on PATH. In environments without a compiler in PATH (e.g. deployed Nix environments), this fails with linker errors (cannot find crti.o, -lc, -lgcc_s). Hardcode the Nix cc-wrapper path as the default fallback for the CC lookup in build.py, matching the pattern already used in the test's axpy-cuda derivation. Assisted-by: Claude Code (claude-opus-4-6) Originally submitted at NixOS#526003
Triton JIT-compiles cuda_utils.c at runtime using whatever `cc`/`gcc` is on PATH. In environments without a compiler in PATH (e.g. deployed Nix environments), this fails with linker errors (cannot find crti.o, -lc, -lgcc_s). Hardcode the Nix cc-wrapper path as the default fallback for the CC lookup in build.py, matching the pattern already used in the test's axpy-cuda derivation. Assisted-by: Claude Code (claude-opus-4-6) Originally submitted at NixOS#526003
Triton JIT-compiles cuda_utils.c at runtime using whatever `cc`/`gcc` is on PATH. In environments without a compiler in PATH (e.g. deployed Nix environments), this fails with linker errors (cannot find crti.o, -lc, -lgcc_s). Hardcode the Nix cc-wrapper path as the default fallback for the CC lookup in build.py, matching the pattern already used in the test's axpy-cuda derivation. Assisted-by: Claude Code (claude-opus-4-6) Originally submitted at NixOS#526003
Triton JIT-compiles
cuda_utils.cat runtime using whatevercc/gccis on PATH. When no properly wrapped compiler is available the fallbackgcccannot locate glibc'scrti.o,-lc, or-lgcc_s, and JIT compilation fails.This patch hardcodes the Nix cc-wrapper path in
build.py's CC lookup here.Reproducer:
gives
Assisted-by: Claude Code (claude-opus-4-6)
Things done
Things done
passthru.tests.nixpkgs-reviewon this PR. See [nixpkgs-review usage]../result/bin/.