diff --git a/projects/hip/hipify-clang/src/CUDA2HipMap.cpp b/projects/hip/hipify-clang/src/CUDA2HipMap.cpp index 7001deb2e7..35dab03430 100644 --- a/projects/hip/hipify-clang/src/CUDA2HipMap.cpp +++ b/projects/hip/hipify-clang/src/CUDA2HipMap.cpp @@ -2872,7 +2872,7 @@ const std::map CUDA_IDENTIFIER_MAP{ {"curand_uniform2_double", {"hiprand_uniform2_double", CONV_DEVICE_FUNC, API_RAND}}, {"curand_uniform4", {"hiprand_uniform4", CONV_DEVICE_FUNC, API_RAND}}, {"curand_uniform4_double", {"hiprand_uniform4_double", CONV_DEVICE_FUNC, API_RAND}}, - {"curand_discrete", {"hiprand_discrete4", CONV_DEVICE_FUNC, API_RAND}}, + {"curand_discrete", {"hiprand_discrete", CONV_DEVICE_FUNC, API_RAND}}, {"curand_discrete4", {"hiprand_discrete4", CONV_DEVICE_FUNC, API_RAND}}, {"curand_poisson", {"hiprand_poisson", CONV_DEVICE_FUNC, API_RAND}}, {"curand_poisson4", {"hiprand_poisson4", CONV_DEVICE_FUNC, API_RAND}}, diff --git a/projects/hip/tests/hipify-clang/cuRAND/benchmark_curand_kernel.cpp b/projects/hip/tests/hipify-clang/cuRAND/benchmark_curand_kernel.cpp index 2c77f25331..bdcf512993 100644 --- a/projects/hip/tests/hipify-clang/cuRAND/benchmark_curand_kernel.cpp +++ b/projects/hip/tests/hipify-clang/cuRAND/benchmark_curand_kernel.cpp @@ -510,7 +510,7 @@ void run_benchmarks(const cli::Parser& parser, run_benchmark(parser, // CHECK: [] __device__ (GeneratorState * state, hiprandDiscreteDistribution_t discrete_distribution) { [] __device__ (GeneratorState * state, curandDiscreteDistribution_t discrete_distribution) { - // CHECK: return hiprand_discrete4(state, discrete_distribution); + // CHECK: return hiprand_discrete(state, discrete_distribution); return curand_discrete(state, discrete_distribution); }, discrete_distribution );