Skip to content

Commit

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

+ `cusolverDn(S|D|C|Z)gesvdaStridedBatched(_bufferSize)?` are `SUPPORTED` by `hipSOLVER` only
+ [NOTE] `rocsolver_(s|d|c|z)gesvdx_strided_batched` 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 19, 2023
1 parent 4779792 commit 3050a20
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 4 deletions.
16 changes: 16 additions & 0 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,8 @@ my %experimental_funcs = (
"cusolverDnZgesvdjBatched_bufferSize" => "6.1.0",
"cusolverDnZgesvdjBatched" => "6.1.0",
"cusolverDnZgesvdj" => "6.1.0",
"cusolverDnZgesvdaStridedBatched_bufferSize" => "6.1.0",
"cusolverDnZgesvdaStridedBatched" => "6.1.0",
"cusolverDnZgesvd_bufferSize" => "6.1.0",
"cusolverDnZgesvd" => "6.1.0",
"cusolverDnZgeqrf_bufferSize" => "6.1.0",
Expand Down Expand Up @@ -1184,6 +1186,8 @@ my %experimental_funcs = (
"cusolverDnSgesvdjBatched_bufferSize" => "6.1.0",
"cusolverDnSgesvdjBatched" => "6.1.0",
"cusolverDnSgesvdj" => "6.1.0",
"cusolverDnSgesvdaStridedBatched_bufferSize" => "6.1.0",
"cusolverDnSgesvdaStridedBatched" => "6.1.0",
"cusolverDnSgesvd_bufferSize" => "6.1.0",
"cusolverDnSgesvd" => "6.1.0",
"cusolverDnSgeqrf_bufferSize" => "6.1.0",
Expand Down Expand Up @@ -1239,6 +1243,8 @@ my %experimental_funcs = (
"cusolverDnDgesvdjBatched_bufferSize" => "6.1.0",
"cusolverDnDgesvdjBatched" => "6.1.0",
"cusolverDnDgesvdj" => "6.1.0",
"cusolverDnDgesvdaStridedBatched_bufferSize" => "6.1.0",
"cusolverDnDgesvdaStridedBatched" => "6.1.0",
"cusolverDnDgesvd_bufferSize" => "6.1.0",
"cusolverDnDgesvd" => "6.1.0",
"cusolverDnDgeqrf_bufferSize" => "6.1.0",
Expand Down Expand Up @@ -1297,6 +1303,8 @@ my %experimental_funcs = (
"cusolverDnCgesvdjBatched_bufferSize" => "6.1.0",
"cusolverDnCgesvdjBatched" => "6.1.0",
"cusolverDnCgesvdj" => "6.1.0",
"cusolverDnCgesvdaStridedBatched_bufferSize" => "6.1.0",
"cusolverDnCgesvdaStridedBatched" => "6.1.0",
"cusolverDnCgesvd_bufferSize" => "6.1.0",
"cusolverDnCgesvd" => "6.1.0",
"cusolverDnCgeqrf_bufferSize" => "6.1.0",
Expand Down Expand Up @@ -1472,6 +1480,8 @@ sub experimentalSubstitutions {
subst("cusolverDnCgeqrf_bufferSize", "hipsolverDnCgeqrf_bufferSize", "library");
subst("cusolverDnCgesvd", "hipsolverDnCgesvd", "library");
subst("cusolverDnCgesvd_bufferSize", "hipsolverDnCgesvd_bufferSize", "library");
subst("cusolverDnCgesvdaStridedBatched", "hipsolverDnCgesvdaStridedBatched", "library");
subst("cusolverDnCgesvdaStridedBatched_bufferSize", "hipsolverDnCgesvdaStridedBatched_bufferSize", "library");
subst("cusolverDnCgesvdj", "hipsolverDnCgesvdj", "library");
subst("cusolverDnCgesvdjBatched", "hipsolverDnCgesvdjBatched", "library");
subst("cusolverDnCgesvdjBatched_bufferSize", "hipsolverDnCgesvdjBatched_bufferSize", "library");
Expand Down Expand Up @@ -1530,6 +1540,8 @@ sub experimentalSubstitutions {
subst("cusolverDnDgeqrf_bufferSize", "hipsolverDnDgeqrf_bufferSize", "library");
subst("cusolverDnDgesvd", "hipsolverDnDgesvd", "library");
subst("cusolverDnDgesvd_bufferSize", "hipsolverDnDgesvd_bufferSize", "library");
subst("cusolverDnDgesvdaStridedBatched", "hipsolverDnDgesvdaStridedBatched", "library");
subst("cusolverDnDgesvdaStridedBatched_bufferSize", "hipsolverDnDgesvdaStridedBatched_bufferSize", "library");
subst("cusolverDnDgesvdj", "hipsolverDnDgesvdj", "library");
subst("cusolverDnDgesvdjBatched", "hipsolverDnDgesvdjBatched", "library");
subst("cusolverDnDgesvdjBatched_bufferSize", "hipsolverDnDgesvdjBatched_bufferSize", "library");
Expand Down Expand Up @@ -1584,6 +1596,8 @@ sub experimentalSubstitutions {
subst("cusolverDnSgeqrf_bufferSize", "hipsolverDnSgeqrf_bufferSize", "library");
subst("cusolverDnSgesvd", "hipsolverDnSgesvd", "library");
subst("cusolverDnSgesvd_bufferSize", "hipsolverDnSgesvd_bufferSize", "library");
subst("cusolverDnSgesvdaStridedBatched", "hipsolverDnSgesvdaStridedBatched", "library");
subst("cusolverDnSgesvdaStridedBatched_bufferSize", "hipsolverDnSgesvdaStridedBatched_bufferSize", "library");
subst("cusolverDnSgesvdj", "hipsolverDnSgesvdj", "library");
subst("cusolverDnSgesvdjBatched", "hipsolverDnSgesvdjBatched", "library");
subst("cusolverDnSgesvdjBatched_bufferSize", "hipsolverDnSgesvdjBatched_bufferSize", "library");
Expand Down Expand Up @@ -1646,6 +1660,8 @@ sub experimentalSubstitutions {
subst("cusolverDnZgeqrf_bufferSize", "hipsolverDnZgeqrf_bufferSize", "library");
subst("cusolverDnZgesvd", "hipsolverDnZgesvd", "library");
subst("cusolverDnZgesvd_bufferSize", "hipsolverDnZgesvd_bufferSize", "library");
subst("cusolverDnZgesvdaStridedBatched", "hipsolverDnZgesvdaStridedBatched", "library");
subst("cusolverDnZgesvdaStridedBatched_bufferSize", "hipsolverDnZgesvdaStridedBatched_bufferSize", "library");
subst("cusolverDnZgesvdj", "hipsolverDnZgesvdj", "library");
subst("cusolverDnZgesvdjBatched", "hipsolverDnZgesvdjBatched", "library");
subst("cusolverDnZgesvdjBatched_bufferSize", "hipsolverDnZgesvdjBatched_bufferSize", "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,6 +130,8 @@
|`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|
|`cusolverDnCgesvdaStridedBatched`|10.1| | | |`hipsolverDnCgesvdaStridedBatched`|5.4.0| | | |6.1.0|
|`cusolverDnCgesvdaStridedBatched_bufferSize`|10.1| | | |`hipsolverDnCgesvdaStridedBatched_bufferSize`|5.4.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|
Expand Down Expand Up @@ -210,6 +212,8 @@
|`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|
|`cusolverDnDgesvdaStridedBatched`|10.1| | | |`hipsolverDnDgesvdaStridedBatched`|5.4.0| | | |6.1.0|
|`cusolverDnDgesvdaStridedBatched_bufferSize`|10.1| | | |`hipsolverDnDgesvdaStridedBatched_bufferSize`|5.4.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|
Expand Down Expand Up @@ -308,6 +312,8 @@
|`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|
|`cusolverDnSgesvdaStridedBatched`|10.1| | | |`hipsolverDnSgesvdaStridedBatched`|5.4.0| | | |6.1.0|
|`cusolverDnSgesvdaStridedBatched_bufferSize`|10.1| | | |`hipsolverDnSgesvdaStridedBatched_bufferSize`|5.4.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|
Expand Down Expand Up @@ -398,6 +404,8 @@
|`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|
|`cusolverDnZgesvdaStridedBatched`|10.1| | | |`hipsolverDnZgesvdaStridedBatched`|5.4.0| | | |6.1.0|
|`cusolverDnZgesvdaStridedBatched_bufferSize`|10.1| | | |`hipsolverDnZgesvdaStridedBatched_bufferSize`|5.4.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|
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,6 +130,8 @@
|`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| | | | | | |
|`cusolverDnCgesvdaStridedBatched`|10.1| | | |`hipsolverDnCgesvdaStridedBatched`|5.4.0| | | |6.1.0| | | | | | |
|`cusolverDnCgesvdaStridedBatched_bufferSize`|10.1| | | |`hipsolverDnCgesvdaStridedBatched_bufferSize`|5.4.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| | | | | | |
Expand Down Expand Up @@ -210,6 +212,8 @@
|`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| | | | | | |
|`cusolverDnDgesvdaStridedBatched`|10.1| | | |`hipsolverDnDgesvdaStridedBatched`|5.4.0| | | |6.1.0| | | | | | |
|`cusolverDnDgesvdaStridedBatched_bufferSize`|10.1| | | |`hipsolverDnDgesvdaStridedBatched_bufferSize`|5.4.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| | | | | | |
Expand Down Expand Up @@ -308,6 +312,8 @@
|`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| | | | | | |
|`cusolverDnSgesvdaStridedBatched`|10.1| | | |`hipsolverDnSgesvdaStridedBatched`|5.4.0| | | |6.1.0| | | | | | |
|`cusolverDnSgesvdaStridedBatched_bufferSize`|10.1| | | |`hipsolverDnSgesvdaStridedBatched_bufferSize`|5.4.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| | | | | | |
Expand Down Expand Up @@ -398,6 +404,8 @@
|`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| | | | | | |
|`cusolverDnZgesvdaStridedBatched`|10.1| | | |`hipsolverDnZgesvdaStridedBatched`|5.4.0| | | |6.1.0| | | | | | |
|`cusolverDnZgesvdaStridedBatched_bufferSize`|10.1| | | |`hipsolverDnZgesvdaStridedBatched_bufferSize`|5.4.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| | | | | | |
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,6 +130,8 @@
|`cusolverDnCgeqrf_bufferSize`| | | | | | | | | | |
|`cusolverDnCgesvd`| | | | | | | | | | |
|`cusolverDnCgesvd_bufferSize`| | | | | | | | | | |
|`cusolverDnCgesvdaStridedBatched`|10.1| | | | | | | | | |
|`cusolverDnCgesvdaStridedBatched_bufferSize`|10.1| | | | | | | | | |
|`cusolverDnCgesvdj`|9.0| | | | | | | | | |
|`cusolverDnCgesvdjBatched`|9.0| | | | | | | | | |
|`cusolverDnCgesvdjBatched_bufferSize`|9.0| | | | | | | | | |
Expand Down Expand Up @@ -210,6 +212,8 @@
|`cusolverDnDgeqrf_bufferSize`| | | | | | | | | | |
|`cusolverDnDgesvd`| | | | | | | | | | |
|`cusolverDnDgesvd_bufferSize`| | | | | | | | | | |
|`cusolverDnDgesvdaStridedBatched`|10.1| | | | | | | | | |
|`cusolverDnDgesvdaStridedBatched_bufferSize`|10.1| | | | | | | | | |
|`cusolverDnDgesvdj`|9.0| | | | | | | | | |
|`cusolverDnDgesvdjBatched`|9.0| | | | | | | | | |
|`cusolverDnDgesvdjBatched_bufferSize`|9.0| | | | | | | | | |
Expand Down Expand Up @@ -308,6 +312,8 @@
|`cusolverDnSgeqrf_bufferSize`| | | | | | | | | | |
|`cusolverDnSgesvd`| | | | | | | | | | |
|`cusolverDnSgesvd_bufferSize`| | | | | | | | | | |
|`cusolverDnSgesvdaStridedBatched`|10.1| | | | | | | | | |
|`cusolverDnSgesvdaStridedBatched_bufferSize`|10.1| | | | | | | | | |
|`cusolverDnSgesvdj`|9.0| | | | | | | | | |
|`cusolverDnSgesvdjBatched`|9.0| | | | | | | | | |
|`cusolverDnSgesvdjBatched_bufferSize`|9.0| | | | | | | | | |
Expand Down Expand Up @@ -398,6 +404,8 @@
|`cusolverDnZgeqrf_bufferSize`| | | | | | | | | | |
|`cusolverDnZgesvd`| | | | | | | | | | |
|`cusolverDnZgesvd_bufferSize`| | | | | | | | | | |
|`cusolverDnZgesvdaStridedBatched`|10.1| | | | | | | | | |
|`cusolverDnZgesvdaStridedBatched_bufferSize`|10.1| | | | | | | | | |
|`cusolverDnZgesvdj`|9.0| | | | | | | | | |
|`cusolverDnZgesvdjBatched`|9.0| | | | | | | | | |
|`cusolverDnZgesvdjBatched_bufferSize`|9.0| | | | | | | | | |
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 @@ -427,6 +427,16 @@ const std::map<llvm::StringRef, hipCounter> CUDA_SOLVER_FUNCTION_MAP {
{"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}},
// NOTE: rocsolver_(s|d|c|z)gesvdx_strided_batched have a harness of other ROC and HIP API calls
{"cusolverDnSgesvdaStridedBatched_bufferSize", {"hipsolverDnSgesvdaStridedBatched_bufferSize", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnDgesvdaStridedBatched_bufferSize", {"hipsolverDnDgesvdaStridedBatched_bufferSize", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnCgesvdaStridedBatched_bufferSize", {"hipsolverDnCgesvdaStridedBatched_bufferSize", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnZgesvdaStridedBatched_bufferSize", {"hipsolverDnZgesvdaStridedBatched_bufferSize", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
// NOTE: rocsolver_(s|d|c|z)gesvdx_strided_batched have a harness of other ROC and HIP API calls
{"cusolverDnSgesvdaStridedBatched", {"hipsolverDnSgesvdaStridedBatched", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnDgesvdaStridedBatched", {"hipsolverDnDgesvdaStridedBatched", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnCgesvdaStridedBatched", {"hipsolverDnCgesvdaStridedBatched", "", CONV_LIB_FUNC, API_SOLVER, 2, ROC_UNSUPPORTED | HIP_EXPERIMENTAL}},
{"cusolverDnZgesvdaStridedBatched", {"hipsolverDnZgesvdaStridedBatched", "", 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 @@ -697,6 +707,14 @@ const std::map<llvm::StringRef, cudaAPIversions> CUDA_SOLVER_FUNCTION_VER_MAP {
{"cusolverDnDgesvdj", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnCgesvdj", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnZgesvdj", {CUDA_90, CUDA_0, CUDA_0}},
{"cusolverDnSgesvdaStridedBatched_bufferSize", {CUDA_101, CUDA_0, CUDA_0}},
{"cusolverDnDgesvdaStridedBatched_bufferSize", {CUDA_101, CUDA_0, CUDA_0}},
{"cusolverDnCgesvdaStridedBatched_bufferSize", {CUDA_101, CUDA_0, CUDA_0}},
{"cusolverDnZgesvdaStridedBatched_bufferSize", {CUDA_101, CUDA_0, CUDA_0}},
{"cusolverDnSgesvdaStridedBatched", {CUDA_101, CUDA_0, CUDA_0}},
{"cusolverDnDgesvdaStridedBatched", {CUDA_101, CUDA_0, CUDA_0}},
{"cusolverDnCgesvdaStridedBatched", {CUDA_101, CUDA_0, CUDA_0}},
{"cusolverDnZgesvdaStridedBatched", {CUDA_101, CUDA_0, CUDA_0}},
};

const std::map<llvm::StringRef, hipAPIversions> HIP_SOLVER_FUNCTION_VER_MAP {
Expand Down Expand Up @@ -926,6 +944,14 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_SOLVER_FUNCTION_VER_MAP {
{"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}},
{"hipsolverDnSgesvdaStridedBatched_bufferSize", {HIP_5040, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnDgesvdaStridedBatched_bufferSize", {HIP_5040, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnCgesvdaStridedBatched_bufferSize", {HIP_5040, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnZgesvdaStridedBatched_bufferSize", {HIP_5040, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnSgesvdaStridedBatched", {HIP_5040, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnDgesvdaStridedBatched", {HIP_5040, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnCgesvdaStridedBatched", {HIP_5040, HIP_0, HIP_0, HIP_LATEST}},
{"hipsolverDnZgesvdaStridedBatched", {HIP_5040, 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 3050a20

Please sign in to comment.