Skip to content

Commit

Permalink
[HIPIFY][RAND] Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
emankov committed Oct 18, 2024
1 parent e59e365 commit c634dd0
Show file tree
Hide file tree
Showing 2 changed files with 265 additions and 265 deletions.
100 changes: 50 additions & 50 deletions src/CUDA2HIP_RAND_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,59 +87,59 @@ const std::map<llvm::StringRef, hipCounter> CUDA_RAND_FUNCTION_MAP {
};

const std::map<llvm::StringRef, cudaAPIversions> CUDA_RAND_FUNCTION_VER_MAP {
{"curandGetProperty", {CUDA_80, CUDA_0, CUDA_0 }},
{"__curand_umul", {CUDA_115, CUDA_0, CUDA_0 }},
{"curandGetProperty", {CUDA_80, CUDA_0, CUDA_0, }},
{"__curand_umul", {CUDA_115, CUDA_0, CUDA_0, }},
};

const std::map<llvm::StringRef, hipAPIversions> HIP_RAND_FUNCTION_VER_MAP {
{"hiprandCreateGenerator", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandCreateGeneratorHost", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandCreatePoissonDistribution", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandDestroyDistribution", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandDestroyGenerator", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandGenerate", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandGenerateLogNormal", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandGenerateLogNormalDouble", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandGenerateNormal", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandGenerateNormalDouble", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandGeneratePoisson", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandGenerateSeeds", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandGenerateUniform", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandGenerateUniformDouble", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandGetVersion", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandSetGeneratorOffset", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandSetPseudoRandomGeneratorSeed", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandSetQuasiRandomGeneratorDimensions", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandSetStream", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandMakeMTGP32Constants", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandMakeMTGP32KernelState", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_init", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_log_normal", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_log_normal_double", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_log_normal2", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_log_normal2_double", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_log_normal4", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_log_normal4_double", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_normal", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_normal_double", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_normal2", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_normal2_double", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_normal4", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_normal4_double", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_uniform", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_uniform_double", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_uniform2_double", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_uniform4", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_uniform4_double", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_discrete", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_discrete4", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_poisson", {HIP_1050, HIP_0, HIP_0 }},
{"hiprand_poisson4", {HIP_1050, HIP_0, HIP_0 }},
{"hiprandGetDirectionVectors32", {HIP_6000, HIP_0, HIP_0 }},
{"hiprandGetDirectionVectors64", {HIP_6000, HIP_0, HIP_0 }},
{"hiprandGetScrambleConstants32", {HIP_6000, HIP_0, HIP_0 }},
{"hiprandGetScrambleConstants64", {HIP_6000, HIP_0, HIP_0 }},
{"hiprandCreateGenerator", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandCreateGeneratorHost", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandCreatePoissonDistribution", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandDestroyDistribution", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandDestroyGenerator", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandGenerate", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandGenerateLogNormal", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandGenerateLogNormalDouble", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandGenerateNormal", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandGenerateNormalDouble", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandGeneratePoisson", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandGenerateSeeds", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandGenerateUniform", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandGenerateUniformDouble", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandGetVersion", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandSetGeneratorOffset", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandSetPseudoRandomGeneratorSeed", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandSetQuasiRandomGeneratorDimensions", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandSetStream", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandMakeMTGP32Constants", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandMakeMTGP32KernelState", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_init", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_log_normal", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_log_normal_double", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_log_normal2", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_log_normal2_double", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_log_normal4", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_log_normal4_double", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_normal", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_normal_double", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_normal2", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_normal2_double", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_normal4", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_normal4_double", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_uniform", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_uniform_double", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_uniform2_double", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_uniform4", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_uniform4_double", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_discrete", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_discrete4", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_poisson", {HIP_1050, HIP_0, HIP_0, }},
{"hiprand_poisson4", {HIP_1050, HIP_0, HIP_0, }},
{"hiprandGetDirectionVectors32", {HIP_6000, HIP_0, HIP_0, }},
{"hiprandGetDirectionVectors64", {HIP_6000, HIP_0, HIP_0, }},
{"hiprandGetScrambleConstants32", {HIP_6000, HIP_0, HIP_0, }},
{"hiprandGetScrambleConstants64", {HIP_6000, HIP_0, HIP_0, }},
{"hiprandSetGeneratorOrdering", {HIP_6020, HIP_0, HIP_0, }},
{"hiprandGenerateLongLong", {HIP_5050, HIP_0, HIP_0, }},

Expand Down
Loading

0 comments on commit c634dd0

Please sign in to comment.