Repository navigation
Add ZLUDA/AMD GPU support via drop-in CUDA replacement - #13
Conversation
Agent-Logs-Url: https://github.com/14NGiestas/mfi/sessions/a38ebd2c-a8bf-4ae9-905d-837ae8ea53c2 Co-authored-by: 14NGiestas <14851487+14NGiestas@users.noreply.github.com>
14NGiestas
left a comment
There was a problem hiding this comment.
no changes in flake.nix? we are fine with manual instructions but we need to properly support nix environments
Agent-Logs-Url: https://github.com/14NGiestas/mfi/sessions/f0ee8247-a36b-45ed-9efd-c7bdc88d3487 Co-authored-by: 14NGiestas <14851487+14NGiestas@users.noreply.github.com>
Added a ZLUDA_PATH=/path/to/zluda nix develop .#gpu-zluda
# ZLUDA shell ready (ZLUDA_PATH=...).
# Build: make && fpm build --profile zluda
# Run: MFI_USE_CUBLAS=1 ./build/gfortran_*/app/appREADME quick-start and the ZLUDA Linux section are updated to document this shell. |
…Nix AMD support) Agent-Logs-Url: https://github.com/14NGiestas/mfi/sessions/77142a0b-990d-48d8-9ba8-d569a7ad5bc1 Co-authored-by: 14NGiestas <14851487+14NGiestas@users.noreply.github.com>
Agent-Logs-Url: https://github.com/14NGiestas/mfi/sessions/ccae3d0a-fe60-4940-875a-72c3908213ea Co-authored-by: 14NGiestas <14851487+14NGiestas@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR adds AMD GPU build support by integrating ZLUDA as a drop-in CUDA/cuBLAS runtime replacement, including a dedicated Nix dev shell and CI coverage for compile-only validation.
Changes:
- Document AMD GPU usage via ZLUDA in
README.md, including Nix and manual setup instructions plus troubleshooting notes. - Add a new
zludafpm feature/profile mirroring the existingcublasbuild configuration. - Introduce a
gpu-zludaNix dev shell and extend GitHub Actions matrices to compile in that environment.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
README.md |
Adds ZLUDA/AMD GPU usage docs and troubleshooting updates. |
fpm.toml |
Adds zluda feature and zluda profile (mirrors cublas). |
flake.nix |
Adds gpu-zluda dev shell wiring ZLUDA libs + CUDA headers. |
.github/workflows/fpm-deployment.yml |
Adds gpu-zluda entries to exhaustive/consumer compile matrices. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| #### Linux | ||
|
|
||
| **With Nix** (recommended): `pkgs.zluda` is used automatically — zero extra configuration: |
|
@copilot apply changes based on the comments in this thread |
Agent-Logs-Url: https://github.com/14NGiestas/mfi/sessions/76a4c0c2-60c5-416e-9d88-9e3a9ad1501a Co-authored-by: 14NGiestas <14851487+14NGiestas@users.noreply.github.com>
Fixed in a76871a. The README now reads: "no extra project env var configuration needed. You still need the AMD GPU driver and ROCm/HIP runtime installed on the host" — making it clear Nix only removes the project-side setup, not the host-side requirements. |
Agent-Logs-Url: https://github.com/14NGiestas/mfi/sessions/fb21d325-53c6-4ef8-95f4-3c7f7a9d9bf3 Co-authored-by: 14NGiestas <14851487+14NGiestas@users.noreply.github.com>
14NGiestas
left a comment
There was a problem hiding this comment.
building '/nix/store/pz82kxin6k7x6sr9qzcslmr51j26viaj-rocmlir-rock-6.0.2.drv'...
error: Cannot build '/nix/store/pz82kxin6k7x6sr9qzcslmr51j26viaj-rocmlir-rock-6.0.2.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/a4hcxpxq2yii54j3j514xbchrfkqjbm7-rocmlir-rock-6.0.2
Last 25 log lines:
> [2882/3047] Building CXX object external/llvm-project/llvm/tools/mlir/lib/Dialect/X86Vector/Transforms/CMakeFiles/obj.MLIRX86VectorTransforms.dir/LegalizeForLLVMExport.cpp.o
> [2883/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/AffixTuningParameters.cpp.o
> [2884/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/BufferLoadMerge.cpp.o
> [2885/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/BufferizableOpInterfaceImpl.cpp.o
> [2886/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/CleanMath.cpp.o
> [2887/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/AlignTiling.cpp.o
> [2888/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/BlockwiseGemmToThreadwise.cpp.o
> [2889/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/GemmToGridwise.cpp.o
> [2890/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/ConvToGemm.cpp.o
> [2891/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/Regularize.cpp.o
> [2892/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/GridLayoutEmitter.cpp.o
> [2893/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/LoopsToCf.cpp.o
> [2894/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/SugarToLoops.cpp.o
> [2895/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/ViewToTransform.cpp.o
> FAILED: mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/ViewToTransform.cpp.o
> /nix/store/42qbw3sxx3xc43pvr78bm90k2sz81bz6-rocm-llvm-clang-wrapper-6.0.2/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_LIBCPP_ENABLE_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build/mlir/lib/Dialect/Rock/Transforms -I/build/source/mlir/lib/Dialect/Rock/Transforms -I/build/source/external/llvm-project/llvm/include -I/build/source/build/external/llvm-project/llvm/include -I/build/source/external/llvm-project/mlir/include -I/build/source/build/external/llvm-project/llvm/tools/mlir/include -I/build/source/external/mlir-hal/mlir/include -I/build/source/build/external/mlir-hal/include -I/build/source/external/mlir-hal/include -I/build/source/mlir/include -I/build/source/build/mlir/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-e
> In file included from /build/source/mlir/lib/Dialect/Rock/Transforms/ViewToTransform.cpp:14:
> /build/source/mlir/include/mlir/Conversion/TosaToRock/TosaToRock.h:21:10: fatal error: 'mlir/Conversion/RocMLIRPasses.h.inc' file not found
> #include "mlir/Conversion/RocMLIRPasses.h.inc"
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> [2896/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/GridwiseGemmToBlockwise.cpp.o
> [2897/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/TransformToMemref.cpp.o
> [2898/3047] Building CXX object mlir/lib/Dialect/Rock/Transforms/CMakeFiles/obj.MLIRRockTransforms.dir/ThreadwiseGemmLowering.cpp.o
> ninja: build stopped: subcommand failed.
For full logs, run:
nix log /nix/store/pz82kxin6k7x6sr9qzcslmr51j26viaj-rocmlir-rock-6.0.2.drv
error: Cannot build '/nix/store/869yh1cxq0b1f9ydw8cc85rpx9rqw5nl-miopen-6.0.2.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/q96zkq1fgdrl1p18r78z1bxignacrml2-miopen-6.0.2
error: Build failed due to failed dependency
error: Cannot build '/nix/store/giaybbxszg13dc7whns4bicks66rjjda-zluda-3.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/rvk5g9fkm4fmqskar5vvr3mn6b2vrk91-zluda-3
error: Build failed due to failed dependency
error: Cannot build '/nix/store/yphn87in8cln9hz4zxfapi099c600gy9-nix-shell-env.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/diwc45mkl564rvykkzzsf66fmlhf0bky-nix-shell-env
error: Build failed due to failed dependency
Error: Process completed with exit code 1.
…Cm/HIP from nixpkgs Agent-Logs-Url: https://github.com/14NGiestas/mfi/sessions/73747e1f-442d-4b69-9970-e5b4158cbb98 Co-authored-by: 14NGiestas <14851487+14NGiestas@users.noreply.github.com>
Fixed in The fix removes
ZLUDA itself is wired in dynamically via ZLUDA_PATH=/path/to/zluda nix develop .#gpu-zludaThe shell prints a clear warning with the download URL if |
14NGiestas
left a comment
There was a problem hiding this comment.
if [ -n "cublas" ]; then
nix develop .#gpu-zluda --command bash -c "fortran-fpm build --profile cublas"
else
nix develop .#gpu-zluda --command bash -c "fortran-fpm build"
fi
shell: /usr/bin/bash -e {0}
env:
PROJECT_NAME: mfi
DETSYS_BACKTRACE_COLLECTOR: 786de5ce-5bba-48c1-ba22-3e089807cda0
DETERMINATE_NIX_KVM: 1
MAGIC_NIX_CACHE_DAEMONDIR: /home/runner/work/_temp/magic-nix-cache-f3011cc5-f158-41ae-97e5-7d714f066077
MAGIC_NIX_CACHE_ADDRESS: 127.0.0.1:37515
MFI_TEST_ELEMENTS: 50000
MFI_TEST_SAMPLES: 1
copying path '/nix/store/501gib4pdvs9n20fcznxdqw7g68ss9w7-rocm-device-libs-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/mfa896qcp18v4lv8l9q1kyklnzy4n4w1-source' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/qdn1pb5b3f8rz2d9h70j6m665drd0faj-rocm-llvm-libc-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/0b238sqzqja2js0a4x0j5wn6zjpv2g3q-gcc-12.4.0-libgcc' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/adkrad546j6kqv8gzf967rrrybc3zn8l-hip-common-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/whhrr100w1jglrfk5r4fr7iqsmf40c9h-getopt-1.1.6' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/jq2bviv3k1r67n3z4dir5hjpb8519ql7-hwdata-0.390' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/bi5888x7pm4ksn4s2qwz86lmdl8nfi1z-numactl-2.0.18' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/waw0dpxm2h63cljvil3d5agcf7v7zm78-brotli-1.1.0-lib' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/hfzprd964nzxk9axsaaffm0ql4lrpvra-perl-5.40.0' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/dhw4mp785v77ab26c0hggwyriar17hzx-rocm-llvm-libunwind-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/y2bs4jd298vdqfgnv6jbwkza63r51x41-libedit-20240808-3.1' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/bfwqrbwqpbnsdbgf86gz8pn8vvddci3i-libxml2-2.13.8' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/k5z63s2xn5dvyaq4y8yqiiywrlfgq6jr-ncurses-6.4.20221231-man' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/8ncajnw8d7qwxqjsrv4pdfs479x5a9pd-publicsuffix-list-0-unstable-2024-10-25' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/h2qap7znf2iflyr7g567lnnzsnh0p4x8-zstd-1.5.6' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/kdw2hmdygfx84hzdnhj2dz5987610mi9-add-driver-runpath' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/qnskgmkzr5d7w1kknyfpn4svbq9r8xi0-auto-fix-elf-files' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/8g00d8psl74nk8qqgl4byhj5fawy544k-curl-8.12.1-man' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/brfgz483dyzsdwwd4wrljp38m90p7fhl-gcc-12.4.0-lib' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/zpwp6k2kldm84ql88sj1q0i8iyivi7ms-gmp-with-cxx-6.3.0' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/bj99zxii7nlh3rb22m3r6amzh6lpy73q-keyutils-1.6.3-lib' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/a79pxcmsswqiianw3nqhbpvqn07ridr1-libpsl-0.21.5' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/9mfwp05gwj1gs2fb93m9xla91znw1p62-libssh2-1.11.1' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/2dwvj56q7wd33830nqy7sslfwm3c9wga-auto-add-driver-runpath-hook' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/6l4zlddyv950bbwlkkdlbwg3i82k9j3c-lsb_release' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/2mz951sspbzzxksxp2aizfmpb1npfimg-mark-for-cudatoolkit-root-hook' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/lkfxic36p5rnbwyqfgnh9akwnxs0agsy-mirrors-list' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/gqw9qzznhgnbqycbdrwz6xwsy62c3gl3-nghttp2-1.64.0' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/28611j8cjjvifa0lxcm2ddvjl35rj9zb-nghttp2-1.64.0-lib' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/lay92qpq1yif2qf57nb858ha50mjx7j1-nghttp2-1.64.0-lib' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/jnm3rnrij3889ag29kilwfcmzf484sfr-openssl-3.3.3' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/q48l0178mdh6jqinn86s06b6rv3667vg-krb5-1.21.3-lib' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/s4d11a0d10b0mlwgjl7qd639fgpkfww0-python3.12-pyelftools-0.31' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/fm7bc2z0d1wkk6hq925h8803wfl3pb9g-isl-0.20' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/sxh73xj9wphjldm8axwm2s0hijylp6wx-mpfr-4.2.1' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/nk5jmmrz35585zk4kmss4pddiqzwz2dj-ncurses-6.4.20221231-dev' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/waxi9kyrlxndjw4m98aa2picqnyhwljg-rocm-comgr-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/4mmdi8a6znw6qkf2gayg0iqig708pc3b-stdenv-linux' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/6l7d86r8jfm0dwmwrwr8757cq89gyr7m-libpciaccess-0.18.1' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/ap4f1dba1k99xivql14nrhncgc39g1xr-nghttp2-1.64.0-dev' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/845ph6k0bsg956nf7f5w9jsbzz1qz3ls-rocm-llvm-clang-unwrapped-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/ayy0i8kx3fsfbz9hn11g4nhq72pvi5r6-rocm-llvm-lld-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/1njd775xgzd0wb84wcapn54j4f5bi3g7-rocm-llvm-runtimes-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/6qmfmza7nyac6jnk44v6pigqpiadhjh0-libdrm-2.4.123' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/d2i7rq57948gi664ly3g49f9sh43zvp9-rocm-llvm-llvm-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/8b0kz6ccrjy0x62rsqvwbwr3v7sm0sr7-curl-8.12.1' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/sqib6gfcgyxhv6cqwgb57prila41c575-libmpc-1.3.1' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/jag2131a95gw6ng7grig9pj3dn2q8vrv-python3-3.12.8-env' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/pjqrsq0cbl9faj7v2x03hwnfhsi5b9ph-libssh2-1.11.1' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/bh7a22vm8bkcngscl70wkq3n2xbkynbq-openssl-3.3.3-bin' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/pblf27mh4afpjadsv9r7qnpfi3f0ikrn-krb5-1.21.3-lib' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/6a4i3jbngk24wxznc2ky01brpvvd1zqc-gcc-12.4.0' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/sz4dchxmxnhk3ancyyh0d636gdrb651b-elfutils-0.191' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/9dgpj7ippixca65z13smbavpp1fbf5rr-auto-patchelf-0-unstable-2024-08-14' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/khr2vkk1absw0i6ik9v0iv7077m1cii5-openssl-3.3.3-dev' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/0llkf2nyl0nsk46kxw89jac09rp782by-curl-8.12.1' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/kr2rkfi2b15k3whwj2gmibv7xkx22yfx-krb5-1.21.3' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/qkid1gidky1yddhl48lgpf8bv3ccwj0a-rocm-runtime-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/zmia540cpzlan8dbnf6hnmgxn3fs3zhf-auto-patchelf-hook' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/s44hqfz5vk6d2g4ddpdkl38x99iw8k1c-libssh2-1.11.1-dev' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/yz2sqhcrnkx12g124qrjjf2wmcsmhxhd-krb5-1.21.3-dev' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/azmm9a0b076mnbnvp1bsjlihkankydbl-curl-8.12.1-bin' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/qzw5i3gsxp895z42xwsp8iqrkhygn04g-rocminfo-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/i8ybkhj7g66qhj3kfk4pkvfai7krm6z4-rocm-llvm-compiler-rt-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/x36bvzqdlsvniihab6is6vbgy63x5b38-rocm-llvm-libcxx-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/751dd9hclzs73r64hq7xwfj0a2anrh6v-rocm-llvm-libcxxabi-6.0.2' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/bylbai6fm97ykcdrfjy2v5smhh18bsby-curl-8.12.1-dev' from 'http://127.0.0.1:37515/'...
building '/nix/store/qlnn1ymhpgm6gglsa8729gz4x8jac17r-cuda_cccl-linux-x86_64-12.3.52-archive.tar.xz.drv'...
building '/nix/store/n3kg9z0qrs0j6z684yqf03lb5v73arkm-cuda_cudart-linux-x86_64-12.3.52-archive.tar.xz.drv'...
building '/nix/store/j8smiv8kv81kd5wg8766ax1wv3l1ynga-libcublas-linux-x86_64-12.3.2.9-archive.tar.xz.drv'...
copying path '/nix/store/hh6i362nfj1b8xjn81hlxgzvm6rjpvcd-gcc-wrapper-12.4.0' from 'http://127.0.0.1:37515/'...
copying path '/nix/store/w1wa4dysw6021bk7knpwj349q3hkp0k5-stdenv-linux' from 'http://127.0.0.1:37515/'...
building '/nix/store/qsbj2w55a3wngczww3pnkgy1w8xhc1w7-cuda_cccl-12.3.52.drv'...
building '/nix/store/8nmv7djyb9895wzaf4diihxi8b9qrnja-cuda_cudart-12.3.52.drv'...
building '/nix/store/y3y6xcd552s6csjh79mni0sl9zlpjcic-libcublas-12.3.2.9.drv'...
copying path '/nix/store/jsg5jnb6ynv6741bjyywsk25d4l66h8p-rocm-llvm-binutils-6.0.2' from 'http://127.0.0.1:37515/'...
disabling binary cache 'http://127.0.0.1:37515/' for 60 seconds
error: unable to download 'http://127.0.0.1:37515/nar/141dzww6xr8vfvh0axf0w4im7xxqlv3ixf4nxc480a215827jfcr.nar.xz': HTTP error 418
response body:
GitHub API error: GitHub Actions Cache throttled Magic Nix Cache. Not trying to use it again on this run.
copying path '/nix/store/jsg5jnb6ynv6741bjyywsk25d4l66h8p-rocm-llvm-binutils-6.0.2' from 'https://cache.nixos.org/'...
copying path '/nix/store/7bbw1p2nw8fawn0gsg0cbiilff8y55cj-rocm-llvm-binutils-wrapper-6.0.2' from 'http://127.0.0.1:37515/'...
error: substituter 'http://127.0.0.1:37515/' is disabled
copying path '/nix/store/7bbw1p2nw8fawn0gsg0cbiilff8y55cj-rocm-llvm-binutils-wrapper-6.0.2' from 'https://cache.nixos.org/'...
copying path '/nix/store/4rv6ja9gai87ws0nvka86b79zmwajjg4-rocm-llvm-clang-6.0.2' from 'http://127.0.0.1:37515/'...
error: substituter 'http://127.0.0.1:37515/' is disabled
copying path '/nix/store/4rv6ja9gai87ws0nvka86b79zmwajjg4-rocm-llvm-clang-6.0.2' from 'https://cache.nixos.org/'...
copying path '/nix/store/42qbw3sxx3xc43pvr78bm90k2sz81bz6-rocm-llvm-clang-wrapper-6.0.2' from 'http://127.0.0.1:37515/'...
error: substituter 'http://127.0.0.1:37515/' is disabled
copying path '/nix/store/42qbw3sxx3xc43pvr78bm90k2sz81bz6-rocm-llvm-clang-wrapper-6.0.2' from 'https://cache.nixos.org/'...
copying path '/nix/store/2gcchhigx8hvdfvyah0ih6sa9b27a2ig-clr-6.0.2' from 'http://127.0.0.1:37515/'...
error: substituter 'http://127.0.0.1:37515/' is disabled
copying path '/nix/store/2gcchhigx8hvdfvyah0ih6sa9b27a2ig-clr-6.0.2' from 'https://cache.nixos.org/'...
building '/nix/store/g10ycyscvklvf1g5w70mblxf0iafpd4k-nix-shell-env.drv'...
WARNING: ZLUDA_PATH is not set.
Download ZLUDA from https://github.com/vosen/ZLUDA/releases
then re-enter with: ZLUDA_PATH=/path/to/zluda nix develop .#gpu-zluda
+ mkdir -p build/dependencies
[ 0%] cublas_wrap.c
[ 0%] cublas_wrap.c done.
<ERROR> Compilation failed for object " src_c_cublas_wrap.c.o "
<ERROR> stopping due to failed compilation
STOP 1
In file included from ././src/c/cublas_wrap.c:3:
/nix/store/gjw4dhwljz6zn7rhls4rx8r9x39p6b1i-cuda_cudart-12.3.52-dev/include/cuda_runtime.h:82:10: fatal error: crt/host_config.h: No such file or directory
82 | #include "crt/host_config.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
Error: Process completed with exit code 1.
…ig.h Agent-Logs-Url: https://github.com/14NGiestas/mfi/sessions/4170f813-0101-40a4-85a0-10f1e9f1b274 Co-authored-by: 14NGiestas <14851487+14NGiestas@users.noreply.github.com>
Fixed in |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (1)
.github/workflows/fpm-deployment.yml:116
- The consumer-test ZLUDA compile jobs also use
environment: gpu-zludawithout providingZLUDA_PATH, so they’re subject to the same likely link failure as the exhaustive-test ZLUDA job. If the intent is “compile-only” without ZLUDA present, ensure the devShell provides linkablecublas/cudart(or download ZLUDA in CI).
dir: ci/consumer/extensions
environment: gpu-modern
mode: compile
- name: gpu-zluda-lazy
dir: ci/consumer/gpu_lazy
environment: gpu-zluda
mode: compile
- name: gpu-zluda-explicit
dir: ci/consumer/gpu_explicit
environment: gpu-zluda
mode: compile
- name: gpu-zluda-extensions
dir: ci/consumer/extensions
environment: gpu-zluda
mode: compile
gpu-zluda-cublasentry toexhaustive-testmatrixgpu-zluda-lazy,gpu-zluda-explicit,gpu-zluda-extensionsentries toconsumer-testmatrixgpu-zludadevShell toflake.nixrocmPackages.clr,rocmPackages.rocm-runtime) ingpu-zludaNix shell — only the AMD GPU kernel driver is still a host requirement