This is currently no official solution in Julia that I'm aware of. However there are several people working on it and a few experimental solution are under active development
https://github.com/JuliaDiffEq/AutoOffload.jl
https://juliagpu.gitlab.io/GPUifyLoops.jl/