(or any user-defined type). If the type of each member of a struct can be passed to a parallel_for, I should also be able to pass a struct of such types. This came up because I wanted to use something like this:
mutable struct Q
h::JACC.Array{Float64,1}
k::JACC.Array{Float64,1}
l::JACC.Array{Float64,1}
w::JACC.Array{Float64,1}
end
and pass an instance of this to a parallel_for. This is fine with the "threads" backend, but CUDA complains that this struct is not isbits.
(or any user-defined type). If the type of each member of a struct can be passed to a parallel_for, I should also be able to pass a struct of such types. This came up because I wanted to use something like this:
and pass an instance of this to a parallel_for. This is fine with the "threads" backend, but CUDA complains that this struct is not
isbits
.