October 26, 2024
Chicago 12, Melborne City, USA
C++

CUDA cusparseSpSM_solve function returning INF value


I’m using the cusparseSpSM_solve function to solve a problem in the form of the system A * b = c for some given triangular Matrix A and right-hand side c. I’ve uploaded an image of the very beginning on my matrix and vectors that I am using for testing.

enter image description here

Unfortunately, while this should be very simple, this returns a value of INF for the very first value in vector b.

I have confirmed that all vectors and matrices store their values correctly and are properly initialized before the function call. I know that the INF value is introduced with the cusparseSpSM_solve function call. Unfortunately, the cusparseSpSM_solve function is opaque, which is causing me difficulty in diagnosing the problem.

I don’t have this problem with smaller datasets, only large ones. And the issue is only with the very first value in the solution vector, every other value is properly calculated. Given the simple nature of the triangular matrix problem, the solution should be: b[0] = c[0] / A[0][0] = 1 / 0.000338 = 2958.579882.

Does anyone know why the cusparseSpSM_solve is having issues with the very first value, and only with large datasets?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video