kunzmi / managedCuda

ManagedCUDA aims an easy integration of NVidia's CUDA in .net applications written in C#, Visual Basic or any other .net language.
Other
440 stars 79 forks source link

AbsoluteSum problem #70

Open leemcsorley opened 5 years ago

leemcsorley commented 5 years ago

I think there's a problem in:

void AbsoluteSum(CudaDeviceVariable x, int incx, CudaDeviceVariable result)

I'm getting an exception thrown no matter how I use it. I think it's calling the wrong native function:

CudaBlasNativeMethods.cublasIdamax_v2 instead of the asum one?

Thanks.

leemcsorley commented 5 years ago

https://github.com/kunzmi/managedCuda/blob/e796f78f8ec72bfea1dfe1974f1aaa5d758ef020/CudaBlas/CudaBlasHandler.cs#L1584

kunzmi commented 5 years ago

Yes you're right, this is somehow wrong. I'll fix it latest with the upcoming 10.1 update!