I tried ROCm years ago on this platform and it didn't work at all. Then I tried it on an x86 platform and it didn't work at all. Then I tried OpenCL and it was slow as hell.
My takeaway is that if you want to do reasonably portable GPGPU stuff learn WebGPU/Vulkan compute shaders. You can do also GPGPU stuff with opengles/webgl with "transform feedbacks" but its extremely limited and a total nightmare, speaking from experience.