[HIPIFY][tests] Fix ambiguous call to cusparseGetErrorString declared in cusparse.h

This commit is contained in:
Evgeny Mankov
2019-10-25 16:04:20 +03:00
parent dabd939048
commit 0410d5dcd2
@@ -26,8 +26,8 @@ static void CudaCheckCore(cudaError_t code, const char *file, int line) {
// CHECK: #define CudaCheckAfterCall() { CudaCheckCore((hipGetLastError()), __FILE__, __LINE__); }
#define CudaCheckAfterCall() { CudaCheckCore((cudaGetLastError()), __FILE__, __LINE__); }
// CHECK: static const char * cusparseGetErrorString(hipsparseStatus_t error) {
static const char * cusparseGetErrorString(cusparseStatus_t error) {
// CHECK: static const char * GetErrorString(hipsparseStatus_t error) {
static const char * GetErrorString(cusparseStatus_t error) {
switch (error) {
// CHECK: case HIPSPARSE_STATUS_SUCCESS:
case CUSPARSE_STATUS_SUCCESS: