Skip to content

Commit

Permalink
Merge pull request #1162 from emankov/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY][#675][#677][SOLVER][feature] `cuSOLVER` support - Step 16 - Functions (DN)
  • Loading branch information
emankov authored Nov 23, 2023
2 parents 6584369 + 40a46f3 commit 1d69114
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 4 deletions.
22 changes: 22 additions & 0 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -1082,13 +1082,15 @@ my %experimental_funcs = (
"cusolverEigMode_t" => "6.1.0",
"cusolverDnZZgesv_bufferSize" => "6.1.0",
"cusolverDnZZgesv" => "6.1.0",
"cusolverDnZZgels_bufferSize" => "6.1.0",
"cusolverDnZZgels" => "6.1.0",
"cusolverDnSgetrs" => "6.1.0",
"cusolverDnSgetrf_bufferSize" => "6.1.0",
"cusolverDnSgetrf" => "6.1.0",
"cusolverDnSetStream" => "6.1.0",
"cusolverDnSSgesv_bufferSize" => "6.1.0",
"cusolverDnSSgesv" => "6.1.0",
"cusolverDnSSgels_bufferSize" => "6.1.0",
"cusolverDnSSgels" => "6.1.0",
"cusolverDnHandle_t" => "6.1.0",
"cusolverDnGetStream" => "6.1.0",
Expand All @@ -1098,10 +1100,12 @@ my %experimental_funcs = (
"cusolverDnDestroy" => "6.1.0",
"cusolverDnDDgesv_bufferSize" => "6.1.0",
"cusolverDnDDgesv" => "6.1.0",
"cusolverDnDDgels_bufferSize" => "6.1.0",
"cusolverDnDDgels" => "6.1.0",
"cusolverDnCreate" => "6.1.0",
"cusolverDnCCgesv_bufferSize" => "6.1.0",
"cusolverDnCCgesv" => "6.1.0",
"cusolverDnCCgels_bufferSize" => "6.1.0",
"cusolverDnCCgels" => "6.1.0",
"CUSOLVER_STATUS_ZERO_PIVOT" => "6.1.0",
"CUSOLVER_STATUS_SUCCESS" => "6.1.0",
Expand Down Expand Up @@ -1259,10 +1263,12 @@ sub subst {

sub experimentalSubstitutions {
subst("cusolverDnCCgels", "hipsolverDnCCgels", "library");
subst("cusolverDnCCgels_bufferSize", "hipsolverDnCCgels_bufferSize", "library");
subst("cusolverDnCCgesv", "hipsolverDnCCgesv", "library");
subst("cusolverDnCCgesv_bufferSize", "hipsolverDnCCgesv_bufferSize", "library");
subst("cusolverDnCreate", "hipsolverDnCreate", "library");
subst("cusolverDnDDgels", "hipsolverDnDDgels", "library");
subst("cusolverDnDDgels_bufferSize", "hipsolverDnDDgels_bufferSize", "library");
subst("cusolverDnDDgesv", "hipsolverDnDDgesv", "library");
subst("cusolverDnDDgesv_bufferSize", "hipsolverDnDDgesv_bufferSize", "library");
subst("cusolverDnDestroy", "hipsolverDnDestroy", "library");
Expand All @@ -1271,13 +1277,15 @@ sub experimentalSubstitutions {
subst("cusolverDnDgetrs", "hipsolverDnDgetrs", "library");
subst("cusolverDnGetStream", "hipsolverGetStream", "library");
subst("cusolverDnSSgels", "hipsolverDnSSgels", "library");
subst("cusolverDnSSgels_bufferSize", "hipsolverDnSSgels_bufferSize", "library");
subst("cusolverDnSSgesv", "hipsolverDnSSgesv", "library");
subst("cusolverDnSSgesv_bufferSize", "hipsolverDnSSgesv_bufferSize", "library");
subst("cusolverDnSetStream", "hipsolverSetStream", "library");
subst("cusolverDnSgetrf", "hipsolverDnSgetrf", "library");
subst("cusolverDnSgetrf_bufferSize", "hipsolverDnSgetrf_bufferSize", "library");
subst("cusolverDnSgetrs", "hipsolverDnSgetrs", "library");
subst("cusolverDnZZgels", "hipsolverDnZZgels", "library");
subst("cusolverDnZZgels_bufferSize", "hipsolverDnZZgels_bufferSize", "library");
subst("cusolverDnZZgesv", "hipsolverDnZZgesv", "library");
subst("cusolverDnZZgesv_bufferSize", "hipsolverDnZZgesv_bufferSize", "library");
subst("cusolverDnHandle_t", "hipsolverHandle_t", "type");
Expand Down Expand Up @@ -7130,15 +7138,19 @@ sub warnUnsupportedFunctions {
"cusolverIRSRefinement_t",
"cusolverDnZYgesv_bufferSize",
"cusolverDnZYgesv",
"cusolverDnZYgels_bufferSize",
"cusolverDnZYgels",
"cusolverDnZKgesv_bufferSize",
"cusolverDnZKgesv",
"cusolverDnZKgels_bufferSize",
"cusolverDnZKgels",
"cusolverDnZEgesv_bufferSize",
"cusolverDnZEgesv",
"cusolverDnZEgels_bufferSize",
"cusolverDnZEgels",
"cusolverDnZCgesv_bufferSize",
"cusolverDnZCgesv",
"cusolverDnZCgels_bufferSize",
"cusolverDnZCgels",
"cusolverDnXgetrs",
"cusolverDnXgetrf_bufferSize",
Expand All @@ -7147,12 +7159,15 @@ sub warnUnsupportedFunctions {
"cusolverDnSetAdvOptions",
"cusolverDnSXgesv_bufferSize",
"cusolverDnSXgesv",
"cusolverDnSXgels_bufferSize",
"cusolverDnSXgels",
"cusolverDnSHgesv_bufferSize",
"cusolverDnSHgesv",
"cusolverDnSHgels_bufferSize",
"cusolverDnSHgels",
"cusolverDnSBgesv_bufferSize",
"cusolverDnSBgesv",
"cusolverDnSBgels_bufferSize",
"cusolverDnSBgels",
"cusolverDnParams_t",
"cusolverDnParams",
Expand Down Expand Up @@ -7184,26 +7199,33 @@ sub warnUnsupportedFunctions {
"cusolverDnFunction_t",
"cusolverDnDXgesv_bufferSize",
"cusolverDnDXgesv",
"cusolverDnDXgels_bufferSize",
"cusolverDnDXgels",
"cusolverDnDSgesv_bufferSize",
"cusolverDnDSgesv",
"cusolverDnDSgels_bufferSize",
"cusolverDnDSgels",
"cusolverDnDHgesv_bufferSize",
"cusolverDnDHgesv",
"cusolverDnDHgels_bufferSize",
"cusolverDnDHgels",
"cusolverDnDBgesv_bufferSize",
"cusolverDnDBgesv",
"cusolverDnDBgels_bufferSize",
"cusolverDnDBgels",
"cusolverDnCreateParams",
"cusolverDnContext",
"cusolverDnCYgesv_bufferSize",
"cusolverDnCYgesv",
"cusolverDnCYgels_bufferSize",
"cusolverDnCYgels",
"cusolverDnCKgesv_bufferSize",
"cusolverDnCKgesv",
"cusolverDnCKgels_bufferSize",
"cusolverDnCKgels",
"cusolverDnCEgesv_bufferSize",
"cusolverDnCEgesv",
"cusolverDnCEgels_bufferSize",
"cusolverDnCEgels",
"cusolverDirectMode_t",
"cusolverDeterministicMode_t",
Expand Down
18 changes: 18 additions & 0 deletions docs/tables/CUSOLVER_API_supported_by_HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,32 +109,41 @@
|**CUDA**|**A**|**D**|**C**|**R**|**HIP**|**A**|**D**|**C**|**R**|**E**|
|:--|:-:|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|:-:|
|`cusolverDnCCgels`|11.0| | | |`hipsolverDnCCgels`|5.1.0| | | |6.1.0|
|`cusolverDnCCgels_bufferSize`|11.0| | | |`hipsolverDnCCgels_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnCCgesv`|10.2| | | |`hipsolverDnCCgesv`|5.1.0| | | |6.1.0|
|`cusolverDnCCgesv_bufferSize`|10.2| | | |`hipsolverDnCCgesv_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnCEgels`|11.0| | | | | | | | | |
|`cusolverDnCEgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnCEgesv`|11.0| | | | | | | | | |
|`cusolverDnCEgesv_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnCKgels`|11.0| | | | | | | | | |
|`cusolverDnCKgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnCKgesv`|10.2| | | | | | | | | |
|`cusolverDnCKgesv_bufferSize`|10.2| | | | | | | | | |
|`cusolverDnCYgels`|11.0| | | | | | | | | |
|`cusolverDnCYgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnCYgesv`|11.0| | | | | | | | | |
|`cusolverDnCYgesv_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnCreate`| | | | |`hipsolverDnCreate`|5.1.0| | | |6.1.0|
|`cusolverDnCreateParams`|11.0| | | | | | | | | |
|`cusolverDnDBgels`|11.0| | | | | | | | | |
|`cusolverDnDBgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnDBgesv`|11.0| | | | | | | | | |
|`cusolverDnDBgesv_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnDDgels`|11.0| | | |`hipsolverDnDDgels`|5.1.0| | | |6.1.0|
|`cusolverDnDDgels_bufferSize`|11.0| | | |`hipsolverDnDDgels_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnDDgesv`|10.2| | | |`hipsolverDnDDgesv`|5.1.0| | | |6.1.0|
|`cusolverDnDDgesv_bufferSize`|10.2| | | |`hipsolverDnDDgesv_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnDHgels`|11.0| | | | | | | | | |
|`cusolverDnDHgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnDHgesv`|10.2| | | | | | | | | |
|`cusolverDnDHgesv_bufferSize`|10.2| | | | | | | | | |
|`cusolverDnDSgels`|11.0| | | | | | | | | |
|`cusolverDnDSgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnDSgesv`|10.2| | | | | | | | | |
|`cusolverDnDSgesv_bufferSize`|10.2| | | | | | | | | |
|`cusolverDnDXgels`|11.0| | | | | | | | | |
|`cusolverDnDXgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnDXgesv`|11.0| | | | | | | | | |
|`cusolverDnDXgesv_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnDestroy`| | | | |`hipsolverDnDestroy`|5.1.0| | | |6.1.0|
Expand Down Expand Up @@ -164,15 +173,19 @@
|`cusolverDnIRSParamsSetTol`|10.2| | | | | | | | | |
|`cusolverDnIRSParamsSetTolInner`|10.2| | | | | | | | | |
|`cusolverDnSBgels`|11.0| | | | | | | | | |
|`cusolverDnSBgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnSBgesv`|11.0| | | | | | | | | |
|`cusolverDnSBgesv_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnSHgels`|11.0| | | | | | | | | |
|`cusolverDnSHgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnSHgesv`|10.2| | | | | | | | | |
|`cusolverDnSHgesv_bufferSize`|10.2| | | | | | | | | |
|`cusolverDnSSgels`|11.0| | | |`hipsolverDnSSgels`|5.1.0| | | |6.1.0|
|`cusolverDnSSgels_bufferSize`|11.0| | | |`hipsolverDnSSgels_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnSSgesv`|10.2| | | |`hipsolverDnSSgesv`|5.1.0| | | |6.1.0|
|`cusolverDnSSgesv_bufferSize`|10.2| | | |`hipsolverDnSSgesv_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnSXgels`|11.0| | | | | | | | | |
|`cusolverDnSXgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnSXgesv`|11.0| | | | | | | | | |
|`cusolverDnSXgesv_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnSetAdvOptions`|11.0| | | | | | | | | |
Expand All @@ -185,18 +198,23 @@
|`cusolverDnXgetrf_bufferSize`|11.1| | | | | | | | | |
|`cusolverDnXgetrs`|11.1| | | | | | | | | |
|`cusolverDnZCgels`|11.0| | | | | | | | | |
|`cusolverDnZCgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnZCgesv`|10.2| | | | | | | | | |
|`cusolverDnZCgesv_bufferSize`|10.2| | | | | | | | | |
|`cusolverDnZEgels`|11.0| | | | | | | | | |
|`cusolverDnZEgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnZEgesv`|11.0| | | | | | | | | |
|`cusolverDnZEgesv_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnZKgels`|11.0| | | | | | | | | |
|`cusolverDnZKgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnZKgesv`|10.2| | | | | | | | | |
|`cusolverDnZKgesv_bufferSize`|10.2| | | | | | | | | |
|`cusolverDnZYgels`|11.0| | | | | | | | | |
|`cusolverDnZYgels_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnZYgesv`|11.0| | | | | | | | | |
|`cusolverDnZYgesv_bufferSize`|11.0| | | | | | | | | |
|`cusolverDnZZgels`|11.0| | | |`hipsolverDnZZgels`|5.1.0| | | |6.1.0|
|`cusolverDnZZgels_bufferSize`|11.0| | | |`hipsolverDnZZgels_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnZZgesv`|10.2| | | |`hipsolverDnZZgesv`|5.1.0| | | |6.1.0|
|`cusolverDnZZgesv_bufferSize`|10.2| | | |`hipsolverDnZZgesv_bufferSize`|5.1.0| | | |6.1.0|

Expand Down
18 changes: 18 additions & 0 deletions docs/tables/CUSOLVER_API_supported_by_HIP_and_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,32 +109,41 @@
|**CUDA**|**A**|**D**|**C**|**R**|**HIP**|**A**|**D**|**C**|**R**|**E**|**ROC**|**A**|**D**|**C**|**R**|**E**|
|:--|:-:|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|:-:|
|`cusolverDnCCgels`|11.0| | | |`hipsolverDnCCgels`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCCgels_bufferSize`|11.0| | | |`hipsolverDnCCgels_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCCgesv`|10.2| | | |`hipsolverDnCCgesv`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCCgesv_bufferSize`|10.2| | | |`hipsolverDnCCgesv_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCEgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnCEgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnCEgesv`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnCEgesv_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnCKgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnCKgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnCKgesv`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnCKgesv_bufferSize`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnCYgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnCYgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnCYgesv`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnCYgesv_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnCreate`| | | | |`hipsolverDnCreate`|5.1.0| | | |6.1.0|`rocblas_create_handle`| | | | | |
|`cusolverDnCreateParams`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDBgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDBgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDBgesv`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDBgesv_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDDgels`|11.0| | | |`hipsolverDnDDgels`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDDgels_bufferSize`|11.0| | | |`hipsolverDnDDgels_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDDgesv`|10.2| | | |`hipsolverDnDDgesv`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDDgesv_bufferSize`|10.2| | | |`hipsolverDnDDgesv_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDHgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDHgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDHgesv`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnDHgesv_bufferSize`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnDSgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDSgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDSgesv`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnDSgesv_bufferSize`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnDXgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDXgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDXgesv`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDXgesv_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnDestroy`| | | | |`hipsolverDnDestroy`|5.1.0| | | |6.1.0|`rocblas_destroy_handle`| | | | | |
Expand Down Expand Up @@ -164,15 +173,19 @@
|`cusolverDnIRSParamsSetTol`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnIRSParamsSetTolInner`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnSBgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnSBgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnSBgesv`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnSBgesv_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnSHgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnSHgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnSHgesv`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnSHgesv_bufferSize`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnSSgels`|11.0| | | |`hipsolverDnSSgels`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSSgels_bufferSize`|11.0| | | |`hipsolverDnSSgels_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSSgesv`|10.2| | | |`hipsolverDnSSgesv`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSSgesv_bufferSize`|10.2| | | |`hipsolverDnSSgesv_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSXgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnSXgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnSXgesv`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnSXgesv_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnSetAdvOptions`|11.0| | | | | | | | | | | | | | | |
Expand All @@ -185,18 +198,23 @@
|`cusolverDnXgetrf_bufferSize`|11.1| | | | | | | | | | | | | | | |
|`cusolverDnXgetrs`|11.1| | | | | | | | | | | | | | | |
|`cusolverDnZCgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZCgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZCgesv`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnZCgesv_bufferSize`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnZEgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZEgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZEgesv`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZEgesv_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZKgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZKgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZKgesv`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnZKgesv_bufferSize`|10.2| | | | | | | | | | | | | | | |
|`cusolverDnZYgels`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZYgels_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZYgesv`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZYgesv_bufferSize`|11.0| | | | | | | | | | | | | | | |
|`cusolverDnZZgels`|11.0| | | |`hipsolverDnZZgels`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZZgels_bufferSize`|11.0| | | |`hipsolverDnZZgels_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZZgesv`|10.2| | | |`hipsolverDnZZgesv`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZZgesv_bufferSize`|10.2| | | |`hipsolverDnZZgesv_bufferSize`|5.1.0| | | |6.1.0| | | | | | |

Expand Down
Loading

0 comments on commit 1d69114

Please sign in to comment.