Dimension dismatch issue #1956
-
I tried to parallel the computation that tries to normalize each column of an array:
However, it returns the error:
It's confusing that I am passing an array as the argument but it returns the error pointing to a vector type. Anyone has a clue to fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Vectors are arrays, that's not the source of the issue. The problem is that |
Beta Was this translation helpful? Give feedback.
Vectors are arrays, that's not the source of the issue. The problem is that
CuArray
s get converted toCuDeviceArray
s when passing them to kernels, so your::CuMatrix
type specification is wrong. It's better to be less specific, so if you use::AbstractMatrix{T}
it will apply to theCuDeviceMatrix
that your array gets converted to.