Skip to content

Commit

Permalink
Merge pull request #1807 from emankov/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY][RT][6.4.0] Sync with `HIP LRT 6.4.0`
  • Loading branch information
emankov authored Dec 19, 2024
2 parents 5564e43 + ec11cdd commit 090ac82
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 26 deletions.
26 changes: 26 additions & 0 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -1398,15 +1398,28 @@ my %removed_funcs = (
);

my %experimental_funcs = (
"cudaEventRecordWithFlags" => "6.4.0",
"cudaErrorInvalidTexture" => "6.4.0",
"cudaErrorInvalidChannelDescriptor" => "6.4.0",
"cuStreamBatchMemOp_v2" => "6.4.0",
"cuStreamBatchMemOp" => "6.4.0",
"cuGraphExecBatchMemOpNodeSetParams" => "6.4.0",
"cuGraphBatchMemOpNodeSetParams" => "6.4.0",
"cuGraphBatchMemOpNodeGetParams" => "6.4.0",
"cuGraphAddBatchMemOpNode" => "6.4.0",
"cuEventRecordWithFlags" => "6.4.0",
"CUstreamBatchMemOpType_enum" => "6.4.0",
"CUstreamBatchMemOpType" => "6.4.0",
"CUstreamBatchMemOpParams_v1" => "6.4.0",
"CUstreamBatchMemOpParams_union" => "6.4.0",
"CUstreamBatchMemOpParams" => "6.4.0",
"CU_STREAM_MEM_OP_WRITE_VALUE_64" => "6.4.0",
"CU_STREAM_MEM_OP_WRITE_VALUE_32" => "6.4.0",
"CU_STREAM_MEM_OP_WAIT_VALUE_64" => "6.4.0",
"CU_STREAM_MEM_OP_WAIT_VALUE_32" => "6.4.0",
"CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES" => "6.4.0",
"CU_STREAM_MEM_OP_BARRIER" => "6.4.0",
"CU_GRAPH_NODE_TYPE_BATCH_MEM_OP" => "6.4.0",
"CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st" => "6.4.0",
"CUDA_BATCH_MEM_OP_NODE_PARAMS_v2" => "6.4.0",
"CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st" => "6.4.0",
Expand Down Expand Up @@ -1550,6 +1563,8 @@ sub subst {
}

sub experimentalSubstitutions {
subst("cuEventRecordWithFlags", "hipEventRecordWithFlags", "event");
subst("cudaEventRecordWithFlags", "hipEventRecordWithFlags", "event");
subst("cuStreamBatchMemOp", "hipStreamBatchMemOp", "stream_memory");
subst("cuStreamBatchMemOp_v2", "hipStreamBatchMemOp", "stream_memory");
subst("cuGraphAddBatchMemOpNode", "hipGraphAddBatchMemOpNode", "graph");
Expand All @@ -1565,6 +1580,17 @@ sub experimentalSubstitutions {
subst("CUstreamBatchMemOpParams", "hipStreamBatchMemOpParams", "type");
subst("CUstreamBatchMemOpParams_union", "hipStreamBatchMemOpParams_union", "type");
subst("CUstreamBatchMemOpParams_v1", "hipStreamBatchMemOpParams", "type");
subst("CUstreamBatchMemOpType", "hipStreamBatchMemOpType", "type");
subst("CUstreamBatchMemOpType_enum", "hipStreamBatchMemOpType", "type");
subst("CU_GRAPH_NODE_TYPE_BATCH_MEM_OP", "hipGraphNodeTypeBatchMemOp", "numeric_literal");
subst("CU_STREAM_MEM_OP_BARRIER", "hipStreamMemOpBarrier", "numeric_literal");
subst("CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES", "hipStreamMemOpFlushRemoteWrites", "numeric_literal");
subst("CU_STREAM_MEM_OP_WAIT_VALUE_32", "hipStreamMemOpWaitValue32", "numeric_literal");
subst("CU_STREAM_MEM_OP_WAIT_VALUE_64", "hipStreamMemOpWaitValue64", "numeric_literal");
subst("CU_STREAM_MEM_OP_WRITE_VALUE_32", "hipStreamMemOpWriteValue32", "numeric_literal");
subst("CU_STREAM_MEM_OP_WRITE_VALUE_64", "hipStreamMemOpWriteValue64", "numeric_literal");
subst("cudaErrorInvalidChannelDescriptor", "hipErrorInvalidChannelDescriptor", "numeric_literal");
subst("cudaErrorInvalidTexture", "hipErrorInvalidTexture", "numeric_literal");
}

sub rocSubstitutions {
Expand Down
20 changes: 10 additions & 10 deletions docs/tables/CUDA_Driver_API_functions_supported_by_HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@
|`CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH`|11.4| | | |`hipGraphMemAttrReservedMemHigh`|5.3.0| | | | |
|`CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT`|11.4| | | |`hipGraphMemAttrUsedMemCurrent`|5.3.0| | | | |
|`CU_GRAPH_MEM_ATTR_USED_MEM_HIGH`|11.4| | | |`hipGraphMemAttrUsedMemHigh`|5.3.0| | | | |
|`CU_GRAPH_NODE_TYPE_BATCH_MEM_OP`|11.7| | | | | | | | | |
|`CU_GRAPH_NODE_TYPE_BATCH_MEM_OP`|11.7| | | |`hipGraphNodeTypeBatchMemOp`|6.4.0| | | |6.4.0|
|`CU_GRAPH_NODE_TYPE_CONDITIONAL`|12.3| | | | | | | | | |
|`CU_GRAPH_NODE_TYPE_COUNT`|10.0| | |11.0|`hipGraphNodeTypeCount`|4.3.0| | | | |
|`CU_GRAPH_NODE_TYPE_EMPTY`|10.0| | | |`hipGraphNodeTypeEmpty`|4.3.0| | | | |
Expand Down Expand Up @@ -991,12 +991,12 @@
|`CU_STREAM_LEGACY`| | | | |`hipStreamLegacy`|6.2.0| | | | |
|`CU_STREAM_MEMORY_BARRIER_TYPE_GPU`|11.7| | | | | | | | | |
|`CU_STREAM_MEMORY_BARRIER_TYPE_SYS`|11.7| | | | | | | | | |
|`CU_STREAM_MEM_OP_BARRIER`|11.7| | | | | | | | | |
|`CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES`|8.0| | | | | | | | | |
|`CU_STREAM_MEM_OP_WAIT_VALUE_32`|8.0| | | | | | | | | |
|`CU_STREAM_MEM_OP_WAIT_VALUE_64`|9.0| | | | | | | | | |
|`CU_STREAM_MEM_OP_WRITE_VALUE_32`|8.0| | | | | | | | | |
|`CU_STREAM_MEM_OP_WRITE_VALUE_64`|9.0| | | | | | | | | |
|`CU_STREAM_MEM_OP_BARRIER`|11.7| | | |`hipStreamMemOpBarrier`|6.4.0| | | |6.4.0|
|`CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES`|8.0| | | |`hipStreamMemOpFlushRemoteWrites`|6.4.0| | | |6.4.0|
|`CU_STREAM_MEM_OP_WAIT_VALUE_32`|8.0| | | |`hipStreamMemOpWaitValue32`|6.4.0| | | |6.4.0|
|`CU_STREAM_MEM_OP_WAIT_VALUE_64`|9.0| | | |`hipStreamMemOpWaitValue64`|6.4.0| | | |6.4.0|
|`CU_STREAM_MEM_OP_WRITE_VALUE_32`|8.0| | | |`hipStreamMemOpWriteValue32`|6.4.0| | | |6.4.0|
|`CU_STREAM_MEM_OP_WRITE_VALUE_64`|9.0| | | |`hipStreamMemOpWriteValue64`|6.4.0| | | |6.4.0|
|`CU_STREAM_NON_BLOCKING`| | | | |`hipStreamNonBlocking`|1.6.0| | | | |
|`CU_STREAM_PER_THREAD`| | | | |`hipStreamPerThread`|4.5.0| | | | |
|`CU_STREAM_SET_CAPTURE_DEPENDENCIES`|11.3| | | |`hipStreamSetCaptureDependencies`|5.0.0| | | | |
Expand Down Expand Up @@ -1378,8 +1378,8 @@
|`CUstreamBatchMemOpParams`|8.0| | | |`hipStreamBatchMemOpParams`|6.4.0| | | |6.4.0|
|`CUstreamBatchMemOpParams_union`|8.0| | | |`hipStreamBatchMemOpParams_union`|6.4.0| | | |6.4.0|
|`CUstreamBatchMemOpParams_v1`|11.3| | | |`hipStreamBatchMemOpParams`|6.4.0| | | |6.4.0|
|`CUstreamBatchMemOpType`|8.0| | | | | | | | | |
|`CUstreamBatchMemOpType_enum`|8.0| | | | | | | | | |
|`CUstreamBatchMemOpType`|8.0| | | |`hipStreamBatchMemOpType`|6.4.0| | | |6.4.0|
|`CUstreamBatchMemOpType_enum`|8.0| | | |`hipStreamBatchMemOpType`|6.4.0| | | |6.4.0|
|`CUstreamCallback`| | | | |`hipStreamCallback_t`|1.6.0| | | | |
|`CUstreamCaptureMode`|10.1| | | |`hipStreamCaptureMode`|4.3.0| | | | |
|`CUstreamCaptureMode_enum`|10.1| | | |`hipStreamCaptureMode`|4.3.0| | | | |
Expand Down Expand Up @@ -1817,7 +1817,7 @@
|`cuEventElapsedTime`| | | | |`hipEventElapsedTime`|1.6.0| | | | |
|`cuEventQuery`| | | | |`hipEventQuery`|1.6.0| | | | |
|`cuEventRecord`| | | | |`hipEventRecord`|1.6.0| | | | |
|`cuEventRecordWithFlags`|11.1| | | | | | | | | |
|`cuEventRecordWithFlags`|11.1| | | |`hipEventRecordWithFlags`|6.4.0| | | |6.4.0|
|`cuEventSynchronize`| | | | |`hipEventSynchronize`|1.6.0| | | | |

## **20. External Resource Interoperability**
Expand Down
6 changes: 3 additions & 3 deletions docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
|`cudaEventElapsedTime`| | | | |`hipEventElapsedTime`|1.6.0| | | | |
|`cudaEventQuery`| | | | |`hipEventQuery`|1.6.0| | | | |
|`cudaEventRecord`| | | | |`hipEventRecord`|1.6.0| | | | |
|`cudaEventRecordWithFlags`|11.1| | | | | | | | | |
|`cudaEventRecordWithFlags`|11.1| | | |`hipEventRecordWithFlags`|6.4.0| | | |6.4.0|
|`cudaEventSynchronize`| | | | |`hipEventSynchronize`|1.6.0| | | | |

## **7. External Resource Interoperability**
Expand Down Expand Up @@ -1045,7 +1045,7 @@
|`cudaErrorInitializationError`| | | | |`hipErrorNotInitialized`|1.6.0| | | | |
|`cudaErrorInsufficientDriver`| | | | |`hipErrorInsufficientDriver`|1.7.0| | | | |
|`cudaErrorInvalidAddressSpace`| | | | | | | | | | |
|`cudaErrorInvalidChannelDescriptor`| | | | | | | | | | |
|`cudaErrorInvalidChannelDescriptor`| | | | |`hipErrorInvalidChannelDescriptor`|6.4.0| | | |6.4.0|
|`cudaErrorInvalidClusterSize`|11.8| | | | | | | | | |
|`cudaErrorInvalidConfiguration`| | | | |`hipErrorInvalidConfiguration`|1.6.0| | | | |
|`cudaErrorInvalidDevice`| | | | |`hipErrorInvalidDevice`|1.6.0| | | | |
Expand All @@ -1066,7 +1066,7 @@
|`cudaErrorInvalidSource`|10.1| | | |`hipErrorInvalidSource`|1.6.0| | | | |
|`cudaErrorInvalidSurface`| | | | | | | | | | |
|`cudaErrorInvalidSymbol`| | | | |`hipErrorInvalidSymbol`|1.6.0| | | | |
|`cudaErrorInvalidTexture`| | | | | | | | | | |
|`cudaErrorInvalidTexture`| | | | |`hipErrorInvalidTexture`|6.4.0| | | |6.4.0|
|`cudaErrorInvalidTextureBinding`| | | | | | | | | | |
|`cudaErrorInvalidValue`| | | | |`hipErrorInvalidValue`|1.6.0| | | | |
|`cudaErrorJitCompilationDisabled`|11.2| | | | | | | | | |
Expand Down
3 changes: 2 additions & 1 deletion src/CUDA2HIP_Driver_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ const std::map<llvm::StringRef, hipCounter> CUDA_DRIVER_FUNCTION_MAP {
// cudaEventSynchronize
{"cuEventSynchronize", {"hipEventSynchronize", "", CONV_EVENT, API_DRIVER, SEC::EVENT}},
// cudaEventRecordWithFlags
{"cuEventRecordWithFlags", {"hipEventRecordWithFlags", "", CONV_EVENT, API_DRIVER, SEC::EVENT, HIP_UNSUPPORTED}},
{"cuEventRecordWithFlags", {"hipEventRecordWithFlags", "", CONV_EVENT, API_DRIVER, SEC::EVENT, HIP_EXPERIMENTAL}},

// 20. External Resource Interoperability
// cudaDestroyExternalMemory
Expand Down Expand Up @@ -1670,6 +1670,7 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_DRIVER_FUNCTION_VER_MAP {
{"hipGraphBatchMemOpNodeGetParams", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipGraphBatchMemOpNodeSetParams", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipGraphExecBatchMemOpNodeSetParams", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipEventRecordWithFlags", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
};

const std::map<llvm::StringRef, cudaAPIChangedVersions> CUDA_DRIVER_FUNCTION_CHANGED_VER_MAP {
Expand Down
26 changes: 17 additions & 9 deletions src/CUDA2HIP_Driver_API_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ const std::map<llvm::StringRef, hipCounter> CUDA_DRIVER_TYPE_NAME_MAP {
// cudaGraphNodeTypeMemFree
{"CU_GRAPH_NODE_TYPE_MEM_FREE", {"hipGraphNodeTypeMemFree", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES}}, // 11
//
{"CU_GRAPH_NODE_TYPE_BATCH_MEM_OP", {"hipGraphNodeTypeBatchMemOp", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 12
{"CU_GRAPH_NODE_TYPE_BATCH_MEM_OP", {"hipGraphNodeTypeBatchMemOp", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 12
// cudaGraphNodeTypeConditional
{"CU_GRAPH_NODE_TYPE_CONDITIONAL", {"hipGraphNodeTypeConditional", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 13
// cudaGraphNodeTypeCount
Expand Down Expand Up @@ -1914,15 +1914,15 @@ const std::map<llvm::StringRef, hipCounter> CUDA_DRIVER_TYPE_NAME_MAP {
{"CU_STREAM_NON_BLOCKING", {"hipStreamNonBlocking", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES}}, // 0x1

// no analogue
{"CUstreamBatchMemOpType", {"hipStreamBatchMemOpType", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}},
{"CUstreamBatchMemOpType_enum", {"hipStreamBatchMemOpType", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}},
{"CUstreamBatchMemOpType", {"hipStreamBatchMemOpType", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}},
{"CUstreamBatchMemOpType_enum", {"hipStreamBatchMemOpType", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}},
// CUstreamBatchMemOpType enum values
{"CU_STREAM_MEM_OP_WAIT_VALUE_32", {"hipStreamBatchMemOpWaitValue32", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 1
{"CU_STREAM_MEM_OP_WRITE_VALUE_32", {"hipStreamBatchMemOpWriteValue32", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 2
{"CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES", {"hipStreamBatchMemOpFlushRemoteWrites", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 3
{"CU_STREAM_MEM_OP_WAIT_VALUE_64", {"hipStreamBatchMemOpWaitValue64", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 4
{"CU_STREAM_MEM_OP_WRITE_VALUE_64", {"hipStreamBatchMemOpWriteValue64", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 5
{"CU_STREAM_MEM_OP_BARRIER", {"hipStreamBatchMemOpBarrier", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 6
{"CU_STREAM_MEM_OP_WAIT_VALUE_32", {"hipStreamMemOpWaitValue32", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 1
{"CU_STREAM_MEM_OP_WRITE_VALUE_32", {"hipStreamMemOpWriteValue32", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 2
{"CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES", {"hipStreamMemOpFlushRemoteWrites", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 3
{"CU_STREAM_MEM_OP_WAIT_VALUE_64", {"hipStreamMemOpWaitValue64", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 4
{"CU_STREAM_MEM_OP_WRITE_VALUE_64", {"hipStreamMemOpWriteValue64", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 5
{"CU_STREAM_MEM_OP_BARRIER", {"hipStreamMemOpBarrier", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 6

// cudaStreamCaptureStatus
{"CUstreamCaptureStatus", {"hipStreamCaptureStatus", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES}},
Expand Down Expand Up @@ -4307,4 +4307,12 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_DRIVER_TYPE_NAME_VER_MAP {
{"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}},
{"hipStreamBatchMemOpType", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipStreamMemOpWaitValue32", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipStreamMemOpWriteValue32", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipStreamMemOpFlushRemoteWrites", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipStreamMemOpWaitValue64", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipStreamMemOpWriteValue64", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipStreamMemOpBarrier", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipGraphNodeTypeBatchMemOp", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
};
2 changes: 1 addition & 1 deletion src/CUDA2HIP_Runtime_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const std::map<llvm::StringRef, hipCounter> CUDA_RUNTIME_FUNCTION_MAP {
// cuEventSynchronize
{"cudaEventSynchronize", {"hipEventSynchronize", "", CONV_EVENT, API_RUNTIME, SEC::EVENT}},
// cuEventRecordWithFlags
{"cudaEventRecordWithFlags", {"hipEventRecordWithFlags", "", CONV_EVENT, API_RUNTIME, SEC::EVENT, HIP_UNSUPPORTED}},
{"cudaEventRecordWithFlags", {"hipEventRecordWithFlags", "", CONV_EVENT, API_RUNTIME, SEC::EVENT, HIP_EXPERIMENTAL}},

// 7. External Resource Interoperability
// cuDestroyExternalMemory
Expand Down
6 changes: 4 additions & 2 deletions src/CUDA2HIP_Runtime_API_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,11 +886,11 @@ const std::map<llvm::StringRef, hipCounter> CUDA_RUNTIME_TYPE_NAME_MAP {
// no analogue
{"cudaErrorInvalidDevicePointer", {"hipErrorInvalidDevicePointer", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, CUDA_DEPRECATED}}, // 17
// no analogue
{"cudaErrorInvalidTexture", {"hipErrorInvalidTexture", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 18
{"cudaErrorInvalidTexture", {"hipErrorInvalidTexture", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 18
// no analogue
{"cudaErrorInvalidTextureBinding", {"hipErrorInvalidTextureBinding", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 19
// no analogue
{"cudaErrorInvalidChannelDescriptor", {"hipErrorInvalidChannelDescriptor", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 20
{"cudaErrorInvalidChannelDescriptor", {"hipErrorInvalidChannelDescriptor", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 20
// no analogue
{"cudaErrorInvalidMemcpyDirection", {"hipErrorInvalidMemcpyDirection", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES}}, // 21
// Deprecated since CUDA 3.1
Expand Down Expand Up @@ -3202,4 +3202,6 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_RUNTIME_TYPE_NAME_VER_MAP {
{"HIP_TWO_TO_M1022", {HIP_5070, HIP_0, HIP_0 }},
{"HIP_TRIG_PLOSS", {HIP_5070, HIP_0, HIP_0 }},
{"HIP_DBL2INT_CVT", {HIP_5070, HIP_0, HIP_0 }},
{"hipErrorInvalidChannelDescriptor", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
{"hipErrorInvalidTexture", {HIP_6040, HIP_0, HIP_0, HIP_LATEST}},
};
Loading

0 comments on commit 090ac82

Please sign in to comment.