Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Summary** Bring back ROCm 6.0. I have traced the crash in Blender (that caused our previous revert of ROCm 6) to a compiler bug and found a workaround to the issue. Notably, we're the first distro to introduce built-in compatibility with non-officially supported architectures. Previously, to run an unofficially supported GPU (e.g. my `gfx1032`), I must manually export the environment variable `HSA_OVERRIDE_GFX_VERSION=10.3.0` to emulate my GPU as `gfx1030`, an officially supported model. With these set of patches, which are either directly borrowed from or inspired by @cgmb's similar patches for Debian (thank you!), `HSA_OVERRIDE_GFX_VERSION` is not needed for the following GPUS: - `gfx902`, `gfx909`, `gfx90c` -> masked as `gfx900` - `gfx101*` (all RDNA1 GPUs) -> masked as `gfx1010` - `gfx103*` (all RDNA2 GPUs) -> masked as `gfx1030` This should cover the majority of uses cases of ROCm, therefore to some extent making us the distro with the best out-of-the-box ROCm experience. I've also PGO'ed AMD's fork of LLVM that's used to compile HIP code. It gives somewhere around a 13% performance improvement. **Test Plan** - Ran Fooocus (that uses `pytorch`) and generated a few images. - Rendered all sorts of Blender scenes that uses cycles (including the ones that have caused the same crash on Blender bug reports) - Ran `llama.cpp` with Gemma-2b-instruct. **Changes** - **Reapply "rocm-device-libs: update to 6.0.0"** - **Reapply "rocm-cmake: update to 6.0.0"** - **rocm-cmake: update to 6.0.0** - **rocm-device-libs: update to 6.0.0** - **hsakmt: update to 6.0.0** - **rocm-runtime: update to 6.0.0** - **rocm-info: update to 6.0.0** - **rocm-smi: update to 6.0.0** - **rocm-compilersupport: update to 6.0.0** - **rocm-clr: bring back after ROCm 6 revert** - **rocm-llvm: PGO** - **rocprim: update to 3.0.0** - **rocsparse: update to 3.0.2** - **rocfft: update to 1.0.25** - **rocsolver: update to 3.24.0** - **rocblas: update to 4.0.0** - **hipblas: update to 2.0.0** - **rocrand: update to v2.0.17 (ROCm 6.0.0)** - **hiprand: update to v2.0.17 (ROCm 6.0.0)** - **rocmlir: update to 6.0.0** - **rocm-core: update to 6.0.0** - **rocm-hipify: update to 6.0.0** - **rccl: update to 2.15.5 (ROCm 6.0.0)** - **half: adjust header file location** - **hsa-amd-aqlprofile: update to 6.0.0** - **rocprofiler: update to 6.0.0** - **roctracer: update to 6.0.0** - **composable-kernel: bring back and build for more dtypes** - **miopen: update to 3.00.0 (ROCm 6)** - **hipsparse: update to 3.0.0 (ROCm 6.0)** - **hipsolver: update to 2.0.0 (ROCm 6)** - **hipfft: update to 1.0.13 (ROCm 6.0.0)** - **hipcub: update to 3.0.0 (ROCm 6.0)** - **frugally-deep: bring back** - **functional-plus: bring back** - **pytorch: update to v2.2.0 and ROCm 6.0** - **python-torchvision: update to 0.17.0** - **python-torchvision: update to v2.2.0 and ROCm 6.0** - **python-torchtext: update to v0.17.0** - **blender: bring back ROCm/HIP support** **Checklist** - [x] Package was built and tested against unstable
- Loading branch information