Pointer to CuArray as a parameter for DifferentialEquations right-hand-side function

You might want to look at DiffEqGPU.jl where this is done by KernelAbstractions.jl