- llama.cpp already has OpenCL acceleration. It has had it for some time.
- AMD already has a CUDA translator: ROCM. It should work with llama.cpp CUDA, but in practice... shrug
- Copies the CUDA/OpenCL code make (that are unavoidable for discrete GPUs) are problematic for IGPs. Right now acceleration regresses performance on IGPs.
Llama.cpp would need tailor made IGP acceleration. And I'm not even sure what API has the most appropriate zero copy mechanism. Vulkan? OneAPI? Something inside ROCM?
- AMD already has a CUDA translator: ROCM. It should work with llama.cpp CUDA, but in practice... shrug
- Copies the CUDA/OpenCL code make (that are unavoidable for discrete GPUs) are problematic for IGPs. Right now acceleration regresses performance on IGPs.
Llama.cpp would need tailor made IGP acceleration. And I'm not even sure what API has the most appropriate zero copy mechanism. Vulkan? OneAPI? Something inside ROCM?