Hello,
I’m computing LU factorization on the GPU using the cusolverDnXgetrf functions. According to the documentation of cuSOLVER, cusolverDnXgetrf performs an LU factorization without pivoting if I pass NULL in place of ipiv_d. This works well in my C++ test code. Now if I use the Fortran interface of cuSOLVER provided in NVIDIA HPC SDK, how do I pass NULL to cuSOLVER? The compiler complains about C_NULL_PTR in the iso_c_binding module.
integer, device, allocatable :: ipiv_d(:)
...
! ipiv_d is never allocated
ierr = cusolverDnDgetrf(cusolver_h,ndim,ndim,mat_d,ndim,work_d,ipiv_d,info_d)
The code above seems to work, but I’m not sure if it’s the correct solution. Can anybody clarify? Thanks in advance!
Victor