Skip to content

Commit

Permalink
[HIPIFY][ROCm#675][ROCm#677][SOLVER][feature] cuSOLVER support - Step…
Browse files Browse the repository at this point in the history
… 5 - Data types (common)

+ `cusolverStatus_t` and `cusolverEigType_t` support
+ Updated the synthetic tests and the regenerated hipify-perl
+ [ToDo] `SOLVER` `CUDA2HIP` documentation generation
  • Loading branch information
emankov committed Nov 11, 2023
1 parent 9e01a6a commit 5f9b2f9
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 34 deletions.
21 changes: 21 additions & 0 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,11 @@ sub experimentalSubstitutions {
subst("cudaExternalSemaphoreWaitNodeParams", "hipExternalSemaphoreWaitNodeParams", "type");
subst("cudaExternalSemaphoreWaitNodeParamsV2", "hipExternalSemaphoreWaitNodeParams", "type");
subst("cusolverDnHandle_t", "hipsolverHandle_t", "type");
subst("cusolverEigType_t", "hipsolverEigType_t", "type");
subst("cusolverStatus_t", "hipsolverStatus_t", "type");
subst("CUSOLVER_EIG_TYPE_1", "HIPSOLVER_EIG_TYPE_1", "numeric_literal");
subst("CUSOLVER_EIG_TYPE_2", "HIPSOLVER_EIG_TYPE_2", "numeric_literal");
subst("CUSOLVER_EIG_TYPE_3", "HIPSOLVER_EIG_TYPE_3", "numeric_literal");
subst("CUSOLVER_STATUS_ALLOC_FAILED", "HIPSOLVER_STATUS_ALLOC_FAILED", "numeric_literal");
subst("CUSOLVER_STATUS_ARCH_MISMATCH", "HIPSOLVER_STATUS_ARCH_MISMATCH", "numeric_literal");
subst("CUSOLVER_STATUS_EXECUTION_FAILED", "HIPSOLVER_STATUS_EXECUTION_FAILED", "numeric_literal");
Expand Down Expand Up @@ -2154,6 +2158,7 @@ sub rocSubstitutions {
subst("cudnnStatus_t", "miopenStatus_t", "type");
subst("cudnnTensorDescriptor_t", "miopenTensorDescriptor_t", "type");
subst("cusolverDnHandle_t", "rocblas_handle", "type");
subst("cusolverEigType_t", "rocblas_eform", "type");
subst("cusolverStatus_t", "rocblas_status", "type");
subst("cusparseAction_t", "rocsparse_action", "type");
subst("cusparseColorInfo", "_rocsparse_color_info", "type");
Expand Down Expand Up @@ -2312,6 +2317,9 @@ sub rocSubstitutions {
subst("CUDNN_STATUS_NOT_SUPPORTED", "miopenStatusUnsupportedOp", "numeric_literal");
subst("CUDNN_STATUS_SUCCESS", "miopenStatusSuccess", "numeric_literal");
subst("CUDNN_UNIDIRECTIONAL", "miopenRNNunidirection", "numeric_literal");
subst("CUSOLVER_EIG_TYPE_1", "rocblas_eform_ax", "numeric_literal");
subst("CUSOLVER_EIG_TYPE_2", "rocblas_eform_abx", "numeric_literal");
subst("CUSOLVER_EIG_TYPE_3", "rocblas_eform_bax", "numeric_literal");
subst("CUSOLVER_STATUS_ALLOC_FAILED", "rocblas_status_memory_error", "numeric_literal");
subst("CUSOLVER_STATUS_ARCH_MISMATCH", "rocblas_status_arch_mismatch", "numeric_literal");
subst("CUSOLVER_STATUS_EXECUTION_FAILED", "rocblas_status_not_implemented", "numeric_literal");
Expand Down Expand Up @@ -8634,6 +8642,19 @@ sub warnUnsupportedFunctions {
"CUSPARSE_ALG1",
"CUSPARSE_ALG0",
"CUSOLVER_STATUS_MATRIX_TYPE_NOT_SUPPORTED",
"CUSOLVER_STATUS_IRS_PARAMS_NOT_INITIALIZED",
"CUSOLVER_STATUS_IRS_PARAMS_INVALID_REFINE",
"CUSOLVER_STATUS_IRS_PARAMS_INVALID_PREC",
"CUSOLVER_STATUS_IRS_PARAMS_INVALID_MAXITER",
"CUSOLVER_STATUS_IRS_PARAMS_INVALID",
"CUSOLVER_STATUS_IRS_OUT_OF_RANGE",
"CUSOLVER_STATUS_IRS_NRHS_NOT_SUPPORTED_FOR_REFINE_GMRES",
"CUSOLVER_STATUS_IRS_NOT_SUPPORTED",
"CUSOLVER_STATUS_IRS_MATRIX_SINGULAR",
"CUSOLVER_STATUS_IRS_INTERNAL_ERROR",
"CUSOLVER_STATUS_IRS_INFOS_NOT_INITIALIZED",
"CUSOLVER_STATUS_IRS_INFOS_NOT_DESTROYED",
"CUSOLVER_STATUS_INVALID_WORKSPACE",
"CUSOLVER_STATUS_INVALID_LICENSE",
"CURAND_REJECTION",
"CURAND_POISSON",
Expand Down
Loading

0 comments on commit 5f9b2f9

Please sign in to comment.