Skip to content

Commit

Permalink
[HIPIFY][rocRAND][feature] Support for cuRAND -> rocRAND hipificati…
Browse files Browse the repository at this point in the history
…on - Step 12 - final

+ Updated synthetic tests for `rocRAND` and `hipRAND`, the regenerated `hipify-perl`, and `RAND` `CUDA2HIP` documentation
+ [ToDo] Add synthetic tests on Device functions
+ [ToDo] Update `supported_apis.md`
  • Loading branch information
emankov committed Oct 4, 2024
1 parent 68eb742 commit c8d55e8
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 74 deletions.
23 changes: 23 additions & 0 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -2694,6 +2694,29 @@ sub rocSubstitutions {
subst("cusparseZnnz", "rocsparse_znnz", "library");
subst("cusparseZnnz_compress", "rocsparse_znnz_compress", "library");
subst("cusparseZsctr", "rocsparse_zsctr", "library");
subst("curand", "rocrand", "device_library");
subst("curand_discrete", "rocrand_discrete", "device_library");
subst("curand_discrete4", "rocrand_discrete4", "device_library");
subst("curand_init", "rocrand_init", "device_library");
subst("curand_log_normal", "rocrand_log_normal", "device_library");
subst("curand_log_normal2", "rocrand_log_normal2", "device_library");
subst("curand_log_normal2_double", "rocrand_log_normal_double2", "device_library");
subst("curand_log_normal4", "rocrand_log_normal4", "device_library");
subst("curand_log_normal4_double", "rocrand_log_normal_double4", "device_library");
subst("curand_log_normal_double", "rocrand_log_normal_double", "device_library");
subst("curand_normal", "rocrand_normal", "device_library");
subst("curand_normal2", "rocrand_normal2", "device_library");
subst("curand_normal2_double", "rocrand_normal_double2", "device_library");
subst("curand_normal4", "rocrand_normal4", "device_library");
subst("curand_normal4_double", "rocrand_normal_double4", "device_library");
subst("curand_normal_double", "rocrand_normal_double", "device_library");
subst("curand_poisson", "rocrand_poisson", "device_library");
subst("curand_poisson4", "rocrand_poisson4", "device_library");
subst("curand_uniform", "rocrand_uniform", "device_library");
subst("curand_uniform2_double", "rocrand_uniform_double2", "device_library");
subst("curand_uniform4", "rocrand_uniform4", "device_library");
subst("curand_uniform4_double", "rocrand_uniform_double4", "device_library");
subst("curand_uniform_double", "rocrand_uniform_double", "device_library");
subst("__half", "rocblas_half", "device_type");
subst("__nv_bfloat16", "rocblas_bfloat16", "device_type");
subst("cublas_api.h", "rocblas.h", "include");
Expand Down
46 changes: 23 additions & 23 deletions docs/tables/CURAND_API_supported_by_HIP_and_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,33 +138,33 @@
|**CUDA**|**A**|**D**|**C**|**R**|**HIP**|**A**|**D**|**C**|**R**|**E**|**ROC**|**A**|**D**|**C**|**R**|**E**|
|:--|:-:|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|:-:|
|`__curand_umul`|11.5| | | | | | | | | | | | | | | |
|`curand`| | | | |`hiprand`|1.5.0| | | | | | | | | | |
|`curand`| | | | |`hiprand`|1.5.0| | | | |`rocrand`|1.5.0| | | | |
|`curand_Philox4x32_10`| | | | | | | | | | | | | | | | |
|`curand_discrete`| | | | |`hiprand_discrete`|1.5.0| | | | | | | | | | |
|`curand_discrete4`| | | | |`hiprand_discrete4`|1.5.0| | | | | | | | | | |
|`curand_init`| | | | |`hiprand_init`|1.5.0| | | | | | | | | | |
|`curand_log_normal`| | | | |`hiprand_log_normal`|1.5.0| | | | | | | | | | |
|`curand_log_normal2`| | | | |`hiprand_log_normal2`|1.5.0| | | | | | | | | | |
|`curand_log_normal2_double`| | | | |`hiprand_log_normal2_double`|1.5.0| | | | | | | | | | |
|`curand_log_normal4`| | | | |`hiprand_log_normal4`|1.5.0| | | | | | | | | | |
|`curand_log_normal4_double`| | | | |`hiprand_log_normal4_double`|1.5.0| | | | | | | | | | |
|`curand_log_normal_double`| | | | |`hiprand_log_normal_double`|1.5.0| | | | | | | | | | |
|`curand_discrete`| | | | |`hiprand_discrete`|1.5.0| | | | |`rocrand_discrete`|1.5.0| | | | |
|`curand_discrete4`| | | | |`hiprand_discrete4`|1.5.0| | | | |`rocrand_discrete4`|1.5.0| | | | |
|`curand_init`| | | | |`hiprand_init`|1.5.0| | | | |`rocrand_init`|1.5.0| | | | |
|`curand_log_normal`| | | | |`hiprand_log_normal`|1.5.0| | | | |`rocrand_log_normal`|1.5.0| | | | |
|`curand_log_normal2`| | | | |`hiprand_log_normal2`|1.5.0| | | | |`rocrand_log_normal2`|1.5.0| | | | |
|`curand_log_normal2_double`| | | | |`hiprand_log_normal2_double`|1.5.0| | | | |`rocrand_log_normal_double2`|1.5.0| | | | |
|`curand_log_normal4`| | | | |`hiprand_log_normal4`|1.5.0| | | | |`rocrand_log_normal4`|1.5.0| | | | |
|`curand_log_normal4_double`| | | | |`hiprand_log_normal4_double`|1.5.0| | | | |`rocrand_log_normal_double4`|1.5.0| | | | |
|`curand_log_normal_double`| | | | |`hiprand_log_normal_double`|1.5.0| | | | |`rocrand_log_normal_double`|1.5.0| | | | |
|`curand_mtgp32_single`| | | | | | | | | | | | | | | | |
|`curand_mtgp32_single_specific`| | | | | | | | | | | | | | | | |
|`curand_mtgp32_specific`| | | | | | | | | | | | | | | | |
|`curand_normal`| | | | |`hiprand_normal`|1.5.0| | | | | | | | | | |
|`curand_normal2`| | | | |`hiprand_normal2`|1.5.0| | | | | | | | | | |
|`curand_normal2_double`| | | | |`hiprand_normal2_double`|1.5.0| | | | | | | | | | |
|`curand_normal4`| | | | |`hiprand_normal4`|1.5.0| | | | | | | | | | |
|`curand_normal4_double`| | | | |`hiprand_normal4_double`|1.5.0| | | | | | | | | | |
|`curand_normal_double`| | | | |`hiprand_normal_double`|1.5.0| | | | | | | | | | |
|`curand_poisson`| | | | |`hiprand_poisson`|1.5.0| | | | | | | | | | |
|`curand_poisson4`| | | | |`hiprand_poisson4`|1.5.0| | | | | | | | | | |
|`curand_uniform`| | | | |`hiprand_uniform`|1.5.0| | | | | | | | | | |
|`curand_uniform2_double`| | | | |`hiprand_uniform2_double`|1.5.0| | | | | | | | | | |
|`curand_uniform4`| | | | |`hiprand_uniform4`|1.5.0| | | | | | | | | | |
|`curand_uniform4_double`| | | | |`hiprand_uniform4_double`|1.5.0| | | | | | | | | | |
|`curand_uniform_double`| | | | |`hiprand_uniform_double`|1.5.0| | | | | | | | | | |
|`curand_normal`| | | | |`hiprand_normal`|1.5.0| | | | |`rocrand_normal`|1.5.0| | | | |
|`curand_normal2`| | | | |`hiprand_normal2`|1.5.0| | | | |`rocrand_normal2`|1.5.0| | | | |
|`curand_normal2_double`| | | | |`hiprand_normal2_double`|1.5.0| | | | |`rocrand_normal_double2`|1.5.0| | | | |
|`curand_normal4`| | | | |`hiprand_normal4`|1.5.0| | | | |`rocrand_normal4`|1.5.0| | | | |
|`curand_normal4_double`| | | | |`hiprand_normal4_double`|1.5.0| | | | |`rocrand_normal_double4`|1.5.0| | | | |
|`curand_normal_double`| | | | |`hiprand_normal_double`|1.5.0| | | | |`rocrand_normal_double`|1.5.0| | | | |
|`curand_poisson`| | | | |`hiprand_poisson`|1.5.0| | | | |`rocrand_poisson`|1.5.0| | | | |
|`curand_poisson4`| | | | |`hiprand_poisson4`|1.5.0| | | | |`rocrand_poisson4`|1.5.0| | | | |
|`curand_uniform`| | | | |`hiprand_uniform`|1.5.0| | | | |`rocrand_uniform`|1.5.0| | | | |
|`curand_uniform2_double`| | | | |`hiprand_uniform2_double`|1.5.0| | | | |`rocrand_uniform_double2`|1.5.0| | | | |
|`curand_uniform4`| | | | |`hiprand_uniform4`|1.5.0| | | | |`rocrand_uniform4`|1.5.0| | | | |
|`curand_uniform4_double`| | | | |`hiprand_uniform4_double`|1.5.0| | | | |`rocrand_uniform_double4`|1.5.0| | | | |
|`curand_uniform_double`| | | | |`hiprand_uniform_double`|1.5.0| | | | |`rocrand_uniform_double`|1.5.0| | | | |


\*A - Added; D - Deprecated; C - Changed; R - Removed; E - Experimental
46 changes: 23 additions & 23 deletions docs/tables/CURAND_API_supported_by_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,33 +138,33 @@
|**CUDA**|**A**|**D**|**C**|**R**|**ROC**|**A**|**D**|**C**|**R**|**E**|
|:--|:-:|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|:-:|
|`__curand_umul`|11.5| | | | | | | | | |
|`curand`| | | | | | | | | | |
|`curand`| | | | |`rocrand`|1.5.0| | | | |
|`curand_Philox4x32_10`| | | | | | | | | | |
|`curand_discrete`| | | | | | | | | | |
|`curand_discrete4`| | | | | | | | | | |
|`curand_init`| | | | | | | | | | |
|`curand_log_normal`| | | | | | | | | | |
|`curand_log_normal2`| | | | | | | | | | |
|`curand_log_normal2_double`| | | | | | | | | | |
|`curand_log_normal4`| | | | | | | | | | |
|`curand_log_normal4_double`| | | | | | | | | | |
|`curand_log_normal_double`| | | | | | | | | | |
|`curand_discrete`| | | | |`rocrand_discrete`|1.5.0| | | | |
|`curand_discrete4`| | | | |`rocrand_discrete4`|1.5.0| | | | |
|`curand_init`| | | | |`rocrand_init`|1.5.0| | | | |
|`curand_log_normal`| | | | |`rocrand_log_normal`|1.5.0| | | | |
|`curand_log_normal2`| | | | |`rocrand_log_normal2`|1.5.0| | | | |
|`curand_log_normal2_double`| | | | |`rocrand_log_normal_double2`|1.5.0| | | | |
|`curand_log_normal4`| | | | |`rocrand_log_normal4`|1.5.0| | | | |
|`curand_log_normal4_double`| | | | |`rocrand_log_normal_double4`|1.5.0| | | | |
|`curand_log_normal_double`| | | | |`rocrand_log_normal_double`|1.5.0| | | | |
|`curand_mtgp32_single`| | | | | | | | | | |
|`curand_mtgp32_single_specific`| | | | | | | | | | |
|`curand_mtgp32_specific`| | | | | | | | | | |
|`curand_normal`| | | | | | | | | | |
|`curand_normal2`| | | | | | | | | | |
|`curand_normal2_double`| | | | | | | | | | |
|`curand_normal4`| | | | | | | | | | |
|`curand_normal4_double`| | | | | | | | | | |
|`curand_normal_double`| | | | | | | | | | |
|`curand_poisson`| | | | | | | | | | |
|`curand_poisson4`| | | | | | | | | | |
|`curand_uniform`| | | | | | | | | | |
|`curand_uniform2_double`| | | | | | | | | | |
|`curand_uniform4`| | | | | | | | | | |
|`curand_uniform4_double`| | | | | | | | | | |
|`curand_uniform_double`| | | | | | | | | | |
|`curand_normal`| | | | |`rocrand_normal`|1.5.0| | | | |
|`curand_normal2`| | | | |`rocrand_normal2`|1.5.0| | | | |
|`curand_normal2_double`| | | | |`rocrand_normal_double2`|1.5.0| | | | |
|`curand_normal4`| | | | |`rocrand_normal4`|1.5.0| | | | |
|`curand_normal4_double`| | | | |`rocrand_normal_double4`|1.5.0| | | | |
|`curand_normal_double`| | | | |`rocrand_normal_double`|1.5.0| | | | |
|`curand_poisson`| | | | |`rocrand_poisson`|1.5.0| | | | |
|`curand_poisson4`| | | | |`rocrand_poisson4`|1.5.0| | | | |
|`curand_uniform`| | | | |`rocrand_uniform`|1.5.0| | | | |
|`curand_uniform2_double`| | | | |`rocrand_uniform_double2`|1.5.0| | | | |
|`curand_uniform4`| | | | |`rocrand_uniform4`|1.5.0| | | | |
|`curand_uniform4_double`| | | | |`rocrand_uniform_double4`|1.5.0| | | | |
|`curand_uniform_double`| | | | |`rocrand_uniform_double`|1.5.0| | | | |


\*A - Added; D - Deprecated; C - Changed; R - Removed; E - Experimental
Loading

0 comments on commit c8d55e8

Please sign in to comment.