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 11 - Data Types

+ Updated synthetic tests for `rocRAND` and `hipRAND`, the regenerated `hipify-perl`, and `RAND` `CUDA2HIP` documentation
  • Loading branch information
emankov committed Oct 3, 2024
1 parent af7fc03 commit 2a99c77
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 82 deletions.
14 changes: 14 additions & 0 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -2808,6 +2808,20 @@ sub rocSubstitutions {
subst("curandOrdering_t", "rocrand_ordering", "type");
subst("curandRngType", "rocrand_rng_type", "type");
subst("curandRngType_t", "rocrand_rng_type", "type");
subst("curandStateMRG32k3a", "rocrand_device::mrg32k3a_engine", "type");
subst("curandStateMRG32k3a_t", "rocrand_state_mrg32k3a", "type");
subst("curandStateMtgp32", "rocrand_device::mtgp32_engine", "type");
subst("curandStateMtgp32_t", "rocrand_state_mtgp32", "type");
subst("curandStatePhilox4_32_10", "rocrand_device::philox4x32_10_engine", "type");
subst("curandStatePhilox4_32_10_t", "rocrand_state_philox4x32_10", "type");
subst("curandStateScrambledSobol32", "rocrand_device::scrambled_sobol32_engine<false>", "type");
subst("curandStateScrambledSobol32_t", "rocrand_state_scrambled_sobol32", "type");
subst("curandStateScrambledSobol64", "rocrand_device::scrambled_sobol64_engine<false>", "type");
subst("curandStateScrambledSobol64_t", "rocrand_state_scrambled_sobol64", "type");
subst("curandStateSobol32", "rocrand_device::sobol32_engine<false>", "type");
subst("curandStateSobol32_t", "rocrand_state_sobol32", "type");
subst("curandStateSobol64", "rocrand_device::sobol64_engine<false>", "type");
subst("curandStateSobol64_t", "rocrand_state_sobol64", "type");
subst("curandStatus", "rocrand_status", "type");
subst("curandStatus_t", "rocrand_status", "type");
subst("cusolverDnHandle_t", "rocblas_handle", "type");
Expand Down
28 changes: 14 additions & 14 deletions docs/tables/CURAND_API_supported_by_HIP_and_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,20 @@
|`curandRngType`| | | | |`hiprandRngType_t`|1.5.0| | | | |`rocrand_rng_type`|1.5.0| | | | |
|`curandRngType_t`| | | | |`hiprandRngType_t`|1.5.0| | | | |`rocrand_rng_type`|1.5.0| | | | |
|`curandState`| | | | |`hiprandState`|1.8.0| | | | | | | | | | |
|`curandStateMRG32k3a`| | | | |`hiprandStateMRG32k3a`|1.8.0| | | | | | | | | | |
|`curandStateMRG32k3a_t`| | | | |`hiprandStateMRG32k3a_t`|1.5.0| | | | | | | | | | |
|`curandStateMtgp32`| | | | |`hiprandStateMtgp32`|1.8.0| | | | | | | | | | |
|`curandStateMtgp32_t`| | | | |`hiprandStateMtgp32_t`|1.5.0| | | | | | | | | | |
|`curandStatePhilox4_32_10`| | | | |`hiprandStatePhilox4_32_10`|1.8.0| | | | | | | | | | |
|`curandStatePhilox4_32_10_t`| | | | |`hiprandStatePhilox4_32_10_t`|1.8.0| | | | | | | | | | |
|`curandStateScrambledSobol32`| | | | |`hiprandStateScrambledSobol32`|6.2.0| | | | | | | | | | |
|`curandStateScrambledSobol32_t`| | | | |`hiprandStateScrambledSobol32_t`|6.2.0| | | | | | | | | | |
|`curandStateScrambledSobol64`| | | | |`hiprandStateScrambledSobol64`|6.2.0| | | | | | | | | | |
|`curandStateScrambledSobol64_t`| | | | |`hiprandStateScrambledSobol64_t`|6.2.0| | | | | | | | | | |
|`curandStateSobol32`| | | | |`hiprandStateSobol32`|1.8.0| | | | | | | | | | |
|`curandStateSobol32_t`| | | | |`hiprandStateSobol32_t`|1.5.0| | | | | | | | | | |
|`curandStateSobol64`| | | | |`hiprandStateSobol64`|6.2.0| | | | | | | | | | |
|`curandStateSobol64_t`| | | | |`hiprandStateSobol64_t`|6.2.0| | | | | | | | | | |
|`curandStateMRG32k3a`| | | | |`hiprandStateMRG32k3a`|1.8.0| | | | |`rocrand_device::mrg32k3a_engine`|1.5.0| | | | |
|`curandStateMRG32k3a_t`| | | | |`hiprandStateMRG32k3a_t`|1.5.0| | | | |`rocrand_state_mrg32k3a`|1.5.0| | | | |
|`curandStateMtgp32`| | | | |`hiprandStateMtgp32`|1.8.0| | | | |`rocrand_device::mtgp32_engine`|1.5.0| | | | |
|`curandStateMtgp32_t`| | | | |`hiprandStateMtgp32_t`|1.5.0| | | | |`rocrand_state_mtgp32`|1.5.0| | | | |
|`curandStatePhilox4_32_10`| | | | |`hiprandStatePhilox4_32_10`|1.8.0| | | | |`rocrand_device::philox4x32_10_engine`|1.5.0| | | | |
|`curandStatePhilox4_32_10_t`| | | | |`hiprandStatePhilox4_32_10_t`|1.8.0| | | | |`rocrand_state_philox4x32_10`|1.5.0| | | | |
|`curandStateScrambledSobol32`| | | | |`hiprandStateScrambledSobol32`|6.2.0| | | | |`rocrand_device::scrambled_sobol32_engine<false>`|5.4.0| | | | |
|`curandStateScrambledSobol32_t`| | | | |`hiprandStateScrambledSobol32_t`|6.2.0| | | | |`rocrand_state_scrambled_sobol32`|5.4.0| | | | |
|`curandStateScrambledSobol64`| | | | |`hiprandStateScrambledSobol64`|6.2.0| | | | |`rocrand_device::scrambled_sobol64_engine<false>`|5.4.0| | | | |
|`curandStateScrambledSobol64_t`| | | | |`hiprandStateScrambledSobol64_t`|6.2.0| | | | |`rocrand_state_scrambled_sobol64`|5.4.0| | | | |
|`curandStateSobol32`| | | | |`hiprandStateSobol32`|1.8.0| | | | |`rocrand_device::sobol32_engine<false>`|1.5.0| | | | |
|`curandStateSobol32_t`| | | | |`hiprandStateSobol32_t`|1.5.0| | | | |`rocrand_state_sobol32`|1.5.0| | | | |
|`curandStateSobol64`| | | | |`hiprandStateSobol64`|6.2.0| | | | |`rocrand_device::sobol64_engine<false>`|4.5.0| | | | |
|`curandStateSobol64_t`| | | | |`hiprandStateSobol64_t`|6.2.0| | | | |`rocrand_state_sobol64`|4.5.0| | | | |
|`curandStateXORWOW`| | | | |`hiprandStateXORWOW`|1.8.0| | | | | | | | | | |
|`curandStateXORWOW_t`| | | | |`hiprandStateXORWOW_t`|1.5.0| | | | | | | | | | |
|`curandState_t`| | | | |`hiprandState_t`|1.5.0| | | | | | | | | | |
Expand Down
28 changes: 14 additions & 14 deletions docs/tables/CURAND_API_supported_by_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,20 @@
|`curandRngType`| | | | |`rocrand_rng_type`|1.5.0| | | | |
|`curandRngType_t`| | | | |`rocrand_rng_type`|1.5.0| | | | |
|`curandState`| | | | | | | | | | |
|`curandStateMRG32k3a`| | | | | | | | | | |
|`curandStateMRG32k3a_t`| | | | | | | | | | |
|`curandStateMtgp32`| | | | | | | | | | |
|`curandStateMtgp32_t`| | | | | | | | | | |
|`curandStatePhilox4_32_10`| | | | | | | | | | |
|`curandStatePhilox4_32_10_t`| | | | | | | | | | |
|`curandStateScrambledSobol32`| | | | | | | | | | |
|`curandStateScrambledSobol32_t`| | | | | | | | | | |
|`curandStateScrambledSobol64`| | | | | | | | | | |
|`curandStateScrambledSobol64_t`| | | | | | | | | | |
|`curandStateSobol32`| | | | | | | | | | |
|`curandStateSobol32_t`| | | | | | | | | | |
|`curandStateSobol64`| | | | | | | | | | |
|`curandStateSobol64_t`| | | | | | | | | | |
|`curandStateMRG32k3a`| | | | |`rocrand_device::mrg32k3a_engine`|1.5.0| | | | |
|`curandStateMRG32k3a_t`| | | | |`rocrand_state_mrg32k3a`|1.5.0| | | | |
|`curandStateMtgp32`| | | | |`rocrand_device::mtgp32_engine`|1.5.0| | | | |
|`curandStateMtgp32_t`| | | | |`rocrand_state_mtgp32`|1.5.0| | | | |
|`curandStatePhilox4_32_10`| | | | |`rocrand_device::philox4x32_10_engine`|1.5.0| | | | |
|`curandStatePhilox4_32_10_t`| | | | |`rocrand_state_philox4x32_10`|1.5.0| | | | |
|`curandStateScrambledSobol32`| | | | |`rocrand_device::scrambled_sobol32_engine<false>`|5.4.0| | | | |
|`curandStateScrambledSobol32_t`| | | | |`rocrand_state_scrambled_sobol32`|5.4.0| | | | |
|`curandStateScrambledSobol64`| | | | |`rocrand_device::scrambled_sobol64_engine<false>`|5.4.0| | | | |
|`curandStateScrambledSobol64_t`| | | | |`rocrand_state_scrambled_sobol64`|5.4.0| | | | |
|`curandStateSobol32`| | | | |`rocrand_device::sobol32_engine<false>`|1.5.0| | | | |
|`curandStateSobol32_t`| | | | |`rocrand_state_sobol32`|1.5.0| | | | |
|`curandStateSobol64`| | | | |`rocrand_device::sobol64_engine<false>`|4.5.0| | | | |
|`curandStateSobol64_t`| | | | |`rocrand_state_sobol64`|4.5.0| | | | |
|`curandStateXORWOW`| | | | | | | | | | |
|`curandStateXORWOW_t`| | | | | | | | | | |
|`curandState_t`| | | | | | | | | | |
Expand Down
Loading

0 comments on commit 2a99c77

Please sign in to comment.