Debian Codegraph @

tests/unit_tests/synthetic/libraries/curand2rocrand.cu

raw
1 // RUN: %run_test hipify "%s" "%t" %hipify_args 4 --amap --default-preprocessor --experimental --roc %clang_args
2
3 // CHECK: #include <hip/hip_runtime.h>
4 #include <cuda_runtime.h>
5 #include <stdio.h>
6 // CHECK: #include "rocrand/rocrand.h"
7 // CHECK-NEXT: #include "rocrand/rocrand_kernel.h"
8 #include "curand.h"
9 #include "curand_kernel.h"
10 // CHECK-NOT: #include "rocrand/rocrand.h"
11 // CHECK-NOT: #include "rocrand/rocrand_kernel.h"
12
13 int main() {
14 printf("23. cuRAND API to rocRAND API synthetic test\n");
15
16 unsigned int *outputPtr = nullptr;
17 unsigned int *constants = nullptr;
18 unsigned long long *constantsLL = nullptr;
19 float *outputPtrFloat = nullptr;
20 double *outputPtrDouble = nullptr;
21 unsigned int num_dimensions = 0;
22 unsigned long long *outputPtrUll = nullptr;
23 unsigned long long offset = 0;
24 int version = 0;
25 size_t num = 0;
26 float mean = 0.f;
27 double dmean = 0.f;
28 float stddev = 0.f;
29 double dstddev = 0.f;
30 double dlambda = 0.f;
31
32 // CHECK: hipStream_t stream;
33 cudaStream_t stream;
34
35 // CHECK: rocrand_status randStatus;
36 // CHECK-NEXT: rocrand_status status;
37 // CHECK-NEXT: rocrand_status STATUS_SUCCESS = ROCRAND_STATUS_SUCCESS;
38 // CHECK-NEXT: rocrand_status STATUS_VERSION_MISMATCH = ROCRAND_STATUS_VERSION_MISMATCH;
39 // CHECK-NEXT: rocrand_status STATUS_NOT_INITIALIZED = ROCRAND_STATUS_NOT_CREATED;
40 // CHECK-NEXT: rocrand_status STATUS_ALLOCATION_FAILED = ROCRAND_STATUS_ALLOCATION_FAILED;
41 // CHECK-NEXT: rocrand_status STATUS_TYPE_ERROR = ROCRAND_STATUS_TYPE_ERROR;
42 // CHECK-NEXT: rocrand_status STATUS_OUT_OF_RANGE = ROCRAND_STATUS_OUT_OF_RANGE;
43 // CHECK-NEXT: rocrand_status STATUS_LENGTH_NOT_MULTIPLE = ROCRAND_STATUS_LENGTH_NOT_MULTIPLE;
44 // CHECK-NEXT: rocrand_status STATUS_DOUBLE_PRECISION_REQUIRED = ROCRAND_STATUS_DOUBLE_PRECISION_REQUIRED;
45 // CHECK-NEXT: rocrand_status STATUS_LAUNCH_FAILURE = ROCRAND_STATUS_LAUNCH_FAILURE;
46 // CHECK-NEXT: rocrand_status STATUS_INTERNAL_ERROR = ROCRAND_STATUS_INTERNAL_ERROR;
47 curandStatus randStatus;
48 curandStatus_t status;
49 curandStatus_t STATUS_SUCCESS = CURAND_STATUS_SUCCESS;
50 curandStatus_t STATUS_VERSION_MISMATCH = CURAND_STATUS_VERSION_MISMATCH;
51 curandStatus_t STATUS_NOT_INITIALIZED = CURAND_STATUS_NOT_INITIALIZED;
52 curandStatus_t STATUS_ALLOCATION_FAILED = CURAND_STATUS_ALLOCATION_FAILED;
53 curandStatus_t STATUS_TYPE_ERROR = CURAND_STATUS_TYPE_ERROR;
54 curandStatus_t STATUS_OUT_OF_RANGE = CURAND_STATUS_OUT_OF_RANGE;
55 curandStatus_t STATUS_LENGTH_NOT_MULTIPLE = CURAND_STATUS_LENGTH_NOT_MULTIPLE;
56 curandStatus_t STATUS_DOUBLE_PRECISION_REQUIRED = CURAND_STATUS_DOUBLE_PRECISION_REQUIRED;
57 curandStatus_t STATUS_LAUNCH_FAILURE = CURAND_STATUS_LAUNCH_FAILURE;
58 curandStatus_t STATUS_INTERNAL_ERROR = CURAND_STATUS_INTERNAL_ERROR;
59
60 // CHECK: rocrand_rng_type randRngType;
61 // CHECK-NEXT: rocrand_rng_type randRngType_t;
62 // CHECK-NEXT: rocrand_rng_type RNG_PSEUDO_DEFAULT = ROCRAND_RNG_PSEUDO_DEFAULT;
63 // CHECK-NEXT: rocrand_rng_type RNG_PSEUDO_XORWOW = ROCRAND_RNG_PSEUDO_XORWOW;
64 // CHECK-NEXT: rocrand_rng_type RNG_PSEUDO_MRG32K3A = ROCRAND_RNG_PSEUDO_MRG32K3A;
65 // CHECK-NEXT: rocrand_rng_type RNG_PSEUDO_MTGP32 = ROCRAND_RNG_PSEUDO_MTGP32;
66 // CHECK-NEXT: rocrand_rng_type RNG_PSEUDO_MT19937 = ROCRAND_RNG_PSEUDO_MT19937;
67 // CHECK-NEXT: rocrand_rng_type RNG_PSEUDO_PHILOX4_32_10 = ROCRAND_RNG_PSEUDO_PHILOX4_32_10;
68 // CHECK-NEXT: rocrand_rng_type RNG_QUASI_DEFAULT = ROCRAND_RNG_QUASI_DEFAULT;
69 // CHECK-NEXT: rocrand_rng_type RNG_QUASI_SOBOL32 = ROCRAND_RNG_QUASI_SOBOL32;
70 // CHECK-NEXT: rocrand_rng_type RNG_QUASI_SCRAMBLED_SOBOL32 = ROCRAND_RNG_QUASI_SCRAMBLED_SOBOL32;
71 // CHECK-NEXT: rocrand_rng_type RNG_QUASI_SOBOL64 = ROCRAND_RNG_QUASI_SOBOL64;
72 // CHECK-NEXT: rocrand_rng_type RNG_QUASI_SCRAMBLED_SOBOL64 = ROCRAND_RNG_QUASI_SCRAMBLED_SOBOL64;
73 curandRngType randRngType;
74 curandRngType_t randRngType_t;
75 curandRngType_t RNG_PSEUDO_DEFAULT = CURAND_RNG_PSEUDO_DEFAULT;
76 curandRngType_t RNG_PSEUDO_XORWOW = CURAND_RNG_PSEUDO_XORWOW;
77 curandRngType_t RNG_PSEUDO_MRG32K3A = CURAND_RNG_PSEUDO_MRG32K3A;
78 curandRngType_t RNG_PSEUDO_MTGP32 = CURAND_RNG_PSEUDO_MTGP32;
79 curandRngType_t RNG_PSEUDO_MT19937 = CURAND_RNG_PSEUDO_MT19937;
80 curandRngType_t RNG_PSEUDO_PHILOX4_32_10 = CURAND_RNG_PSEUDO_PHILOX4_32_10;
81 curandRngType_t RNG_QUASI_DEFAULT = CURAND_RNG_QUASI_DEFAULT;
82 curandRngType_t RNG_QUASI_SOBOL32 = CURAND_RNG_QUASI_SOBOL32;
83 curandRngType_t RNG_QUASI_SCRAMBLED_SOBOL32 = CURAND_RNG_QUASI_SCRAMBLED_SOBOL32;
84 curandRngType_t RNG_QUASI_SOBOL64 = CURAND_RNG_QUASI_SOBOL64;
85 curandRngType_t RNG_QUASI_SCRAMBLED_SOBOL64 = CURAND_RNG_QUASI_SCRAMBLED_SOBOL64;
86
87 // CHECK: rocrand_ordering randOrdering;
88 // CHECK-NEXT: rocrand_ordering RAND_ORDERING_PSEUDO_BEST = ROCRAND_ORDERING_PSEUDO_BEST;
89 // CHECK-NEXT: rocrand_ordering RAND_ORDERING_PSEUDO_DEFAULT = ROCRAND_ORDERING_PSEUDO_DEFAULT;
90 // CHECK-NEXT: rocrand_ordering RAND_ORDERING_PSEUDO_SEEDED = ROCRAND_ORDERING_PSEUDO_SEEDED;
91 // CHECK-NEXT: rocrand_ordering RAND_ORDERING_QUASI_DEFAULT = ROCRAND_ORDERING_QUASI_DEFAULT;
92 curandOrdering randOrdering;
93 curandOrdering_t RAND_ORDERING_PSEUDO_BEST = CURAND_ORDERING_PSEUDO_BEST;
94 curandOrdering_t RAND_ORDERING_PSEUDO_DEFAULT = CURAND_ORDERING_PSEUDO_DEFAULT;
95 curandOrdering_t RAND_ORDERING_PSEUDO_SEEDED = CURAND_ORDERING_PSEUDO_SEEDED;
96 curandOrdering_t RAND_ORDERING_QUASI_DEFAULT = CURAND_ORDERING_QUASI_DEFAULT;
97
98 // CHECK: rocrand_direction_vector_set directionVectorSet;
99 // CHECK-NEXT: rocrand_direction_vector_set directionVectorSet_t;
100 // CHECK-NEXT: rocrand_direction_vector_set DIRECTION_VECTORS_32_JOEKUO6 = ROCRAND_DIRECTION_VECTORS_32_JOEKUO6;
101 // CHECK-NEXT: rocrand_direction_vector_set SCRAMBLED_DIRECTION_VECTORS_32_JOEKUO6 = ROCRAND_SCRAMBLED_DIRECTION_VECTORS_32_JOEKUO6;
102 // CHECK-NEXT: rocrand_direction_vector_set DIRECTION_VECTORS_64_JOEKUO6 = ROCRAND_DIRECTION_VECTORS_64_JOEKUO6;
103 // CHECK-NEXT: rocrand_direction_vector_set SCRAMBLED_DIRECTION_VECTORS_64_JOEKUO6 = ROCRAND_SCRAMBLED_DIRECTION_VECTORS_64_JOEKUO6;
104 curandDirectionVectorSet directionVectorSet;
105 curandDirectionVectorSet_t directionVectorSet_t;
106 curandDirectionVectorSet_t DIRECTION_VECTORS_32_JOEKUO6 = CURAND_DIRECTION_VECTORS_32_JOEKUO6;
107 curandDirectionVectorSet_t SCRAMBLED_DIRECTION_VECTORS_32_JOEKUO6 = CURAND_SCRAMBLED_DIRECTION_VECTORS_32_JOEKUO6;
108 curandDirectionVectorSet_t DIRECTION_VECTORS_64_JOEKUO6 = CURAND_DIRECTION_VECTORS_64_JOEKUO6;
109 curandDirectionVectorSet_t SCRAMBLED_DIRECTION_VECTORS_64_JOEKUO6 = CURAND_SCRAMBLED_DIRECTION_VECTORS_64_JOEKUO6;
110
111 // CHECK: rocrand_generator_base_type *randGenerator_st = nullptr;
112 // CHECK-NEXT: rocrand_generator randGenerator;
113 curandGenerator_st *randGenerator_st = nullptr;
114 curandGenerator_t randGenerator;
115
116 // CHECK: rocrand_device::sobol64_engine<false> randStateSobol64;
117 // CHECK-NEXT: rocrand_state_sobol64 randStateSobol64_t;
118 curandStateSobol64 randStateSobol64;
119 curandStateSobol64_t randStateSobol64_t;
120
121 // CHECK: rocrand_device::scrambled_sobol64_engine<false> randStateScrambledSobol64;
122 // CHECK-NEXT: rocrand_state_scrambled_sobol64 randStateScrambledSobol64_t;
123 curandStateScrambledSobol64 randStateScrambledSobol64;
124 curandStateScrambledSobol64_t randStateScrambledSobol64_t;
125
126 // CHECK: rocrand_device::sobol32_engine<false> randStateSobol32;
127 // CHECK-NEXT: rocrand_state_sobol32 randStateSobol32_t;
128 curandStateSobol32 randStateSobol32;
129 curandStateSobol32_t randStateSobol32_t;
130
131 // CHECK: rocrand_device::scrambled_sobol32_engine<false> randStateScrambledSobol32;
132 // CHECK-NEXT: rocrand_state_scrambled_sobol32 randStateScrambledSobol32_t;
133 curandStateScrambledSobol32 randStateScrambledSobol32;
134 curandStateScrambledSobol32_t randStateScrambledSobol32_t;
135
136 // CHECK: rocrand_discrete_distribution_st *discreteDistribution_st = nullptr;
137 // CHECK-NEXT: rocrand_discrete_distribution discreteDistribution_t = nullptr;
138 curandDiscreteDistribution_st *discreteDistribution_st = nullptr;
139 curandDiscreteDistribution_t discreteDistribution_t = nullptr;
140
141 // CHECK: rocrand_device::mtgp32_engine stateMtgp32;
142 // CHECK-NEXT: rocrand_state_mtgp32 stateMtgp32_t;
143 curandStateMtgp32 stateMtgp32;
144 curandStateMtgp32_t stateMtgp32_t;
145
146 // CHECK: rocrand_device::mrg32k3a_engine stateMRG32k3a;
147 // CHECK-NEXT: rocrand_state_mrg32k3a stateMRG32k3a_t;
148 curandStateMRG32k3a stateMRG32k3a;
149 curandStateMRG32k3a_t stateMRG32k3a_t;
150
151 // CHECK: rocrand_device::philox4x32_10_engine statePhilox4_32_10;
152 // CHECK-NEXT: rocrand_state_philox4x32_10 statePhilox4_32_10_t;
153 curandStatePhilox4_32_10 statePhilox4_32_10;
154 curandStatePhilox4_32_10_t statePhilox4_32_10_t;
155
156 // CHECK: rocrand_device::xorwow_engine stateXORWOW;
157 // CHECK-NEXT: rocrand_state_xorwow stateXORWOW_t;
158 curandStateXORWOW stateXORWOW;
159 curandStateXORWOW_t stateXORWOW_t;
160
161 // CUDA: curandStatus_t CURANDAPI curandCreateGenerator(curandGenerator_t *generator, curandRngType_t rng_type);
162 // ROC: rocrand_status ROCRANDAPI rocrand_create_generator(rocrand_generator * generator, rocrand_rng_type rng_type);
163 // CHECK: status = rocrand_create_generator(&randGenerator, randRngType_t);
164 status = curandCreateGenerator(&randGenerator, randRngType_t);
165
166 // CUDA: curandStatus_t CURANDAPI curandDestroyGenerator(curandGenerator_t generator);
167 // ROC: rocrand_status ROCRANDAPI rocrand_destroy_generator(rocrand_generator generator);
168 // CHECK: status = rocrand_destroy_generator(randGenerator);
169 status = curandDestroyGenerator(randGenerator);
170
171 // CUDA: curandStatus_t CURANDAPI curandCreateGeneratorHost(curandGenerator_t *generator, curandRngType_t rng_type);
172 // ROC: rocrand_status ROCRANDAPI rocrand_create_generator_host_blocking(rocrand_generator* generator, rocrand_rng_type rng_type);
173 // CHECK: status = rocrand_create_generator_host_blocking(&randGenerator, randRngType_t);
174 status = curandCreateGeneratorHost(&randGenerator, randRngType_t);
175
176 // CUDA: curandStatus_t CURANDAPI curandGenerate(curandGenerator_t generator, unsigned int *outputPtr, size_t num);
177 // ROC: rocrand_status ROCRANDAPI rocrand_generate(rocrand_generator generator, unsigned int * output_data, size_t n);
178 // CHECK: status = rocrand_generate(randGenerator, outputPtr, num);
179 status = curandGenerate(randGenerator, outputPtr, num);
180
181 // CUDA: curandStatus_t CURANDAPI curandGenerateLogNormal(curandGenerator_t generator, float *outputPtr, size_t n, float mean, float stddev);
182 // ROC: rocrand_status ROCRANDAPI rocrand_generate_log_normal(rocrand_generator generator, float * output_data, size_t n, float mean, float stddev);
183 // CHECK: status = rocrand_generate_log_normal(randGenerator, outputPtrFloat, num, mean, stddev);
184 status = curandGenerateLogNormal(randGenerator, outputPtrFloat, num, mean, stddev);
185
186 // CUDA: curandStatus_t CURANDAPI curandGenerateLongLong(curandGenerator_t generator, unsigned long long *outputPtr, size_t num);
187 // ROC: rocrand_status ROCRANDAPI rocrand_generate_long_long(rocrand_generator generator, unsigned long long int* output_data, size_t n);
188 // CHECK: status = rocrand_generate_long_long(randGenerator, outputPtrUll, num);
189 status = curandGenerateLongLong(randGenerator, outputPtrUll, num);
190
191 // CUDA: curandStatus_t CURANDAPI curandGenerateNormal(curandGenerator_t generator, float *outputPtr, size_t n, float mean, float stddev);
192 // ROC: rocrand_status ROCRANDAPI rocrand_generate_normal(rocrand_generator generator, float * output_data, size_t n, float mean, float stddev);
193 // CHECK: status = rocrand_generate_normal(randGenerator, outputPtrFloat, num, mean, stddev);
194 status = curandGenerateNormal(randGenerator, outputPtrFloat, num, mean, stddev);
195
196 // CUDA: curandStatus_t CURANDAPI curandGenerateNormalDouble(curandGenerator_t generator, double *outputPtr, size_t n, double mean, double stddev);
197 // ROC: rocrand_status ROCRANDAPI rocrand_generate_normal_double(rocrand_generator generator, double * output_data, size_t n, double mean, double stddev);
198 // CHECK: status = rocrand_generate_normal_double(randGenerator, outputPtrDouble, num, dmean, dstddev);
199 status = curandGenerateNormalDouble(randGenerator, outputPtrDouble, num, dmean, dstddev);
200
201 // CUDA: curandStatus_t CURANDAPI curandGenerateUniform(curandGenerator_t generator, float *outputPtr, size_t num);
202 // ROC: rocrand_status ROCRANDAPI rocrand_generate_uniform(rocrand_generator generator, float * output_data, size_t n);
203 // CHECK: status = rocrand_generate_uniform(randGenerator, outputPtrFloat, num);
204 status = curandGenerateUniform(randGenerator, outputPtrFloat, num);
205
206 // CUDA: curandStatus_t CURANDAPI curandGenerateUniformDouble(curandGenerator_t generator, double *outputPtr, size_t num);
207 // ROC: rocrand_status ROCRANDAPI rocrand_generate_uniform_double(rocrand_generator generator, double * output_data, size_t n);
208 // CHECK: status = rocrand_generate_uniform_double(randGenerator, outputPtrDouble, num);
209 status = curandGenerateUniformDouble(randGenerator, outputPtrDouble, num);
210
211 // CUDA: curandStatus_t CURANDAPI curandGenerateLogNormalDouble(curandGenerator_t generator, double *outputPtr, size_t n, double mean, double stddev);
212 // ROC: rocrand_status ROCRANDAPI rocrand_generate_log_normal_double(rocrand_generator generator, double * output_data, size_t n, double mean, double stddev);
213 // CHECK: status = rocrand_generate_log_normal_double(randGenerator, outputPtrDouble, num, dmean, dstddev);
214 status = curandGenerateLogNormalDouble(randGenerator, outputPtrDouble, num, dmean, dstddev);
215
216 // CUDA: curandStatus_t CURANDAPI curandGeneratePoisson(curandGenerator_t generator, unsigned int *outputPtr, size_t n, double lambda);
217 // ROC: rocrand_status ROCRANDAPI rocrand_generate_poisson(rocrand_generator generator, unsigned int * output_data, size_t n, double lambda);
218 // CHECK: status = rocrand_generate_poisson(randGenerator, outputPtr, num, dlambda);
219 status = curandGeneratePoisson(randGenerator, outputPtr, num, dlambda);
220
221 // CUDA: curandStatus_t CURANDAPI curandGenerateSeeds(curandGenerator_t generator);
222 // ROC: rocrand_status ROCRANDAPI rocrand_initialize_generator(rocrand_generator generator);
223 // CHECK: status = rocrand_initialize_generator(randGenerator);
224 status = curandGenerateSeeds(randGenerator);
225
226 // CUDA: curandStatus_t CURANDAPI curandSetGeneratorOffset(curandGenerator_t generator, unsigned long long offset);
227 // ROC: rocrand_status ROCRANDAPI rocrand_set_offset(rocrand_generator generator, unsigned long long offset);
228 // CHECK: status = rocrand_set_offset(randGenerator, offset);
229 status = curandSetGeneratorOffset(randGenerator, offset);
230
231 // CUDA: curandStatus_t CURANDAPI curandSetPseudoRandomGeneratorSeed(curandGenerator_t generator, unsigned long long seed);
232 // ROC: rocrand_status ROCRANDAPI rocrand_set_seed(rocrand_generator generator, unsigned long long seed);
233 // CHECK: status = rocrand_set_seed(randGenerator, offset);
234 status = curandSetPseudoRandomGeneratorSeed(randGenerator, offset);
235
236 // CUDA: curandStatus_t CURANDAPI curandSetStream(curandGenerator_t generator, cudaStream_t stream);
237 // ROC: rocrand_status ROCRANDAPI rocrand_set_stream(rocrand_generator generator, hipStream_t stream);
238 // CHECK: status = rocrand_set_stream(randGenerator, stream);
239 status = curandSetStream(randGenerator, stream);
240
241 // CUDA: curandStatus_t CURANDAPI curandCreatePoissonDistribution(double lambda, curandDiscreteDistribution_t *discrete_distribution);
242 // ROC: rocrand_status ROCRANDAPI rocrand_create_poisson_distribution(double lambda, rocrand_discrete_distribution * discrete_distribution);
243 // CHECK: status = rocrand_create_poisson_distribution(dlambda, &discreteDistribution_t);
244 status = curandCreatePoissonDistribution(dlambda, &discreteDistribution_t);
245
246 // CUDA: curandStatus_t CURANDAPI curandDestroyDistribution(curandDiscreteDistribution_t discrete_distribution);
247 // ROC: rocrand_status ROCRANDAPI rocrand_destroy_discrete_distribution(rocrand_discrete_distribution discrete_distribution);
248 // CHECK: status = rocrand_destroy_discrete_distribution(discreteDistribution_t);
249 status = curandDestroyDistribution(discreteDistribution_t);
250
251 // CUDA: curandStatus_t CURANDAPI curandGetScrambleConstants32(unsigned int * * constants);
252 // ROC: rocrand_status ROCRANDAPI rocrand_get_scramble_constants32(const unsigned int** constants);
253 // CHECK: status = rocrand_get_scramble_constants32(&constants);
254 status = curandGetScrambleConstants32(&constants);
255
256 // CUDA: curandStatus_t CURANDAPI curandGetScrambleConstants64(unsigned long long * * constants);
257 // ROC: rocrand_status ROCRANDAPI rocrand_get_scramble_constants64(const unsigned long long** constants);
258 // CHECK: status = rocrand_get_scramble_constants64(&constantsLL);
259 status = curandGetScrambleConstants64(&constantsLL);
260
261 // CUDA: curandStatus_t CURANDAPI curandGetVersion(int *version);
262 // ROC: rocrand_status ROCRANDAPI rocrand_get_version(int * version);
263 // CHECK: status = rocrand_get_version(&version);
264 status = curandGetVersion(&version);
265
266 // CUDA: curandStatus_t CURANDAPI curandSetGeneratorOrdering(curandGenerator_t generator, curandOrdering_t order);
267 // ROC: rocrand_status ROCRANDAPI rocrand_set_ordering(rocrand_generator generator, rocrand_ordering order);
268 // CHECK: status = rocrand_set_ordering(randGenerator, randOrdering);
269 status = curandSetGeneratorOrdering(randGenerator, randOrdering);
270
271 // CUDA: curandStatus_t CURANDAPI curandSetQuasiRandomGeneratorDimensions(curandGenerator_t generator, unsigned int num_dimensions);
272 // ROC: rocrand_status ROCRANDAPI rocrand_set_quasi_random_generator_dimensions(rocrand_generator generator, unsigned int dimensions);
273 // CHECK: status = rocrand_set_quasi_random_generator_dimensions(randGenerator, num_dimensions);
274 status = curandSetQuasiRandomGeneratorDimensions(randGenerator, num_dimensions);
275
276 #if CUDA_VERSION >= 11000 && CURAND_VERSION >= 10200
277 // CHECK: rocrand_ordering RAND_ORDERING_PSEUDO_LEGACY = ROCRAND_ORDERING_PSEUDO_LEGACY;
278 curandOrdering_t RAND_ORDERING_PSEUDO_LEGACY = CURAND_ORDERING_PSEUDO_LEGACY;
279 #endif
280
281 #if CUDA_VERSION >= 11050 && CURAND_VERSION >= 10207
282 // CHECK: rocrand_ordering RAND_ORDERING_PSEUDO_DYNAMIC = ROCRAND_ORDERING_PSEUDO_DYNAMIC;
283 curandOrdering_t RAND_ORDERING_PSEUDO_DYNAMIC = CURAND_ORDERING_PSEUDO_DYNAMIC;
284 #endif
285
286 return 0;
287 }