diff --git a/bin/hipify-perl b/bin/hipify-perl index e2e93852..da90d172 100755 --- a/bin/hipify-perl +++ b/bin/hipify-perl @@ -5185,6 +5185,13 @@ sub simpleSubstitutions { subst("curandState_t", "hiprandState_t", "type"); subst("curandStatus", "hiprandStatus_t", "type"); subst("curandStatus_t", "hiprandStatus_t", "type"); + subst("cusolverRfFactorization_t", "hipsolverRfFactorization_t", "type"); + subst("cusolverRfHandle_t", "hipsolverRfHandle_t", "type"); + subst("cusolverRfMatrixFormat_t", "hipsolverRfMatrixFormat_t", "type"); + subst("cusolverRfNumericBoostReport_t", "hipsolverRfNumericBoostReport_t", "type"); + subst("cusolverRfResetValuesFastMode_t", "hipsolverRfResetValuesFastMode_t", "type"); + subst("cusolverRfTriangularSolve_t", "hipsolverRfTriangularSolve_t", "type"); + subst("cusolverRfUnitDiagonal_t", "hipsolverRfUnitDiagonal_t", "type"); subst("cusparseAction_t", "hipsparseAction_t", "type"); subst("cusparseColorInfo_t", "hipsparseColorInfo_t", "type"); subst("cusparseConstDnMatDescr_t", "hipsparseConstDnMatDescr_t", "type"); @@ -5535,6 +5542,22 @@ sub simpleSubstitutions { subst("CURAND_STATUS_SUCCESS", "HIPRAND_STATUS_SUCCESS", "numeric_literal"); subst("CURAND_STATUS_TYPE_ERROR", "HIPRAND_STATUS_TYPE_ERROR", "numeric_literal"); subst("CURAND_STATUS_VERSION_MISMATCH", "HIPRAND_STATUS_VERSION_MISMATCH", "numeric_literal"); + subst("CUSOLVERRF_FACTORIZATION_ALG0", "HIPSOLVERRF_FACTORIZATION_ALG0", "numeric_literal"); + subst("CUSOLVERRF_FACTORIZATION_ALG1", "HIPSOLVERRF_FACTORIZATION_ALG1", "numeric_literal"); + subst("CUSOLVERRF_FACTORIZATION_ALG2", "HIPSOLVERRF_FACTORIZATION_ALG2", "numeric_literal"); + subst("CUSOLVERRF_MATRIX_FORMAT_CSC", "HIPSOLVERRF_MATRIX_FORMAT_CSC", "numeric_literal"); + subst("CUSOLVERRF_MATRIX_FORMAT_CSR", "HIPSOLVERRF_MATRIX_FORMAT_CSR", "numeric_literal"); + subst("CUSOLVERRF_NUMERIC_BOOST_NOT_USED", "HIPSOLVERRF_NUMERIC_BOOST_NOT_USED", "numeric_literal"); + subst("CUSOLVERRF_NUMERIC_BOOST_USED", "HIPSOLVERRF_NUMERIC_BOOST_USED", "numeric_literal"); + subst("CUSOLVERRF_RESET_VALUES_FAST_MODE_OFF", "HIPSOLVERRF_RESET_VALUES_FAST_MODE_OFF", "numeric_literal"); + subst("CUSOLVERRF_RESET_VALUES_FAST_MODE_ON", "HIPSOLVERRF_RESET_VALUES_FAST_MODE_ON", "numeric_literal"); + subst("CUSOLVERRF_TRIANGULAR_SOLVE_ALG1", "HIPSOLVERRF_TRIANGULAR_SOLVE_ALG1", "numeric_literal"); + subst("CUSOLVERRF_TRIANGULAR_SOLVE_ALG2", "HIPSOLVERRF_TRIANGULAR_SOLVE_ALG2", "numeric_literal"); + subst("CUSOLVERRF_TRIANGULAR_SOLVE_ALG3", "HIPSOLVERRF_TRIANGULAR_SOLVE_ALG3", "numeric_literal"); + subst("CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_L", "HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_L", "numeric_literal"); + subst("CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_U", "HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_U", "numeric_literal"); + subst("CUSOLVERRF_UNIT_DIAGONAL_STORED_L", "HIPSOLVERRF_UNIT_DIAGONAL_STORED_L", "numeric_literal"); + subst("CUSOLVERRF_UNIT_DIAGONAL_STORED_U", "HIPSOLVERRF_UNIT_DIAGONAL_STORED_U", "numeric_literal"); subst("CUSOLVER_STATUS_IRS_INTERNAL_ERROR", "HIPSOLVER_STATUS_INTERNAL_ERROR", "numeric_literal"); subst("CUSOLVER_STATUS_IRS_NOT_SUPPORTED", "HIPSOLVER_STATUS_NOT_SUPPORTED", "numeric_literal"); subst("CUSOLVER_STATUS_IRS_PARAMS_INVALID", "HIPSOLVER_STATUS_INVALID_VALUE", "numeric_literal"); @@ -7585,6 +7608,7 @@ sub warnUnsupportedFunctions { "cusparseBsrSetStridedBatch", "cusparseAlgMode_t", "cusolverStorevMode_t", + "cusolverRfCommon", "cusolverPrecType_t", "cusolverNorm_t", "cusolverMgSyevd_bufferSize", diff --git a/docs/tables/CUSOLVER_API_supported_by_HIP.md b/docs/tables/CUSOLVER_API_supported_by_HIP.md index fa57aecd..9579341d 100644 --- a/docs/tables/CUSOLVER_API_supported_by_HIP.md +++ b/docs/tables/CUSOLVER_API_supported_by_HIP.md @@ -12,6 +12,22 @@ |`CUDALIBMG_GRID_MAPPING_ROW_MAJOR`|10.1| | | | | | | | | | |`CUSOLVERDN_GETRF`|11.0| | | | | | | | | | |`CUSOLVERDN_POTRF`|11.5| | | | | | | | | | +|`CUSOLVERRF_FACTORIZATION_ALG0`| | | | |`HIPSOLVERRF_FACTORIZATION_ALG0`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_FACTORIZATION_ALG1`| | | | |`HIPSOLVERRF_FACTORIZATION_ALG1`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_FACTORIZATION_ALG2`| | | | |`HIPSOLVERRF_FACTORIZATION_ALG2`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_MATRIX_FORMAT_CSC`| | | | |`HIPSOLVERRF_MATRIX_FORMAT_CSC`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_MATRIX_FORMAT_CSR`| | | | |`HIPSOLVERRF_MATRIX_FORMAT_CSR`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_NUMERIC_BOOST_NOT_USED`| | | | |`HIPSOLVERRF_NUMERIC_BOOST_NOT_USED`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_NUMERIC_BOOST_USED`| | | | |`HIPSOLVERRF_NUMERIC_BOOST_USED`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_RESET_VALUES_FAST_MODE_OFF`| | | | |`HIPSOLVERRF_RESET_VALUES_FAST_MODE_OFF`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_RESET_VALUES_FAST_MODE_ON`| | | | |`HIPSOLVERRF_RESET_VALUES_FAST_MODE_ON`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_TRIANGULAR_SOLVE_ALG1`| | | | |`HIPSOLVERRF_TRIANGULAR_SOLVE_ALG1`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_TRIANGULAR_SOLVE_ALG2`| | | | |`HIPSOLVERRF_TRIANGULAR_SOLVE_ALG2`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_TRIANGULAR_SOLVE_ALG3`| | | | |`HIPSOLVERRF_TRIANGULAR_SOLVE_ALG3`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_L`| | | | |`HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_L`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_U`| | | | |`HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_U`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_UNIT_DIAGONAL_STORED_L`| | | | |`HIPSOLVERRF_UNIT_DIAGONAL_STORED_L`|5.6.0| | | |6.1.0| +|`CUSOLVERRF_UNIT_DIAGONAL_STORED_U`| | | | |`HIPSOLVERRF_UNIT_DIAGONAL_STORED_U`|5.6.0| | | |6.1.0| |`CUSOLVER_ALG_0`|11.0| | | | | | | | | | |`CUSOLVER_ALG_1`|11.0| | | | | | | | | | |`CUSOLVER_ALG_2`|11.5| | | | | | | | | | @@ -104,6 +120,14 @@ |`cusolverMgHandle_t`|10.1| | | | | | | | | | |`cusolverNorm_t`|10.2| | | | | | | | | | |`cusolverPrecType_t`|11.0| | | | | | | | | | +|`cusolverRfCommon`| | | | | | | | | | | +|`cusolverRfFactorization_t`| | | | |`hipsolverRfFactorization_t`|5.6.0| | | |6.1.0| +|`cusolverRfHandle_t`| | | | |`hipsolverRfHandle_t`|5.6.0| | | |6.1.0| +|`cusolverRfMatrixFormat_t`| | | | |`hipsolverRfMatrixFormat_t`|5.6.0| | | |6.1.0| +|`cusolverRfNumericBoostReport_t`| | | | |`hipsolverRfNumericBoostReport_t`|5.6.0| | | |6.1.0| +|`cusolverRfResetValuesFastMode_t`| | | | |`hipsolverRfResetValuesFastMode_t`|5.6.0| | | |6.1.0| +|`cusolverRfTriangularSolve_t`| | | | |`hipsolverRfTriangularSolve_t`|5.6.0| | | |6.1.0| +|`cusolverRfUnitDiagonal_t`| | | | |`hipsolverRfUnitDiagonal_t`|5.6.0| | | |6.1.0| |`cusolverStatus_t`| | | | |`hipsolverStatus_t`|4.5.0| | | |6.1.0| |`cusolverStorevMode_t`|11.0| | | | | | | | | | |`cusolver_int_t`|10.1| | | |`int`| | | | | | diff --git a/docs/tables/CUSOLVER_API_supported_by_HIP_and_ROC.md b/docs/tables/CUSOLVER_API_supported_by_HIP_and_ROC.md index 3da75234..fa9d9241 100644 --- a/docs/tables/CUSOLVER_API_supported_by_HIP_and_ROC.md +++ b/docs/tables/CUSOLVER_API_supported_by_HIP_and_ROC.md @@ -12,6 +12,22 @@ |`CUDALIBMG_GRID_MAPPING_ROW_MAJOR`|10.1| | | | | | | | | | | | | | | | |`CUSOLVERDN_GETRF`|11.0| | | | | | | | | | | | | | | | |`CUSOLVERDN_POTRF`|11.5| | | | | | | | | | | | | | | | +|`CUSOLVERRF_FACTORIZATION_ALG0`| | | | |`HIPSOLVERRF_FACTORIZATION_ALG0`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_FACTORIZATION_ALG1`| | | | |`HIPSOLVERRF_FACTORIZATION_ALG1`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_FACTORIZATION_ALG2`| | | | |`HIPSOLVERRF_FACTORIZATION_ALG2`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_MATRIX_FORMAT_CSC`| | | | |`HIPSOLVERRF_MATRIX_FORMAT_CSC`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_MATRIX_FORMAT_CSR`| | | | |`HIPSOLVERRF_MATRIX_FORMAT_CSR`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_NUMERIC_BOOST_NOT_USED`| | | | |`HIPSOLVERRF_NUMERIC_BOOST_NOT_USED`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_NUMERIC_BOOST_USED`| | | | |`HIPSOLVERRF_NUMERIC_BOOST_USED`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_RESET_VALUES_FAST_MODE_OFF`| | | | |`HIPSOLVERRF_RESET_VALUES_FAST_MODE_OFF`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_RESET_VALUES_FAST_MODE_ON`| | | | |`HIPSOLVERRF_RESET_VALUES_FAST_MODE_ON`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_TRIANGULAR_SOLVE_ALG1`| | | | |`HIPSOLVERRF_TRIANGULAR_SOLVE_ALG1`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_TRIANGULAR_SOLVE_ALG2`| | | | |`HIPSOLVERRF_TRIANGULAR_SOLVE_ALG2`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_TRIANGULAR_SOLVE_ALG3`| | | | |`HIPSOLVERRF_TRIANGULAR_SOLVE_ALG3`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_L`| | | | |`HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_L`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_U`| | | | |`HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_U`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_UNIT_DIAGONAL_STORED_L`| | | | |`HIPSOLVERRF_UNIT_DIAGONAL_STORED_L`|5.6.0| | | |6.1.0| | | | | | | +|`CUSOLVERRF_UNIT_DIAGONAL_STORED_U`| | | | |`HIPSOLVERRF_UNIT_DIAGONAL_STORED_U`|5.6.0| | | |6.1.0| | | | | | | |`CUSOLVER_ALG_0`|11.0| | | | | | | | | | | | | | | | |`CUSOLVER_ALG_1`|11.0| | | | | | | | | | | | | | | | |`CUSOLVER_ALG_2`|11.5| | | | | | | | | | | | | | | | @@ -104,6 +120,14 @@ |`cusolverMgHandle_t`|10.1| | | | | | | | | | | | | | | | |`cusolverNorm_t`|10.2| | | | | | | | | | | | | | | | |`cusolverPrecType_t`|11.0| | | | | | | | | | | | | | | | +|`cusolverRfCommon`| | | | | | | | | | | | | | | | | +|`cusolverRfFactorization_t`| | | | |`hipsolverRfFactorization_t`|5.6.0| | | |6.1.0| | | | | | | +|`cusolverRfHandle_t`| | | | |`hipsolverRfHandle_t`|5.6.0| | | |6.1.0| | | | | | | +|`cusolverRfMatrixFormat_t`| | | | |`hipsolverRfMatrixFormat_t`|5.6.0| | | |6.1.0| | | | | | | +|`cusolverRfNumericBoostReport_t`| | | | |`hipsolverRfNumericBoostReport_t`|5.6.0| | | |6.1.0| | | | | | | +|`cusolverRfResetValuesFastMode_t`| | | | |`hipsolverRfResetValuesFastMode_t`|5.6.0| | | |6.1.0| | | | | | | +|`cusolverRfTriangularSolve_t`| | | | |`hipsolverRfTriangularSolve_t`|5.6.0| | | |6.1.0| | | | | | | +|`cusolverRfUnitDiagonal_t`| | | | |`hipsolverRfUnitDiagonal_t`|5.6.0| | | |6.1.0| | | | | | | |`cusolverStatus_t`| | | | |`hipsolverStatus_t`|4.5.0| | | |6.1.0|`rocblas_status`|3.0.0| | | |6.1.0| |`cusolverStorevMode_t`|11.0| | | | | | | | | | | | | | | | |`cusolver_int_t`|10.1| | | |`int`| | | | | |`rocblas_int`|3.0.0| | | |6.1.0| diff --git a/docs/tables/CUSOLVER_API_supported_by_ROC.md b/docs/tables/CUSOLVER_API_supported_by_ROC.md index 5fe6ddfe..f54a594e 100644 --- a/docs/tables/CUSOLVER_API_supported_by_ROC.md +++ b/docs/tables/CUSOLVER_API_supported_by_ROC.md @@ -12,6 +12,22 @@ |`CUDALIBMG_GRID_MAPPING_ROW_MAJOR`|10.1| | | | | | | | | | |`CUSOLVERDN_GETRF`|11.0| | | | | | | | | | |`CUSOLVERDN_POTRF`|11.5| | | | | | | | | | +|`CUSOLVERRF_FACTORIZATION_ALG0`| | | | | | | | | | | +|`CUSOLVERRF_FACTORIZATION_ALG1`| | | | | | | | | | | +|`CUSOLVERRF_FACTORIZATION_ALG2`| | | | | | | | | | | +|`CUSOLVERRF_MATRIX_FORMAT_CSC`| | | | | | | | | | | +|`CUSOLVERRF_MATRIX_FORMAT_CSR`| | | | | | | | | | | +|`CUSOLVERRF_NUMERIC_BOOST_NOT_USED`| | | | | | | | | | | +|`CUSOLVERRF_NUMERIC_BOOST_USED`| | | | | | | | | | | +|`CUSOLVERRF_RESET_VALUES_FAST_MODE_OFF`| | | | | | | | | | | +|`CUSOLVERRF_RESET_VALUES_FAST_MODE_ON`| | | | | | | | | | | +|`CUSOLVERRF_TRIANGULAR_SOLVE_ALG1`| | | | | | | | | | | +|`CUSOLVERRF_TRIANGULAR_SOLVE_ALG2`| | | | | | | | | | | +|`CUSOLVERRF_TRIANGULAR_SOLVE_ALG3`| | | | | | | | | | | +|`CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_L`| | | | | | | | | | | +|`CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_U`| | | | | | | | | | | +|`CUSOLVERRF_UNIT_DIAGONAL_STORED_L`| | | | | | | | | | | +|`CUSOLVERRF_UNIT_DIAGONAL_STORED_U`| | | | | | | | | | | |`CUSOLVER_ALG_0`|11.0| | | | | | | | | | |`CUSOLVER_ALG_1`|11.0| | | | | | | | | | |`CUSOLVER_ALG_2`|11.5| | | | | | | | | | @@ -104,6 +120,14 @@ |`cusolverMgHandle_t`|10.1| | | | | | | | | | |`cusolverNorm_t`|10.2| | | | | | | | | | |`cusolverPrecType_t`|11.0| | | | | | | | | | +|`cusolverRfCommon`| | | | | | | | | | | +|`cusolverRfFactorization_t`| | | | | | | | | | | +|`cusolverRfHandle_t`| | | | | | | | | | | +|`cusolverRfMatrixFormat_t`| | | | | | | | | | | +|`cusolverRfNumericBoostReport_t`| | | | | | | | | | | +|`cusolverRfResetValuesFastMode_t`| | | | | | | | | | | +|`cusolverRfTriangularSolve_t`| | | | | | | | | | | +|`cusolverRfUnitDiagonal_t`| | | | | | | | | | | |`cusolverStatus_t`| | | | |`rocblas_status`|3.0.0| | | |6.1.0| |`cusolverStorevMode_t`|11.0| | | | | | | | | | |`cusolver_int_t`|10.1| | | |`rocblas_int`|3.0.0| | | |6.1.0| diff --git a/src/CUDA2HIP_SOLVER_API_types.cpp b/src/CUDA2HIP_SOLVER_API_types.cpp index 57273f15..fb3046dc 100644 --- a/src/CUDA2HIP_SOLVER_API_types.cpp +++ b/src/CUDA2HIP_SOLVER_API_types.cpp @@ -131,6 +131,30 @@ const std::map CUDA_SOLVER_TYPE_NAME_MAP { {"CUDALIBMG_GRID_MAPPING_COL_MAJOR", {"HIP_LIBMG_GRID_MAPPING_COL_MAJOR", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, UNSUPPORTED}}, {"cudaLibMgGrid_t", {"hipLibMgGrid_t", "", CONV_TYPE, API_SOLVER, 1, UNSUPPORTED}}, {"cudaLibMgMatrixDesc_t", {"hipLibMgMatrixDesc_t", "", CONV_TYPE, API_SOLVER, 1, UNSUPPORTED}}, + {"cusolverRfResetValuesFastMode_t", {"hipsolverRfResetValuesFastMode_t", "", CONV_TYPE, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_RESET_VALUES_FAST_MODE_OFF", {"HIPSOLVERRF_RESET_VALUES_FAST_MODE_OFF", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_RESET_VALUES_FAST_MODE_ON", {"HIPSOLVERRF_RESET_VALUES_FAST_MODE_ON", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"cusolverRfMatrixFormat_t", {"hipsolverRfMatrixFormat_t", "", CONV_TYPE, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_MATRIX_FORMAT_CSR", {"HIPSOLVERRF_MATRIX_FORMAT_CSR", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_MATRIX_FORMAT_CSC", {"HIPSOLVERRF_MATRIX_FORMAT_CSC", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"cusolverRfUnitDiagonal_t", {"hipsolverRfUnitDiagonal_t", "", CONV_TYPE, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_UNIT_DIAGONAL_STORED_L", {"HIPSOLVERRF_UNIT_DIAGONAL_STORED_L", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_UNIT_DIAGONAL_STORED_U", {"HIPSOLVERRF_UNIT_DIAGONAL_STORED_U", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_L", {"HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_L", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_U", {"HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_U", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"cusolverRfFactorization_t", {"hipsolverRfFactorization_t", "", CONV_TYPE, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_FACTORIZATION_ALG0", {"HIPSOLVERRF_FACTORIZATION_ALG0", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_FACTORIZATION_ALG1", {"HIPSOLVERRF_FACTORIZATION_ALG1", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_FACTORIZATION_ALG2", {"HIPSOLVERRF_FACTORIZATION_ALG2", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"cusolverRfTriangularSolve_t", {"hipsolverRfTriangularSolve_t", "", CONV_TYPE, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_TRIANGULAR_SOLVE_ALG1", {"HIPSOLVERRF_TRIANGULAR_SOLVE_ALG1", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_TRIANGULAR_SOLVE_ALG2", {"HIPSOLVERRF_TRIANGULAR_SOLVE_ALG2", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_TRIANGULAR_SOLVE_ALG3", {"HIPSOLVERRF_TRIANGULAR_SOLVE_ALG3", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"cusolverRfNumericBoostReport_t", {"hipsolverRfNumericBoostReport_t", "", CONV_TYPE, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_NUMERIC_BOOST_NOT_USED", {"HIPSOLVERRF_NUMERIC_BOOST_NOT_USED", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"CUSOLVERRF_NUMERIC_BOOST_USED", {"HIPSOLVERRF_NUMERIC_BOOST_USED", "", CONV_NUMERIC_LITERAL, API_SOLVER, 1, ROC_UNSUPPORTED}}, + {"cusolverRfCommon", {"hipsolverRfCommon", "", CONV_TYPE, API_SOLVER, 1, UNSUPPORTED}}, + {"cusolverRfHandle_t", {"hipsolverRfHandle_t", "", CONV_TYPE, API_SOLVER, 1, ROC_UNSUPPORTED}}, }; const std::map CUDA_SOLVER_TYPE_NAME_VER_MAP { @@ -254,6 +278,29 @@ const std::map HIP_SOLVER_TYPE_NAME_VER_MAP { {"HIPSOLVER_EIG_RANGE_V", {HIP_5030, HIP_0, HIP_0, HIP_LATEST}}, {"hipsolverSyevjInfo_t", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}}, {"hipsolverGesvdjInfo_t", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}}, + {"hipsolverRfResetValuesFastMode_t", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_RESET_VALUES_FAST_MODE_OFF", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_RESET_VALUES_FAST_MODE_ON", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"hipsolverRfMatrixFormat_t", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_MATRIX_FORMAT_CSR", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_MATRIX_FORMAT_CSC", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"hipsolverRfUnitDiagonal_t", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_UNIT_DIAGONAL_STORED_L", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_UNIT_DIAGONAL_STORED_U", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_L", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_U", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"hipsolverRfFactorization_t", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_FACTORIZATION_ALG0", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_FACTORIZATION_ALG1", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_FACTORIZATION_ALG2", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"hipsolverRfTriangularSolve_t", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_TRIANGULAR_SOLVE_ALG1", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_TRIANGULAR_SOLVE_ALG2", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_TRIANGULAR_SOLVE_ALG3", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"hipsolverRfNumericBoostReport_t", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_NUMERIC_BOOST_NOT_USED", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"HIPSOLVERRF_NUMERIC_BOOST_USED", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, + {"hipsolverRfHandle_t", {HIP_5060, HIP_0, HIP_0, HIP_LATEST}}, {"rocblas_int", {HIP_3000, HIP_0, HIP_0, HIP_LATEST}}, {"rocblas_status", {HIP_3000, HIP_0, HIP_0, HIP_LATEST}}, diff --git a/tests/unit_tests/synthetic/libraries/cusolver2hipsolver.cu b/tests/unit_tests/synthetic/libraries/cusolver2hipsolver.cu index 2c2eb43b..bd162616 100644 --- a/tests/unit_tests/synthetic/libraries/cusolver2hipsolver.cu +++ b/tests/unit_tests/synthetic/libraries/cusolver2hipsolver.cu @@ -5,6 +5,7 @@ #include // CHECK: #include "hipsolver.h" #include "cusolverDn.h" +#include "cusolverRf.h" int main() { printf("19. cuSOLVER API to hipSOLVER API synthetic test\n"); @@ -153,6 +154,59 @@ int main() { // CHECK: hipStream_t stream_t; cudaStream_t stream_t; + // CHECK: hipsolverRfResetValuesFastMode_t RfResetValuesFastMode; + // CHECK-NEXT: hipsolverRfResetValuesFastMode_t RESET_VALUES_FAST_MODE_OFF = HIPSOLVERRF_RESET_VALUES_FAST_MODE_OFF; + // CHECK-NEXT: hipsolverRfResetValuesFastMode_t RESET_VALUES_FAST_MODE_ON = HIPSOLVERRF_RESET_VALUES_FAST_MODE_ON; + cusolverRfResetValuesFastMode_t RfResetValuesFastMode; + cusolverRfResetValuesFastMode_t RESET_VALUES_FAST_MODE_OFF = CUSOLVERRF_RESET_VALUES_FAST_MODE_OFF; + cusolverRfResetValuesFastMode_t RESET_VALUES_FAST_MODE_ON = CUSOLVERRF_RESET_VALUES_FAST_MODE_ON; + + // CHECK: hipsolverRfMatrixFormat_t RfMatrixFormat; + // CHECK-NEXT: hipsolverRfMatrixFormat_t MATRIX_FORMAT_CSR = HIPSOLVERRF_MATRIX_FORMAT_CSR; + // CHECK-NEXT: hipsolverRfMatrixFormat_t MATRIX_FORMAT_CSC = HIPSOLVERRF_MATRIX_FORMAT_CSC; + cusolverRfMatrixFormat_t RfMatrixFormat; + cusolverRfMatrixFormat_t MATRIX_FORMAT_CSR = CUSOLVERRF_MATRIX_FORMAT_CSR; + cusolverRfMatrixFormat_t MATRIX_FORMAT_CSC = CUSOLVERRF_MATRIX_FORMAT_CSC; + + // CHECK: hipsolverRfUnitDiagonal_t RfUnitDiagonal; + // CHECK-NEXT: hipsolverRfUnitDiagonal_t UNIT_DIAGONAL_STORED_L = HIPSOLVERRF_UNIT_DIAGONAL_STORED_L; + // CHECK-NEXT: hipsolverRfUnitDiagonal_t UNIT_DIAGONAL_STORED_U = HIPSOLVERRF_UNIT_DIAGONAL_STORED_U; + // CHECK-NEXT: hipsolverRfUnitDiagonal_t UNIT_DIAGONAL_ASSUMED_L = HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_L; + // CHECK-NEXT: hipsolverRfUnitDiagonal_t UNIT_DIAGONAL_ASSUMED_U = HIPSOLVERRF_UNIT_DIAGONAL_ASSUMED_U; + cusolverRfUnitDiagonal_t RfUnitDiagonal; + cusolverRfUnitDiagonal_t UNIT_DIAGONAL_STORED_L = CUSOLVERRF_UNIT_DIAGONAL_STORED_L; + cusolverRfUnitDiagonal_t UNIT_DIAGONAL_STORED_U = CUSOLVERRF_UNIT_DIAGONAL_STORED_U; + cusolverRfUnitDiagonal_t UNIT_DIAGONAL_ASSUMED_L = CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_L; + cusolverRfUnitDiagonal_t UNIT_DIAGONAL_ASSUMED_U = CUSOLVERRF_UNIT_DIAGONAL_ASSUMED_U; + + // CHECK: hipsolverRfFactorization_t RfFactorization; + // CHECK-NEXT: hipsolverRfFactorization_t FACTORIZATION_ALG0 = HIPSOLVERRF_FACTORIZATION_ALG0; + // CHECK-NEXT: hipsolverRfFactorization_t FACTORIZATION_ALG1 = HIPSOLVERRF_FACTORIZATION_ALG1; + // CHECK-NEXT: hipsolverRfFactorization_t FACTORIZATION_ALG2 = HIPSOLVERRF_FACTORIZATION_ALG2; + cusolverRfFactorization_t RfFactorization; + cusolverRfFactorization_t FACTORIZATION_ALG0 = CUSOLVERRF_FACTORIZATION_ALG0; + cusolverRfFactorization_t FACTORIZATION_ALG1 = CUSOLVERRF_FACTORIZATION_ALG1; + cusolverRfFactorization_t FACTORIZATION_ALG2 = CUSOLVERRF_FACTORIZATION_ALG2; + + // CHECK: hipsolverRfTriangularSolve_t RfTriangularSolve; + // CHECK-NEXT: hipsolverRfTriangularSolve_t TRIANGULAR_SOLVE_ALG1 = HIPSOLVERRF_TRIANGULAR_SOLVE_ALG1; + // CHECK-NEXT: hipsolverRfTriangularSolve_t TRIANGULAR_SOLVE_ALG2 = HIPSOLVERRF_TRIANGULAR_SOLVE_ALG2; + // CHECK-NEXT: hipsolverRfTriangularSolve_t TRIANGULAR_SOLVE_ALG3 = HIPSOLVERRF_TRIANGULAR_SOLVE_ALG3; + cusolverRfTriangularSolve_t RfTriangularSolve; + cusolverRfTriangularSolve_t TRIANGULAR_SOLVE_ALG1 = CUSOLVERRF_TRIANGULAR_SOLVE_ALG1; + cusolverRfTriangularSolve_t TRIANGULAR_SOLVE_ALG2 = CUSOLVERRF_TRIANGULAR_SOLVE_ALG2; + cusolverRfTriangularSolve_t TRIANGULAR_SOLVE_ALG3 = CUSOLVERRF_TRIANGULAR_SOLVE_ALG3; + + // CHECK: hipsolverRfNumericBoostReport_t RfNumericBoostReport; + // CHECK-NEXT: hipsolverRfNumericBoostReport_t NUMERIC_BOOST_NOT_USED = HIPSOLVERRF_NUMERIC_BOOST_NOT_USED; + // CHECK-NEXT: hipsolverRfNumericBoostReport_t NUMERIC_BOOST_USED = HIPSOLVERRF_NUMERIC_BOOST_USED; + cusolverRfNumericBoostReport_t RfNumericBoostReport; + cusolverRfNumericBoostReport_t NUMERIC_BOOST_NOT_USED = CUSOLVERRF_NUMERIC_BOOST_NOT_USED; + cusolverRfNumericBoostReport_t NUMERIC_BOOST_USED = CUSOLVERRF_NUMERIC_BOOST_USED; + + // CHECK: hipsolverRfHandle_t RfHandle; + cusolverRfHandle_t RfHandle; + // CUDA: cusolverStatus_t CUSOLVERAPI cusolverDnCreate(cusolverDnHandle_t *handle); // HIP: HIPSOLVER_EXPORT hipsolverStatus_t hipsolverDnCreate(hipsolverHandle_t* handle); // CHECK: status = hipsolverDnCreate(&handle);