Skip to content

Commit

Permalink
Merge pull request #1815 from emankov/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY] Formatting
  • Loading branch information
emankov authored Dec 30, 2024
2 parents 0ba9911 + c0b0882 commit eeebc6f
Show file tree
Hide file tree
Showing 15 changed files with 537 additions and 543 deletions.
90 changes: 45 additions & 45 deletions src/CUDA2HIP.cpp

Large diffs are not rendered by default.

405 changes: 202 additions & 203 deletions src/CUDA2HIP_BLAS_API_functions.cpp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/CUDA2HIP_BLAS_API_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2241,7 +2241,7 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_BLAS_TYPE_NAME_VER_MAP {
{"HIPBLASLT_MATMUL_PREF_SEARCH_MODE", {HIP_5050, HIP_0, HIP_0 }},
{"HIPBLASLT_MATMUL_PREF_MAX_WORKSPACE_BYTES", {HIP_5050, HIP_0, HIP_0 }},
{"hipblasLtMatmulHeuristicResult_t", {HIP_5050, HIP_0, HIP_0 }},
{"HIPBLASLT_MATMUL_DESC_AMAX_D_POINTER", {HIP_6020, HIP_0, HIP_0, }},
{"HIPBLASLT_MATMUL_DESC_AMAX_D_POINTER", {HIP_6020, HIP_0, HIP_0 }},

{"rocblas_handle", {HIP_1050, HIP_0, HIP_0 }},
{"_rocblas_handle", {HIP_1050, HIP_0, HIP_0 }},
Expand Down
1 change: 0 additions & 1 deletion src/CUDA2HIP_CAFFE2_API_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ const std::map<llvm::StringRef, cudaAPIversions> CUDA_CAFFE2_TYPE_NAME_VER_MAP {

const std::map<llvm::StringRef, hipAPIversions> HIP_CAFFE2_TYPE_NAME_VER_MAP {
};

1 change: 0 additions & 1 deletion src/CUDA2HIP_DNN_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ THE SOFTWARE.

// Map of all functions
const std::map<llvm::StringRef, hipCounter> CUDA_DNN_FUNCTION_MAP {

// NOTE: MIOPEN_EXPORT miopenStatus_t miopenGetVersion(size_t* major, size_t* minor, size_t* patch) and size_t CUDNNWINAPI cudnnGetVersion(void) have different signatures
{"cudnnGetVersion", {"hipdnnGetVersion", "", CONV_LIB_FUNC, API_DNN, 2, ROC_UNSUPPORTED}},
{"cudnnGetCudartVersion", {"hipdnnGetCudartVersion", "", CONV_LIB_FUNC, API_DNN, 2, UNSUPPORTED}},
Expand Down
20 changes: 10 additions & 10 deletions src/CUDA2HIP_Driver_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1655,16 +1655,16 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_DRIVER_FUNCTION_VER_MAP {
{"hipDrvGraphAddMemcpyNode", {HIP_6000, HIP_0, HIP_0 }},
{"hipDrvGraphAddMemsetNode", {HIP_6010, HIP_0, HIP_0 }},
{"hipTexRefGetBorderColor", {HIP_6010, HIP_6010, HIP_0 }},
{"hipMemcpyAtoD", {HIP_6020, HIP_0, HIP_0, }},
{"hipMemcpyDtoA", {HIP_6020, HIP_0, HIP_0, }},
{"hipMemcpyAtoA", {HIP_6020, HIP_0, HIP_0, }},
{"hipMemcpyAtoHAsync", {HIP_6020, HIP_0, HIP_0, }},
{"hipMemcpyHtoAAsync", {HIP_6020, HIP_0, HIP_0, }},
{"hipDrvGraphAddMemFreeNode", {HIP_6030, HIP_0, HIP_0, }},
{"hipDrvGraphMemcpyNodeGetParams", {HIP_6030, HIP_0, HIP_0, }},
{"hipDrvGraphMemcpyNodeSetParams", {HIP_6030, HIP_0, HIP_0, }},
{"hipDrvGraphExecMemcpyNodeSetParams", {HIP_6030, HIP_0, HIP_0, }},
{"hipDrvGraphExecMemsetNodeSetParams", {HIP_6030, HIP_0, HIP_0, }},
{"hipMemcpyAtoD", {HIP_6020, HIP_0, HIP_0 }},
{"hipMemcpyDtoA", {HIP_6020, HIP_0, HIP_0 }},
{"hipMemcpyAtoA", {HIP_6020, HIP_0, HIP_0 }},
{"hipMemcpyAtoHAsync", {HIP_6020, HIP_0, HIP_0 }},
{"hipMemcpyHtoAAsync", {HIP_6020, HIP_0, HIP_0 }},
{"hipDrvGraphAddMemFreeNode", {HIP_6030, HIP_0, HIP_0 }},
{"hipDrvGraphMemcpyNodeGetParams", {HIP_6030, HIP_0, HIP_0 }},
{"hipDrvGraphMemcpyNodeSetParams", {HIP_6030, HIP_0, HIP_0 }},
{"hipDrvGraphExecMemcpyNodeSetParams", {HIP_6030, HIP_0, HIP_0 }},
{"hipDrvGraphExecMemsetNodeSetParams", {HIP_6030, HIP_0, HIP_0 }},
{"hipStreamBatchMemOp", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipGraphAddBatchMemOpNode", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipGraphBatchMemOpNodeGetParams", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
Expand Down
10 changes: 5 additions & 5 deletions src/CUDA2HIP_Driver_API_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4298,12 +4298,12 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_DRIVER_TYPE_NAME_VER_MAP {
{"hipDeviceAttributeHostRegisterSupported", {HIP_6000, HIP_0, HIP_0 }},
{"hipExternalSemaphoreSignalNodeParams", {HIP_6000, HIP_0, HIP_0 }},
{"hipExternalSemaphoreWaitNodeParams", {HIP_6000, HIP_0, HIP_0 }},
{"hipDriverProcAddressQueryResult", {HIP_6020, HIP_0, HIP_0, }},
{"HIP_GET_PROC_ADDRESS_SUCCESS", {HIP_6020, HIP_0, HIP_0, }},
{"HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND", {HIP_6020, HIP_0, HIP_0, }},
{"HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT", {HIP_6020, HIP_0, HIP_0, }},
{"hipDriverProcAddressQueryResult", {HIP_6020, HIP_0, HIP_0 }},
{"HIP_GET_PROC_ADDRESS_SUCCESS", {HIP_6020, HIP_0, HIP_0 }},
{"HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND", {HIP_6020, HIP_0, HIP_0 }},
{"HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT", {HIP_6020, HIP_0, HIP_0 }},
{"HIP_MEMSET_NODE_PARAMS", {HIP_6010, HIP_0, HIP_0 }},
{"hipStreamLegacy", {HIP_6020, HIP_0, HIP_0, }},
{"hipStreamLegacy", {HIP_6020, HIP_0, HIP_0 }},
{"hipStreamBatchMemOpParams_union", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipStreamBatchMemOpParams", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipBatchMemOpNodeParams", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
Expand Down
1 change: 0 additions & 1 deletion src/CUDA2HIP_FFT_API_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ THE SOFTWARE.

// Map of all functions
const std::map<llvm::StringRef, hipCounter> CUDA_FFT_TYPE_NAME_MAP {

// cuFFT defines
{"CUFFT_FORWARD", {"HIPFFT_FORWARD", "", CONV_NUMERIC_LITERAL, API_FFT, 1}}, // -1
{"CUFFT_INVERSE", {"HIPFFT_BACKWARD", "", CONV_NUMERIC_LITERAL, API_FFT, 1}}, // 1
Expand Down
Loading

0 comments on commit eeebc6f

Please sign in to comment.