From Fedora Project Wiki

Heterogeneous Computing Special Interest Group

Mission

To encourage the packaging and accessibility of heterogeneous computing projects in Fedora and EPEL. This includes machine learning, OpenCL, and scientific computing.

Communication

While separate from the AI/ML SIG, we do share communication channels for now. If you're interested, please join us on:

Members/Packagers/Reviewers

Please add your name above if you want to help.

Tasks

  • Package and make HC related projects more accessible to users (such as OpenCL, AMD's ROCm HIP, Intel oneAPI, SYCL, Vulkan, OpenGL, etc.)
  • Document installation, packages, and general use cases
  • Translation of wiki pages and documentation (if applicable)

AMD's ROCm (OpenCL/HIP)

Package status

Below is a list of ROCm packages with their status. If something isn't packaged in Fedora or EPEL, feel free to take it!

For reference, pytorch still requires: rocblas, miopen, rocfft, hipfft, hipsparse, rccl, rocprim, hipcub, rocthrust

Name Fedora Package EPEL? Upstream package name Upstream URL Notes
roct-thunk-interface Package-x-generic-16.pnghsakmt Yes hsakmt-roct https://github.com/radeonopencompute/roct-thunk-interface
rocr-runtime Package-x-generic-16.pngrocm-runtime Yes hsa-rocr https://github.com/radeonopencompute/rocr-runtime
rocminfo Package-x-generic-16.pngrocminfo Yes rocminfo https://github.com/radeonopencompute/rocminfo
rocm-compilersupport Package-x-generic-16.pngrocm-compilersupport Yes comgr https://github.com/radeonopencompute/rocm-compilersupport
rocm-device-libs Package-x-generic-16.pngrocm-device-libs Yes rocm-device-libs https://github.com/radeonopencompute/rocm-device-libs
opencl-icd-loader rocm-ocl-icd https://github.com/KhronosGroup/OpenCL-ICD-Loader Fedora already has Package-x-generic-16.pngocl-icd, but the khronos version is required for GL-CL interop support
rocm-opencl-runtime Package-x-generic-16.pngrocm-opencl Yes rocm-opencl https://github.com/radeonopencompute/rocm-opencl-runtime rocm-opencl is now a sub-package of Package-x-generic-16.pngrocclr in Fedora 38+
rocm_smi_lib Package-x-generic-16.pngrocm-smi rocm-smi-lib https://github.com/radeonopencompute/rocm_smi_lib
hipamd Package-x-generic-16.pngrocm-hip hip-runtime-amd https://github.com/rocm-developer-tools/hipamd rocm-hip is a subpackage of Package-x-generic-16.pngrocclr
hipcc Package-x-generic-16.pnghipcc hip-[devel,docs] https://github.com/rocm-developer-tools/HIP hipcc is a subpackage of Package-x-generic-16.pngrocclr
hip-samples hip-samples requires better cmake infra from upstream
rocm-cmake Package-x-generic-16.pngrocm-cmake rocm-cmake https://github.com/radeonopencompute/rocm-cmake Needed by most of the roc* and hip* packages below
hipblas Package-x-generic-16.pnghipblas hipblas https://github.com/rocmsoftwareplatform/hipblas
hipsparse Package-x-generic-16.pnghipsparse hipsparse https://github.com/rocmsoftwareplatform/hipsparse
rocalution Package-x-generic-16.pngrocalution rocalution https://github.com/rocmsoftwareplatform/rocalution
rocblas Package-x-generic-16.pngrocblas rocblas https://github.com/rocmsoftwareplatform/rocblas
rocfft In Review rocfft https://github.com/rocmsoftwareplatform/rocfft Review Link
hipfft ? https://github.com/rocmsoftwareplatform/hipfft Requires rocfft
rocmvalidationsuite rocm-validation-suite https://github.com/rocm-developer-tools/rocmvalidationsuite requires rocblas, rocm_smi_lib
rocprim Package-x-generic-16.pngrocprim rocprim https://github.com/rocmsoftwareplatform/rocprim
rocrand Package-x-generic-16.pngrocrand rocrand https://github.com/rocmsoftwareplatform/rocrand
hiprand Package-x-generic-16.pnghiprand rocrand https://github.com/rocmsoftwareplatform/rocrand Used to be a subpackage of Package-x-generic-16.pngrocrand
rocsolver rocsolver https://github.com/rocmsoftwareplatform/rocsolver
rocsparse Package-x-generic-16.pngrocsparse rocsparse https://github.com/rocmsoftwareplatform/rocsparse
rocthrust Package-x-generic-16.pngrocthrust rocthrust https://github.com/rocmsoftwareplatform/rocthrust
hipcub Package-x-generic-16.pnghipcub hipcub https://github.com/rocmsoftwareplatform/hipcub
rccl ? https://github.com/rocmsoftwareplatform/rccl requires hipify
miopen ? https://github.com/rocmsoftwareplatform/miopen requires rocblas
tensile Package-x-generic-16.pngpython-tensile ? https://github.com/rocmsoftwareplatform/tensile
rocdbgapi In Review rocm-dbgapi https://github.com/rocm-developer-tools/rocdbgapi Review Link
rocgdb In Review rocm-gdb https://github.com/rocm-developer-tools/rocgdb A fork of Package-x-generic-16.pnggdb with ROCm related addons, Requires rocdbgapi Review Link
rocprofiler rocprofiler https://github.com/rocm-developer-tools/rocprofiler BLOCKED - requires hsa-amd-aqlprofile, a closed source package
roctracer Package-x-generic-16.pngroctracer roctracer https://github.com/rocm-developer-tools/roctracer
composable_kernel composable_kernel https://github.com/ROCmSoftwarePlatform/composable_kernel trix is working on this
hipify Package-x-generic-16.pnghipify hipify https://github.com/ROCm-Developer-Tools/HIPIFY

HW Support

Warning.png
Upstream only officially supports x86_64, but they are open to pcc64le and arm64 patches

Some ROCm packages in Fedora are built for all 64bit little endian systems (x86_64, arm64, ppc64le), but official support is for x86_64.

HW support is highly dependent on LLVM version included in Fedora, so if you have newer HW, you might need to wait for newer LLVM versions to be introduced to Fedora (usually in the spring and the autumn).

Warning.png
Note that your millage may vary, as pre vega HW on ROCm is experimental, missing functionality, and not guaranteed to work on all HW

Installation

Setup

To enable access to GPU resources for non-root users, the users must be added to the video (graphics) and render (compute) group. The AMD ROCm Installation Guide (6.0.0) recommends the video and render group for all ROCm-supported operating systems.

To add the current user to the render group:

   sudo usermod -a -G render,video $LOGNAME

To check for ROCm support of the running HW, you can install and run rocminfo:

   sudo dnf install rocminfo
   rocminfo

OpenCL

ROCm OpenCL can be installed with:

   sudo dnf install rocm-opencl

As well, rocm-clinfo or clinfo can be installed to verify it is working, e.g.:

   sudo dnf install rocm-clinfo
   rocm-clinfo

HIP

HIP is included in Fedora 39 and is pending for Fedora 38. For Fedora 38, you will need to add --enable-repo=updates-testing to dnf if it's not available yet.

Install with:

   sudo dnf install rocm-hip

For use with Blender, you might need to also install "rocm-hip-devel" if it does not detect HIP.

Intel

TODO: incomplete, take me!

Packages

Packages that use HC

Blender

Build with:

   rpmbuild --with rocm