ROCm/hipBLAS

hipblasXgelsBatched() failed with error

jinz2014 opened this issue · 1 comments

Running the HIP program produces some error. I migrated the program from CUDA to HIP. Thanks.

To reproduce:

go to https://github.com/zjin-lcf/HeCBench/tree/master/src/gels-hip
type 'make'
type './main 1'

ERROR: hipblasXgelsBatched() failed with error HIPBLAS_STATUS_INVALID_VALUE..

Hi @jinz2014,

I made a few changes to your test, and it seems to be working now. NULL was being passed into hipblasSgelsBatched() for the deviceInfo param, causing the HIPBLAS_STATUS_INVALID_VALUE result. In the future, you can read the info param for some of these solver functions to get a hint at invalid return values.

You can see my changes at daineAMD/HeCBench@f64819a.

Also, you can browse the hipblasSgelsBatched() docs and the deviceInfo param in the hipBLAS docs.

Let me know if you have any further questions or issues. Thanks,
Daine