libs/core/async_cuda/include/hpx/async_cuda/cublas_executor.hpp
inline const char* _cublasGetErrorString(cublasStatus_t error)
        {
            switch (error)
            {
            case CUBLAS_STATUS_SUCCESS:
                return "CUBLAS_STATUS_SUCCESS";
            case CUBLAS_STATUS_NOT_INITIALIZED:
                return "CUBLAS_STATUS_NOT_INITIALIZED";
            case CUBLAS_STATUS_ALLOC_FAILED:
                return "CUBLAS_STATUS_ALLOC_FAILED";
            case CUBLAS_STATUS_INVALID_VALUE:
                return "CUBLAS_STATUS_INVALID_VALUE";
            case CUBLAS_STATUS_ARCH_MISMATCH:
                return "CUBLAS_STATUS_ARCH_MISMATCH";
            case CUBLAS_STATUS_MAPPING_ERROR:
                return "CUBLAS_STATUS_MAPPING_ERROR";
            case CUBLAS_STATUS_EXECUTION_FAILED:
                return "CUBLAS_STATUS_EXECUTION_FAILED";
            case CUBLAS_STATUS_INTERNAL_ERROR:
                return "CUBLAS_STATUS_INTERNAL_ERROR";
            case CUBLAS_STATUS_NOT_SUPPORTED:
                return "CUBLAS_STATUS_NOT_SUPPORTED";
#ifdef HPX_HAVE_HIP
            case HIPBLAS_STATUS_HANDLE_IS_NULLPTR:
                return "HIPBLAS_STATUS_HANDLE_IS_NULLPTR";
#if HPX_HIP_VERSION >= 40300000
            case HIPBLAS_STATUS_INVALID_ENUM:
                return "HIPBLAS_STATUS_INVALID_ENUM";
#endif
#else
            case CUBLAS_STATUS_LICENSE_ERROR:
                return "CUBLAS_STATUS_LICENSE_ERROR";
#endif
            }
            return "<unknown>";
        }
// -------------------------------------------------------------------------
// Error handling in cublas calls
// not all of these are supported by all cuda/cublas versions
// (comment them out if they cause compiler errors)
Error handling in cublas calls
not all of these are supported by all cuda/cublas versions
(comment them out if they cause compiler errors)
Error handling in cublas calls not all of these are supported by all cuda / cublas versions ( comment them out if they cause compiler errors )
inline const char* _cublasGetErrorString(cublasStatus_t error)
        {
            switch (error)
            {
            case CUBLAS_STATUS_SUCCESS:
                return "CUBLAS_STATUS_SUCCESS";
            case CUBLAS_STATUS_NOT_INITIALIZED:
                return "CUBLAS_STATUS_NOT_INITIALIZED";
            case CUBLAS_STATUS_ALLOC_FAILED:
                return "CUBLAS_STATUS_ALLOC_FAILED";
            case CUBLAS_STATUS_INVALID_VALUE:
                return "CUBLAS_STATUS_INVALID_VALUE";
            case CUBLAS_STATUS_ARCH_MISMATCH:
                return "CUBLAS_STATUS_ARCH_MISMATCH";
            case CUBLAS_STATUS_MAPPING_ERROR:
                return "CUBLAS_STATUS_MAPPING_ERROR";
            case CUBLAS_STATUS_EXECUTION_FAILED:
                return "CUBLAS_STATUS_EXECUTION_FAILED";
            case CUBLAS_STATUS_INTERNAL_ERROR:
                return "CUBLAS_STATUS_INTERNAL_ERROR";
            case CUBLAS_STATUS_NOT_SUPPORTED:
                return "CUBLAS_STATUS_NOT_SUPPORTED";
#ifdef HPX_HAVE_HIP
            case HIPBLAS_STATUS_HANDLE_IS_NULLPTR:
                return "HIPBLAS_STATUS_HANDLE_IS_NULLPTR";
#if HPX_HIP_VERSION >= 40300000
            case HIPBLAS_STATUS_INVALID_ENUM:
                return "HIPBLAS_STATUS_INVALID_ENUM";
#endif
#else
            case CUBLAS_STATUS_LICENSE_ERROR:
                return "CUBLAS_STATUS_LICENSE_ERROR";
#endif
            }
            return "<unknown>";
        }
inline const char * _cublasGetErrorString ( cublasStatus_t error ) { switch ( error ) { case CUBLAS_STATUS_SUCCESS : return " " ; case CUBLAS_STATUS_NOT_INITIALIZED : return " " ; case CUBLAS_STATUS_ALLOC_FAILED : return " " ; case CUBLAS_STATUS_INVALID_VALUE : return " " ; case CUBLAS_STATUS_ARCH_MISMATCH : return " " ; case CUBLAS_STATUS_MAPPING_ERROR : return " " ; case CUBLAS_STATUS_EXECUTION_FAILED : return " " ; case CUBLAS_STATUS_INTERNAL_ERROR : return " " ; case CUBLAS_STATUS_NOT_SUPPORTED : return " " ; #ifdef HPX_HAVE_HIP case HIPBLAS_STATUS_HANDLE_IS_NULLPTR : return " " ; #if HPX_HIP_VERSION >= 40300000 case HIPBLAS_STATUS_INVALID_ENUM : return " " ; #endif #else case CUBLAS_STATUS_LICENSE_ERROR : return " " ; #endif } return " " ; }
Error handling in cublas calls
not all of these are supported by all cuda/cublas versions
(comment them out if they cause compiler errors)
Error handling in cublas calls not all of these are supported by all cuda / cublas versions ( comment them out if they cause compiler errors )