cusparseCsr2cscEx2_buffersize returns 0 buffer

cusparseCsr2cscEx2_buffersize returns 0 buffer size which leads to error at istat=cusparseCsr2cscEx2(…) as “istat=3”
All other input parameters are correct as far as I know. I would appreciate any comment.
for more information on this question please refer to

Just for the record, if anyone has the same issue, other than checking for the correctness of the input parameters, you may compile your code with a higher version of nvhpc. Mine seems to be solved doing so.