Emulate GPU on CPU with CUDA.jl

Pretty much as in the title. I am almost sure I heard about such option in one of the lectures on CUDA.jl, however I can’t find a way to achieve it.

I want to run my unit tests in github actions, but having to use actual GPU complicates things and drives the prices up.

KernelAbstractions.jl allows to write code that runs on CPU and GPU.

There‘s also JLArrays.jl, which was designed specifically to test GPU code on the CPU. It is registered but lives inside the GPUArrays repo.

1 Like