Merge branch 'master' of igit.ific.uv.es:alramos/latticegpu.jl

This commit is contained in:
Alberto Ramos 2021-09-24 18:21:32 +02:00
commit bee24c52a8

View file

@ -20,13 +20,7 @@ end
function field_pln(::Type{T}, lp::SpaceParm) where {T} function field_pln(::Type{T}, lp::SpaceParm) where {T}
sz = lp.bsz, lp.npls, lp.rsz, 3 sz = lp.bsz, lp.npls, lp.rsz, 3
try return CuArray{T, 4}(undef, sz)
println("Using fast version")
return CuArray{T, 4}(undef, sz)
catch
println("Using memory efficient version")
return nothing
end
end end
function randomize!(f, lp::SpaceParm, ymws::YMworkspace) function randomize!(f, lp::SpaceParm, ymws::YMworkspace)