From 0410d5dcd2159ee1f79bbfe45111b133d10e978b Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Fri, 25 Oct 2019 16:04:20 +0300 Subject: [PATCH] [HIPIFY][tests] Fix ambiguous call to cusparseGetErrorString declared in cusparse.h --- .../hipify-clang/unit_tests/libraries/cuSPARSE/cuSPARSE_12.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hipify-clang/unit_tests/libraries/cuSPARSE/cuSPARSE_12.cu b/tests/hipify-clang/unit_tests/libraries/cuSPARSE/cuSPARSE_12.cu index 23254750f4..6264b20f44 100644 --- a/tests/hipify-clang/unit_tests/libraries/cuSPARSE/cuSPARSE_12.cu +++ b/tests/hipify-clang/unit_tests/libraries/cuSPARSE/cuSPARSE_12.cu @@ -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: