Closed nHackel closed 3 months ago
@dpo in that case it should have been a CuArray{Float32, 1, CUDA.Mem.DeviceBuffer}
. The last parameter seems to describe the "memory"-type of the array and it might change in future version of CUDA if I understood their Docs/plans correctly
This PR adds the
S
keyword to theopRestriction
constructor. This fixes #323.Since the operator has no type information of the storage type for a default cause of
S = Vector{T}
as other operators ahve, I've opted to give him a default of nothing. IfS
is nothing the normal operator is called, which will have a storage type ofVector{Int64}
.I did not add a
opRestriction(...; kwargs...)
for the constructors which fall back on other operators, since at a quick glance I didn't see such a pattern used in this package.