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
CuArrays get converted toCuDeviceArrays when passing them to kernels, so your::CuMatrixtype specification is wrong. It's better to be less specific, so if you use::AbstractMatrix{T}it will apply to theCuDeviceMatrixthat your array gets converted to.