Native ROCm Compute Arrives on PS5 Linux
A new repository brings native ROCm compute, PyTorch, and sparse libraries to the PlayStation 5 GPU under Linux.
Native compute on the PlayStation 5 under Linux no longer needs the override hack. Developer LEE-CHENYU published the LEE-CHENYU/ps5-rocm repository, which documents how to run native ROCm and HIP compute on the console’s GPU without fake HSA_OVERRIDE_GFX_VERSION flags. On this console, those flags hung the GPU on a one-line test, the reset failed, and the whole machine needed a power cycle.
The project adapts the AMD BC-250 community’s recipe to Ubuntu 26.04 on the console and targets its gfx1013 (Cyan Skillfish) ISA. A patched amdgpu kernel module, boot parameters and rebuilt runtimes give the GPU a 12 GiB GTT pool, and rocminfo lists 36 compute units. You build the patched driver and rocBLAS yourself, and the rocBLAS build takes about 19 minutes on the console.
Status and Stack
The repository logs builds and checks for these components:
- Runtimes: ROCm 7.1 from the Ubuntu archive, and rocBLAS 7.1.0 built for
gfx1013withBUILD_OFFLOAD_COMPRESS=OFF. - Frameworks: PyTorch 2.9.1 passes 30 of 30 operation checks against the CPU, and torchvision, transformers, diffusers and accelerate run on the chip.
- Advanced Math: rocSPARSE 7.1.0 and rocSOLVER 7.1.0 handle sparse matrix operations and linear algebra. Cholesky and lstsq still need MAGMA.
How to Try It
- Install Ubuntu 26.04 on a PlayStation 5 running Linux.
- Clone the repository and apply the patched
amdgpudriver following the build notes indocs/building-amdgpu.md. - Run the installation scripts in sequence and build rocBLAS with
BUILD_OFFLOAD_COMPRESS=OFF. With compression on, GEMM works, but dot and gemv segfault.
Memory-churn and 20-minute soak tests found no corrupted results and no kernel faults. The repository treats this as evidence that still needs more testing.