New comment by Jipok on void-packages repository https://github.com/void-linux/void-packages/issues/26415#issuecomment-1702991439 Comment: Well, for those who, like me, want to build, I will leave a hint just in case. I warn you that this will take a lot of time (a day) and require a lot of vram+swap(up to 60GB) ```bash sudo xbps-install -Su git clone https://github.com/rederick29/void-packages rocm cd rocm git checkout rocm git remote add upstream https://github.com/void-linux/void-packages git fetch upstream master git rebase upstream/master ./xbps-src binary-bootstrap # REMOVE the '~' (tilde) from the GPU architecture(s) you wish to build for echo "XBPS_PKG_OPTIONS=~gfx803,~gfx900,~gfx906,~gfx908,~gfx90a,~gfx1010,~gfx1011,~gfx1012,~gfx1030,~gfx1031,~gfx1100,~gfx1101,~gfx1102" >> etc/conf ./xbps-src pkg HIP-sdk ``` **UPD:** Faster way: ```bash git clone https://github.com/rederick29/void-packages rocm --depth 1 -b rocm git clone --depth 1 https://github.com/void-linux/void-packages cp -r rocm/srcpkgs/{FunctionalPlus,HIP-sdk,HIPIFY,MIOpen,MIOpenGEMM,ROCR-Runtime,ROCT-Thunk-Interface,ROCclr,ROCdbgapi,ROCgdb,ROCm-CompilerSupport,ROCm-Device-Libs,ROCm-OpenCL-Runtime,ROCm-composable_kernel,ROCm-core,frugally-deep,half,hipBLAS,hipCUB,hipFFT,hipSOLVER,hipSPARSE,hipamd,hsa-amd-aqlprofile-bin,magma,python3-CppHeaderParser,python3-barectf,rccl,rocALUTION,rocBLAS,rocFFT,rocMLIR,rocPRIM,rocRAND,rocSOLVER,rocSPARSE,rocThrust,rocm-cmake,rocm-flang-pgmath,rocm-flang,rocm-llvm-openmp,rocm-llvm,rocm_smi_lib,rocminfo/,rocprofiler,rocprofiler-v2,roctracer} ./void-packages/srcpkgs/ # Go to https://github.com/void-linux/void-packages/compare/master...rederick29:void-packages:rocm # Copy additions from common/shlibs and paste at end of ./void-packages/common/shlibs cd void-packages ./xbps-src binary-bootstrap ./xbps-src pkg rocminfo sudo xi rocminfo # Get GPU architecture name: /opt/rocm/bin/rocminfo # REMOVE the '~' (tilde) from the GPU architecture(s) you wish to build for: "XBPS_PKG_OPTIONS=~gfx803,~gfx900,~gfx906,~gfx908,~gfx90a,~gfx1010,~gfx1011,~gfx1012,~gfx1030,~gfx1031,~gfx1100,~gfx1101,~gfx1102" >> etc/conf # Build what you want. For all packages: ./xbps-src pkg HIP-sdk ``` **UPD2:** ROCm 6.0: ```bash git clone https://github.com/rederick29/void-packages rocm --depth 1 -b rocm6 git clone --depth 1 https://github.com/void-linux/void-packages cp -r rocm/srcpkgs/{FunctionalPlus,HIP-sdk,HIPIFY,hipRAND,MIOpen,MIOpenGEMM,ROCR-Runtime,ROCT-Thunk-Interface,ROCclr,ROCdbgapi,ROCgdb,ROCm-CompilerSupport,ROCm-Device-Libs,ROCm-OpenCL-Runtime,ROCm-composable_kernel,ROCm-core,frugally-deep,rocm-half,hipBLAS,hipCUB,hipFFT,hipSOLVER,hipSPARSE,hipamd,hsa-amd-aqlprofile-bin,magma,python3-CppHeaderParser,python3-barectf,rccl,rocALUTION,rocBLAS,rocFFT,rocMLIR,rocPRIM,rocRAND,rocSOLVER,rocSPARSE,rocThrust,rocm-cmake,rocm-flang-pgmath,rocm-flang,rocm-llvm-openmp,rocm-llvm,rocm_smi_lib,rocminfo/,rocprofiler,roctracer} ./void-packages/srcpkgs/ # Go to https://github.com/void-linux/void-packages/compare/master...rederick29:void-packages:rocm # Copy additions from common/shlibs and paste at end of ./void-packages/common/shlibs cd void-packages ./xbps-src binary-bootstrap ./xbps-src pkg rocminfo sudo xi rocminfo # Get GPU architecture name: /opt/rocm/bin/rocminfo # REMOVE the '~' (tilde) from the GPU architecture(s) you wish to build for: echo "XBPS_PKG_OPTIONS=~gfx803,~gfx900,~gfx906,~gfx908,~gfx90a,~gfx940,~gfx941,~gfx942,~gfx1010,~gfx1011,~gfx1012,~gfx1030,~gfx1031,~gfx1100,~gfx1101,~gfx1102" >> etc/conf # Build what you want. For most packages: ./xbps-src pkg HIP-sdk sudo xi HIP-sdk # The packages "hipBLASLt" and "rccl" are not built and installed by this package. They are not commonly used as part of HIP, so if you need them install separately ```