Skip to content

Commit

Permalink
[HIPIFY] Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
emankov committed Apr 11, 2024
1 parent f1e286e commit da08fa6
Show file tree
Hide file tree
Showing 17 changed files with 6,397 additions and 6,397 deletions.
886 changes: 443 additions & 443 deletions src/CUDA2HIP_BLAS_API_functions.cpp

Large diffs are not rendered by default.

458 changes: 229 additions & 229 deletions src/CUDA2HIP_BLAS_API_types.cpp

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions src/CUDA2HIP_CUB_API_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ const std::map<llvm::StringRef, cudaAPIversions> CUDA_CUB_TYPE_NAME_VER_MAP {
};

const std::map<llvm::StringRef, hipAPIversions> HIP_CUB_TYPE_NAME_VER_MAP {
{"HIPCUB_STDERR", {HIP_2050, HIP_0, HIP_0 }},
{"HipcubDebug", {HIP_2050, HIP_0, HIP_0 }},
{"_HipcubLog", {HIP_2050, HIP_0, HIP_0 }},
{"HIPCUB_RUNTIME_FUNCTION", {HIP_2050, HIP_0, HIP_0 }},
{"HIPCUB_WARP_THREADS", {HIP_2050, HIP_0, HIP_0 }},
{"HIPCUB_ARCH", {HIP_2050, HIP_0, HIP_0 }},
{"BEGIN_HIPCUB_NAMESPACE", {HIP_2050, HIP_0, HIP_0 }},
{"END_HIPCUB_NAMESPACE", {HIP_2050, HIP_0, HIP_0 }},
{"CUB_MAX", {HIP_4050, HIP_0, HIP_0 }},
{"CUB_MIN", {HIP_4050, HIP_0, HIP_0 }},
{"__HIPCUB_ALIGN_BYTES", {HIP_4050, HIP_0, HIP_0 }},
{"HIPCUB_STDERR", {HIP_2050, HIP_0, HIP_0 }},
{"HipcubDebug", {HIP_2050, HIP_0, HIP_0 }},
{"_HipcubLog", {HIP_2050, HIP_0, HIP_0 }},
{"HIPCUB_RUNTIME_FUNCTION", {HIP_2050, HIP_0, HIP_0 }},
{"HIPCUB_WARP_THREADS", {HIP_2050, HIP_0, HIP_0 }},
{"HIPCUB_ARCH", {HIP_2050, HIP_0, HIP_0 }},
{"BEGIN_HIPCUB_NAMESPACE", {HIP_2050, HIP_0, HIP_0 }},
{"END_HIPCUB_NAMESPACE", {HIP_2050, HIP_0, HIP_0 }},
{"CUB_MAX", {HIP_4050, HIP_0, HIP_0 }},
{"CUB_MIN", {HIP_4050, HIP_0, HIP_0 }},
{"__HIPCUB_ALIGN_BYTES", {HIP_4050, HIP_0, HIP_0 }},
};

const std::map<unsigned int, llvm::StringRef> CUDA_CUB_API_SECTION_MAP {
Expand Down
46 changes: 23 additions & 23 deletions src/CUDA2HIP_Complex_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,29 @@ THE SOFTWARE.

// Maps the names of CUDA Complex API functions to the corresponding HIP functions
const std::map<llvm::StringRef, hipCounter> CUDA_COMPLEX_FUNCTION_MAP {
{"cuCrealf", {"hipCrealf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCimagf", {"hipCimagf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"make_cuFloatComplex", {"make_hipFloatComplex", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuConjf", {"hipConjf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCaddf", {"hipCaddf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCsubf", {"hipCsubf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCmulf", {"hipCmulf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCdivf", {"hipCdivf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCabsf", {"hipCabsf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCreal", {"hipCreal", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCimag", {"hipCimag", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"make_cuDoubleComplex", {"make_hipDoubleComplex", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuConj", {"hipConj", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCadd", {"hipCadd", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCsub", {"hipCsub", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCmul", {"hipCmul", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCdiv", {"hipCdiv", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCabs", {"hipCabs", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"make_cuComplex", {"make_hipComplex", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuComplexFloatToDouble", {"hipComplexFloatToDouble", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuComplexDoubleToFloat", {"hipComplexDoubleToFloat", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCfmaf", {"hipCfmaf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCfma", {"hipCfma", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCrealf", {"hipCrealf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCimagf", {"hipCimagf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"make_cuFloatComplex", {"make_hipFloatComplex", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuConjf", {"hipConjf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCaddf", {"hipCaddf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCsubf", {"hipCsubf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCmulf", {"hipCmulf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCdivf", {"hipCdivf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCabsf", {"hipCabsf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCreal", {"hipCreal", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCimag", {"hipCimag", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"make_cuDoubleComplex", {"make_hipDoubleComplex", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuConj", {"hipConj", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCadd", {"hipCadd", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCsub", {"hipCsub", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCmul", {"hipCmul", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCdiv", {"hipCdiv", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCabs", {"hipCabs", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"make_cuComplex", {"make_hipComplex", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuComplexFloatToDouble", {"hipComplexFloatToDouble", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuComplexDoubleToFloat", {"hipComplexDoubleToFloat", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCfmaf", {"hipCfmaf", "", CONV_COMPLEX, API_COMPLEX, 2}},
{"cuCfma", {"hipCfma", "", CONV_COMPLEX, API_COMPLEX, 2}},
};

const std::map<llvm::StringRef, cudaAPIversions> CUDA_COMPLEX_FUNCTION_VER_MAP {
Expand Down
Loading

0 comments on commit da08fa6

Please sign in to comment.