Skip to content

Commit

Permalink
[HIPIFY][#675][#677][SOLVER][feature] cuSOLVER support - Step 46 - …
Browse files Browse the repository at this point in the history
…Functions (DN)

+ `cusolverDn(S|D|C|Z)gesvdj(_bufferSize)?` are `SUPPORTED` by `hipSOLVER` only
+ [NOTE] `rocsolver_(s|d|c|z)gesvdj_notransv` have a harness of other `ROC` and `HIP` API calls, thus `UNSUPPORTED`
+ Updated `SOLVER` synthetic tests, the regenerated `hipify-perl`, and `SOLVER` `CUDA2HIP` documentation
  • Loading branch information
emankov committed Dec 18, 2023
1 parent 20b76b5 commit 13dccba
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -1118,8 +1118,10 @@ my %experimental_funcs = (
"cusolverDnZgetrs" => "6.1.0",
"cusolverDnZgetrf_bufferSize" => "6.1.0",
"cusolverDnZgetrf" => "6.1.0",
"cusolverDnZgesvdj_bufferSize" => "6.1.0",
"cusolverDnZgesvdjBatched_bufferSize" => "6.1.0",
"cusolverDnZgesvdjBatched" => "6.1.0",
"cusolverDnZgesvdj" => "6.1.0",
"cusolverDnZgesvd_bufferSize" => "6.1.0",
"cusolverDnZgesvd" => "6.1.0",
"cusolverDnZgeqrf_bufferSize" => "6.1.0",
Expand Down Expand Up @@ -1178,8 +1180,10 @@ my %experimental_funcs = (
"cusolverDnSgetrs" => "6.1.0",
"cusolverDnSgetrf_bufferSize" => "6.1.0",
"cusolverDnSgetrf" => "6.1.0",
"cusolverDnSgesvdj_bufferSize" => "6.1.0",
"cusolverDnSgesvdjBatched_bufferSize" => "6.1.0",
"cusolverDnSgesvdjBatched" => "6.1.0",
"cusolverDnSgesvdj" => "6.1.0",
"cusolverDnSgesvd_bufferSize" => "6.1.0",
"cusolverDnSgesvd" => "6.1.0",
"cusolverDnSgeqrf_bufferSize" => "6.1.0",
Expand Down Expand Up @@ -1231,8 +1235,10 @@ my %experimental_funcs = (
"cusolverDnDgetrs" => "6.1.0",
"cusolverDnDgetrf_bufferSize" => "6.1.0",
"cusolverDnDgetrf" => "6.1.0",
"cusolverDnDgesvdj_bufferSize" => "6.1.0",
"cusolverDnDgesvdjBatched_bufferSize" => "6.1.0",
"cusolverDnDgesvdjBatched" => "6.1.0",
"cusolverDnDgesvdj" => "6.1.0",
"cusolverDnDgesvd_bufferSize" => "6.1.0",
"cusolverDnDgesvd" => "6.1.0",
"cusolverDnDgeqrf_bufferSize" => "6.1.0",
Expand Down Expand Up @@ -1287,8 +1293,10 @@ my %experimental_funcs = (
"cusolverDnCgetrs" => "6.1.0",
"cusolverDnCgetrf_bufferSize" => "6.1.0",
"cusolverDnCgetrf" => "6.1.0",
"cusolverDnCgesvdj_bufferSize" => "6.1.0",
"cusolverDnCgesvdjBatched_bufferSize" => "6.1.0",
"cusolverDnCgesvdjBatched" => "6.1.0",
"cusolverDnCgesvdj" => "6.1.0",
"cusolverDnCgesvd_bufferSize" => "6.1.0",
"cusolverDnCgesvd" => "6.1.0",
"cusolverDnCgeqrf_bufferSize" => "6.1.0",
Expand Down Expand Up @@ -1464,8 +1472,10 @@ sub experimentalSubstitutions {
subst("cusolverDnCgeqrf_bufferSize", "hipsolverDnCgeqrf_bufferSize", "library");
subst("cusolverDnCgesvd", "hipsolverDnCgesvd", "library");
subst("cusolverDnCgesvd_bufferSize", "hipsolverDnCgesvd_bufferSize", "library");
subst("cusolverDnCgesvdj", "hipsolverDnCgesvdj", "library");
subst("cusolverDnCgesvdjBatched", "hipsolverDnCgesvdjBatched", "library");
subst("cusolverDnCgesvdjBatched_bufferSize", "hipsolverDnCgesvdjBatched_bufferSize", "library");
subst("cusolverDnCgesvdj_bufferSize", "hipsolverDnCgesvdj_bufferSize", "library");
subst("cusolverDnCgetrf", "hipsolverDnCgetrf", "library");
subst("cusolverDnCgetrf_bufferSize", "hipsolverDnCgetrf_bufferSize", "library");
subst("cusolverDnCgetrs", "hipsolverDnCgetrs", "library");
Expand Down Expand Up @@ -1520,8 +1530,10 @@ sub experimentalSubstitutions {
subst("cusolverDnDgeqrf_bufferSize", "hipsolverDnDgeqrf_bufferSize", "library");
subst("cusolverDnDgesvd", "hipsolverDnDgesvd", "library");
subst("cusolverDnDgesvd_bufferSize", "hipsolverDnDgesvd_bufferSize", "library");
subst("cusolverDnDgesvdj", "hipsolverDnDgesvdj", "library");
subst("cusolverDnDgesvdjBatched", "hipsolverDnDgesvdjBatched", "library");
subst("cusolverDnDgesvdjBatched_bufferSize", "hipsolverDnDgesvdjBatched_bufferSize", "library");
subst("cusolverDnDgesvdj_bufferSize", "hipsolverDnDgesvdj_bufferSize", "library");
subst("cusolverDnDgetrf", "hipsolverDnDgetrf", "library");
subst("cusolverDnDgetrf_bufferSize", "hipsolverDnDgetrf_bufferSize", "library");
subst("cusolverDnDgetrs", "hipsolverDnDgetrs", "library");
Expand Down Expand Up @@ -1572,8 +1584,10 @@ sub experimentalSubstitutions {
subst("cusolverDnSgeqrf_bufferSize", "hipsolverDnSgeqrf_bufferSize", "library");
subst("cusolverDnSgesvd", "hipsolverDnSgesvd", "library");
subst("cusolverDnSgesvd_bufferSize", "hipsolverDnSgesvd_bufferSize", "library");
subst("cusolverDnSgesvdj", "hipsolverDnSgesvdj", "library");
subst("cusolverDnSgesvdjBatched", "hipsolverDnSgesvdjBatched", "library");
subst("cusolverDnSgesvdjBatched_bufferSize", "hipsolverDnSgesvdjBatched_bufferSize", "library");
subst("cusolverDnSgesvdj_bufferSize", "hipsolverDnSgesvdj_bufferSize", "library");
subst("cusolverDnSgetrf", "hipsolverDnSgetrf", "library");
subst("cusolverDnSgetrf_bufferSize", "hipsolverDnSgetrf_bufferSize", "library");
subst("cusolverDnSgetrs", "hipsolverDnSgetrs", "library");
Expand Down Expand Up @@ -1632,8 +1646,10 @@ sub experimentalSubstitutions {
subst("cusolverDnZgeqrf_bufferSize", "hipsolverDnZgeqrf_bufferSize", "library");
subst("cusolverDnZgesvd", "hipsolverDnZgesvd", "library");
subst("cusolverDnZgesvd_bufferSize", "hipsolverDnZgesvd_bufferSize", "library");
subst("cusolverDnZgesvdj", "hipsolverDnZgesvdj", "library");
subst("cusolverDnZgesvdjBatched", "hipsolverDnZgesvdjBatched", "library");
subst("cusolverDnZgesvdjBatched_bufferSize", "hipsolverDnZgesvdjBatched_bufferSize", "library");
subst("cusolverDnZgesvdj_bufferSize", "hipsolverDnZgesvdj_bufferSize", "library");
subst("cusolverDnZgetrf", "hipsolverDnZgetrf", "library");
subst("cusolverDnZgetrf_bufferSize", "hipsolverDnZgetrf_bufferSize", "library");
subst("cusolverDnZgetrs", "hipsolverDnZgetrs", "library");
Expand Down
8 changes: 8 additions & 0 deletions docs/tables/CUSOLVER_API_supported_by_HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@
|`cusolverDnCgeqrf_bufferSize`| | | | |`hipsolverDnCgeqrf_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnCgesvd`| | | | |`hipsolverDnCgesvd`|5.1.0| | | |6.1.0|
|`cusolverDnCgesvd_bufferSize`| | | | |`hipsolverDnCgesvd_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnCgesvdj`|9.0| | | |`hipsolverDnCgesvdj`|5.1.0| | | |6.1.0|
|`cusolverDnCgesvdjBatched`|9.0| | | |`hipsolverDnCgesvdjBatched`|5.1.0| | | |6.1.0|
|`cusolverDnCgesvdjBatched_bufferSize`|9.0| | | |`hipsolverDnCgesvdjBatched_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnCgesvdj_bufferSize`|9.0| | | |`hipsolverDnCgesvdj_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnCgetrf`| | | | |`hipsolverDnCgetrf`|5.1.0| | | |6.1.0|
|`cusolverDnCgetrf_bufferSize`| | | | |`hipsolverDnCgetrf_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnCgetrs`| | | | |`hipsolverDnCgetrs`|5.1.0| | | |6.1.0|
Expand Down Expand Up @@ -208,8 +210,10 @@
|`cusolverDnDgeqrf_bufferSize`| | | | |`hipsolverDnDgeqrf_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnDgesvd`| | | | |`hipsolverDnDgesvd`|5.1.0| | | |6.1.0|
|`cusolverDnDgesvd_bufferSize`| | | | |`hipsolverDnDgesvd_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnDgesvdj`|9.0| | | |`hipsolverDnDgesvdj`|5.1.0| | | |6.1.0|
|`cusolverDnDgesvdjBatched`|9.0| | | |`hipsolverDnDgesvdjBatched`|5.1.0| | | |6.1.0|
|`cusolverDnDgesvdjBatched_bufferSize`|9.0| | | |`hipsolverDnDgesvdjBatched_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnDgesvdj_bufferSize`|9.0| | | |`hipsolverDnDgesvdj_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnDgetrf`| | | | |`hipsolverDnDgetrf`|5.1.0| | | |6.1.0|
|`cusolverDnDgetrf_bufferSize`| | | | |`hipsolverDnDgetrf_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnDgetrs`| | | | |`hipsolverDnDgetrs`|5.1.0| | | |6.1.0|
Expand Down Expand Up @@ -304,8 +308,10 @@
|`cusolverDnSgeqrf_bufferSize`| | | | |`hipsolverDnSgeqrf_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnSgesvd`| | | | |`hipsolverDnSgesvd`|5.1.0| | | |6.1.0|
|`cusolverDnSgesvd_bufferSize`| | | | |`hipsolverDnSgesvd_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnSgesvdj`|9.0| | | |`hipsolverDnSgesvdj`|5.1.0| | | |6.1.0|
|`cusolverDnSgesvdjBatched`|9.0| | | |`hipsolverDnSgesvdjBatched`|5.1.0| | | |6.1.0|
|`cusolverDnSgesvdjBatched_bufferSize`|9.0| | | |`hipsolverDnSgesvdjBatched_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnSgesvdj_bufferSize`|9.0| | | |`hipsolverDnSgesvdj_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnSgetrf`| | | | |`hipsolverDnSgetrf`|5.1.0| | | |6.1.0|
|`cusolverDnSgetrf_bufferSize`| | | | |`hipsolverDnSgetrf_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnSgetrs`| | | | |`hipsolverDnSgetrs`|5.1.0| | | |6.1.0|
Expand Down Expand Up @@ -392,8 +398,10 @@
|`cusolverDnZgeqrf_bufferSize`| | | | |`hipsolverDnZgeqrf_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnZgesvd`| | | | |`hipsolverDnZgesvd`|5.1.0| | | |6.1.0|
|`cusolverDnZgesvd_bufferSize`| | | | |`hipsolverDnZgesvd_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnZgesvdj`|9.0| | | |`hipsolverDnZgesvdj`|5.1.0| | | |6.1.0|
|`cusolverDnZgesvdjBatched`|9.0| | | |`hipsolverDnZgesvdjBatched`|5.1.0| | | |6.1.0|
|`cusolverDnZgesvdjBatched_bufferSize`|9.0| | | |`hipsolverDnZgesvdjBatched_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnZgesvdj_bufferSize`|9.0| | | |`hipsolverDnZgesvdj_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnZgetrf`| | | | |`hipsolverDnZgetrf`|5.1.0| | | |6.1.0|
|`cusolverDnZgetrf_bufferSize`| | | | |`hipsolverDnZgetrf_bufferSize`|5.1.0| | | |6.1.0|
|`cusolverDnZgetrs`| | | | |`hipsolverDnZgetrs`|5.1.0| | | |6.1.0|
Expand Down
8 changes: 8 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 @@ -130,8 +130,10 @@
|`cusolverDnCgeqrf_bufferSize`| | | | |`hipsolverDnCgeqrf_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCgesvd`| | | | |`hipsolverDnCgesvd`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCgesvd_bufferSize`| | | | |`hipsolverDnCgesvd_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCgesvdj`|9.0| | | |`hipsolverDnCgesvdj`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCgesvdjBatched`|9.0| | | |`hipsolverDnCgesvdjBatched`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCgesvdjBatched_bufferSize`|9.0| | | |`hipsolverDnCgesvdjBatched_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCgesvdj_bufferSize`|9.0| | | |`hipsolverDnCgesvdj_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCgetrf`| | | | |`hipsolverDnCgetrf`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCgetrf_bufferSize`| | | | |`hipsolverDnCgetrf_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnCgetrs`| | | | |`hipsolverDnCgetrs`|5.1.0| | | |6.1.0| | | | | | |
Expand Down Expand Up @@ -208,8 +210,10 @@
|`cusolverDnDgeqrf_bufferSize`| | | | |`hipsolverDnDgeqrf_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDgesvd`| | | | |`hipsolverDnDgesvd`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDgesvd_bufferSize`| | | | |`hipsolverDnDgesvd_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDgesvdj`|9.0| | | |`hipsolverDnDgesvdj`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDgesvdjBatched`|9.0| | | |`hipsolverDnDgesvdjBatched`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDgesvdjBatched_bufferSize`|9.0| | | |`hipsolverDnDgesvdjBatched_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDgesvdj_bufferSize`|9.0| | | |`hipsolverDnDgesvdj_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDgetrf`| | | | |`hipsolverDnDgetrf`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDgetrf_bufferSize`| | | | |`hipsolverDnDgetrf_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnDgetrs`| | | | |`hipsolverDnDgetrs`|5.1.0| | | |6.1.0| | | | | | |
Expand Down Expand Up @@ -304,8 +308,10 @@
|`cusolverDnSgeqrf_bufferSize`| | | | |`hipsolverDnSgeqrf_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSgesvd`| | | | |`hipsolverDnSgesvd`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSgesvd_bufferSize`| | | | |`hipsolverDnSgesvd_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSgesvdj`|9.0| | | |`hipsolverDnSgesvdj`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSgesvdjBatched`|9.0| | | |`hipsolverDnSgesvdjBatched`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSgesvdjBatched_bufferSize`|9.0| | | |`hipsolverDnSgesvdjBatched_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSgesvdj_bufferSize`|9.0| | | |`hipsolverDnSgesvdj_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSgetrf`| | | | |`hipsolverDnSgetrf`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSgetrf_bufferSize`| | | | |`hipsolverDnSgetrf_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnSgetrs`| | | | |`hipsolverDnSgetrs`|5.1.0| | | |6.1.0| | | | | | |
Expand Down Expand Up @@ -392,8 +398,10 @@
|`cusolverDnZgeqrf_bufferSize`| | | | |`hipsolverDnZgeqrf_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZgesvd`| | | | |`hipsolverDnZgesvd`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZgesvd_bufferSize`| | | | |`hipsolverDnZgesvd_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZgesvdj`|9.0| | | |`hipsolverDnZgesvdj`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZgesvdjBatched`|9.0| | | |`hipsolverDnZgesvdjBatched`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZgesvdjBatched_bufferSize`|9.0| | | |`hipsolverDnZgesvdjBatched_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZgesvdj_bufferSize`|9.0| | | |`hipsolverDnZgesvdj_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZgetrf`| | | | |`hipsolverDnZgetrf`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZgetrf_bufferSize`| | | | |`hipsolverDnZgetrf_bufferSize`|5.1.0| | | |6.1.0| | | | | | |
|`cusolverDnZgetrs`| | | | |`hipsolverDnZgetrs`|5.1.0| | | |6.1.0| | | | | | |
Expand Down
8 changes: 8 additions & 0 deletions docs/tables/CUSOLVER_API_supported_by_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@
|`cusolverDnCgeqrf_bufferSize`| | | | | | | | | | |
|`cusolverDnCgesvd`| | | | | | | | | | |
|`cusolverDnCgesvd_bufferSize`| | | | | | | | | | |
|`cusolverDnCgesvdj`|9.0| | | | | | | | | |
|`cusolverDnCgesvdjBatched`|9.0| | | | | | | | | |
|`cusolverDnCgesvdjBatched_bufferSize`|9.0| | | | | | | | | |
|`cusolverDnCgesvdj_bufferSize`|9.0| | | | | | | | | |
|`cusolverDnCgetrf`| | | | | | | | | | |
|`cusolverDnCgetrf_bufferSize`| | | | | | | | | | |
|`cusolverDnCgetrs`| | | | | | | | | | |
Expand Down Expand Up @@ -208,8 +210,10 @@
|`cusolverDnDgeqrf_bufferSize`| | | | | | | | | | |
|`cusolverDnDgesvd`| | | | | | | | | | |
|`cusolverDnDgesvd_bufferSize`| | | | | | | | | | |
|`cusolverDnDgesvdj`|9.0| | | | | | | | | |
|`cusolverDnDgesvdjBatched`|9.0| | | | | | | | | |
|`cusolverDnDgesvdjBatched_bufferSize`|9.0| | | | | | | | | |
|`cusolverDnDgesvdj_bufferSize`|9.0| | | | | | | | | |
|`cusolverDnDgetrf`| | | | | | | | | | |
|`cusolverDnDgetrf_bufferSize`| | | | | | | | | | |
|`cusolverDnDgetrs`| | | | | | | | | | |
Expand Down Expand Up @@ -304,8 +308,10 @@
|`cusolverDnSgeqrf_bufferSize`| | | | | | | | | | |
|`cusolverDnSgesvd`| | | | | | | | | | |
|`cusolverDnSgesvd_bufferSize`| | | | | | | | | | |
|`cusolverDnSgesvdj`|9.0| | | | | | | | | |
|`cusolverDnSgesvdjBatched`|9.0| | | | | | | | | |
|`cusolverDnSgesvdjBatched_bufferSize`|9.0| | | | | | | | | |
|`cusolverDnSgesvdj_bufferSize`|9.0| | | | | | | | | |
|`cusolverDnSgetrf`| | | | | | | | | | |
|`cusolverDnSgetrf_bufferSize`| | | | | | | | | | |
|`cusolverDnSgetrs`| | | | | | | | | | |
Expand Down Expand Up @@ -392,8 +398,10 @@
|`cusolverDnZgeqrf_bufferSize`| | | | | | | | | | |
|`cusolverDnZgesvd`| | | | | | | | | | |
|`cusolverDnZgesvd_bufferSize`| | | | | | | | | | |
|`cusolverDnZgesvdj`|9.0| | | | | | | | | |
|`cusolverDnZgesvdjBatched`|9.0| | | | | | | | | |
|`cusolverDnZgesvdjBatched_bufferSize`|9.0| | | | | | | | | |
|`cusolverDnZgesvdj_bufferSize`|9.0| | | | | | | | | |
|`cusolverDnZgetrf`| | | | | | | | | | |
|`cusolverDnZgetrf_bufferSize`| | | | | | | | | | |
|`cusolverDnZgetrs`| | | | | | | | | | |
Expand Down
26 changes: 26 additions & 0 deletions src/CUDA2HIP_SOLVER_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,16 @@ const std::map<llvm::StringRef, hipCounter> CUDA_SOLVER_FUNCTION_MAP {
{"cusolverDnDgesvdjBatched", {"hipsolverDnDgesvdjBatched", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnCgesvdjBatched", {"hipsolverDnCgesvdjBatched", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnZgesvdjBatched", {"hipsolverDnZgesvdjBatched", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
// NOTE: rocsolver_(s|d|c|z)gesvdj_notransv have a harness of other ROC and HIP API calls
{"cusolverDnSgesvdj_bufferSize", {"hipsolverDnSgesvdj_bufferSize", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnDgesvdj_bufferSize", {"hipsolverDnDgesvdj_bufferSize", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnCgesvdj_bufferSize", {"hipsolverDnCgesvdj_bufferSize", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnZgesvdj_bufferSize", {"hipsolverDnZgesvdj_bufferSize", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
// NOTE: rocsolver_(s|d|c|z)gesvdj_notransv have a harness of other ROC and HIP API calls
{"cusolverDnSgesvdj", {"hipsolverDnSgesvdj", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnDgesvdj", {"hipsolverDnDgesvdj", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnCgesvdj", {"hipsolverDnCgesvdj", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnZgesvdj", {"hipsolverDnZgesvdj", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
};

const std::map<llvm::StringRef, cudaAPIversions> CUDA_SOLVER_FUNCTION_VER_MAP {
Expand Down Expand Up @@ -679,6 +689,14 @@ const std::map<llvm::StringRef, cudaAPIversions> CUDA_SOLVER_FUNCTION_VER_MAP {
{"cusolverDnDgesvdjBatched", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnCgesvdjBatched", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnZgesvdjBatched", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnSgesvdj_bufferSize", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnDgesvdj_bufferSize", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnCgesvdj_bufferSize", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnZgesvdj_bufferSize", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnSgesvdj", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnDgesvdj", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnCgesvdj", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnZgesvdj", {CUDA_90, CUDA_0, CUDA_0}},
};

const std::map<llvm::StringRef, hipAPIversions> HIP_SOLVER_FUNCTION_VER_MAP {
Expand Down Expand Up @@ -900,6 +918,14 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_SOLVER_FUNCTION_VER_MAP {
{"hipsolverDnDgesvdjBatched", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnCgesvdjBatched", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnZgesvdjBatched", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnSgesvdj_bufferSize", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnDgesvdj_bufferSize", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnCgesvdj_bufferSize", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnZgesvdj_bufferSize", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnSgesvdj", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnDgesvdj", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnCgesvdj", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnZgesvdj", {HIP_5010, HIP_0, HIP_0, HIP_LATEST}},

{"rocsolver_spotrf", {HIP_3020, HIP_0, HIP_0, HIP_LATEST}},
{"rocsolver_dpotrf", {HIP_3020, HIP_0, HIP_0, HIP_LATEST}},
Expand Down
Loading

0 comments on commit 13dccba

Please sign in to comment.