In my latest PR I managed to JIT compile from LLVM IR to AMD GPU: <https://github.com/mratsim/constantine/pull/453>
Now the question becomes can e do Nim -> AMD GPU (or Nvidia as AMD toolchain supports both). As we have a LLVM-IR => AMD (and LLVM-IR => Nvidia) we can use those as NLVM backends. Alternatively, all GPU languages are C-like (AMD Hip, Nvidia Cuda, OpenCL) and WebGPU is C/Rust/OCaml/Nim-like, so it should be possible to add a Nim backend towards those langs and then use runtime compilation: * hipRTC: <https://rocm.docs.amd.com/projects/HIP/en/docs-6.0.0/user_guide/hip_rtc.html> * NVRTC: <https://docs.nvidia.com/cuda/nvrtc/index.html> * OpenCL: <https://github.com/nim-lang/opencl/blob/master/src/opencl.nim#791>