How to copy slices in EnsembleGPUArray?
code:
function f_du(du,u,p,t)
@inbounds begin
copyto!(du,p)
end
nothing
end
tspan = (0.0f0,1.0f0)
u0 = [1.0,2.0,3.0]
p0=[-1.,-2.,-3.]
prob = ODEProblem(f_du,u0,tspan,p0)
prob_func = (prob,i,repeat) -> remake(prob,p=p0)
monteprob = EnsembleProblem(prob, prob_func = prob_func, safetycopy=false)
sol = solve(monteprob,Tsit5(),EnsembleGPUArray(),trajectories=10,saveat=LinRange(0,1,101))
as a result i get a GPUCompiler error
result:
Error displaying Atom.EvalError{GPUCompiler.InternalCompilerError}: UndefVarError: versioninfo not defined
showerror(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::GPUCompiler.InternalCompilerError) at error.jl:56
(::Juno.var"#17#18"{GPUCompiler.InternalCompilerError})(::Base.GenericIOBuffer{Array{UInt8,1}}) at utils.jl:28
sprint(::Function; context::Nothing, sizehint::Int64) at io.jl:105
sprint at io.jl:101 [inlined]
errmsg at utils.jl:28 [inlined]
render(::Juno.Editor, ::Atom.EvalError{GPUCompiler.InternalCompilerError}) at errors.jl:87
I am new in using GPU, and have no idea how to proceed.