diff --git a/bin/hipify-perl b/bin/hipify-perl index a5344d8a..d05d3b79 100755 --- a/bin/hipify-perl +++ b/bin/hipify-perl @@ -8420,6 +8420,7 @@ sub warnUnsupportedFunctions { "cudaLaunchAttributePriority", "cudaLaunchAttributeMemSyncDomainMap", "cudaLaunchAttributeMemSyncDomain", + "cudaLaunchAttributeLaunchCompletionEvent", "cudaLaunchAttributeIgnore", "cudaLaunchAttributeID", "cudaLaunchAttributeCooperative", @@ -8460,6 +8461,9 @@ sub warnUnsupportedFunctions { "cudaGraphicsCubeFace", "cudaGraphNodeSetParams", "cudaGraphNodeParams", + "cudaGraphKernelNodePortProgrammatic", + "cudaGraphKernelNodePortLaunchCompletion", + "cudaGraphKernelNodePortDefault", "cudaGraphInstantiateWithParams", "cudaGraphInstantiateSuccess", "cudaGraphInstantiateResult", @@ -8474,6 +8478,13 @@ sub warnUnsupportedFunctions { "cudaGraphExecUpdateErrorAttributesChanged", "cudaGraphExecNodeSetParams", "cudaGraphExecGetFlags", + "cudaGraphEdgeData_st", + "cudaGraphEdgeData", + "cudaGraphDependencyType_enum", + "cudaGraphDependencyTypeProgrammatic", + "cudaGraphDependencyTypeDefault", + "cudaGraphDependencyType", + "cudaGraphDebugDotFlagsConditionalNodeParams", "cudaGraphConditionalNodeType", "cudaGraphConditionalHandleFlags", "cudaGraphConditionalHandle", diff --git a/docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md b/docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md index 0ec069cf..16a1c541 100644 --- a/docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md +++ b/docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md @@ -1109,6 +1109,7 @@ |`cudaGraphConditionalHandleFlags`|12.3| | | | | | | | | | |`cudaGraphConditionalNodeType`|12.3| | | | | | | | | | |`cudaGraphDebugDotFlags`|11.3| | | |`hipGraphDebugDotFlags`|5.5.0| | | | | +|`cudaGraphDebugDotFlagsConditionalNodeParams`|12.3| | | | | | | | | | |`cudaGraphDebugDotFlagsEventNodeParams`|11.3| | | |`hipGraphDebugDotFlagsEventNodeParams`|5.5.0| | | | | |`cudaGraphDebugDotFlagsExtSemasSignalNodeParams`|11.3| | | |`hipGraphDebugDotFlagsExtSemasSignalNodeParams`|5.5.0| | | | | |`cudaGraphDebugDotFlagsExtSemasWaitNodeParams`|11.3| | | |`hipGraphDebugDotFlagsExtSemasWaitNodeParams`|5.5.0| | | | | @@ -1119,6 +1120,12 @@ |`cudaGraphDebugDotFlagsMemcpyNodeParams`|11.3| | | |`hipGraphDebugDotFlagsMemcpyNodeParams`|5.5.0| | | | | |`cudaGraphDebugDotFlagsMemsetNodeParams`|11.3| | | |`hipGraphDebugDotFlagsMemsetNodeParams`|5.5.0| | | | | |`cudaGraphDebugDotFlagsVerbose`|11.3| | | |`hipGraphDebugDotFlagsVerbose`|5.5.0| | | | | +|`cudaGraphDependencyType`|12.3| | | | | | | | | | +|`cudaGraphDependencyTypeDefault`|12.3| | | | | | | | | | +|`cudaGraphDependencyTypeProgrammatic`|12.3| | | | | | | | | | +|`cudaGraphDependencyType_enum`|12.3| | | | | | | | | | +|`cudaGraphEdgeData`|12.3| | | | | | | | | | +|`cudaGraphEdgeData_st`|12.3| | | | | | | | | | |`cudaGraphExecUpdateError`|10.2| | | |`hipGraphExecUpdateError`|4.3.0| | | | | |`cudaGraphExecUpdateErrorAttributesChanged`|11.6| | | | | | | | | | |`cudaGraphExecUpdateErrorFunctionChanged`|10.2| | | |`hipGraphExecUpdateErrorFunctionChanged`|4.3.0| | | | | @@ -1145,6 +1152,9 @@ |`cudaGraphInstantiateParams_st`|12.0| | | | | | | | | | |`cudaGraphInstantiateResult`|12.0| | | | | | | | | | |`cudaGraphInstantiateSuccess`|12.0| | | | | | | | | | +|`cudaGraphKernelNodePortDefault`|12.3| | | | | | | | | | +|`cudaGraphKernelNodePortLaunchCompletion`|12.3| | | | | | | | | | +|`cudaGraphKernelNodePortProgrammatic`|12.3| | | | | | | | | | |`cudaGraphMemAttrReservedMemCurrent`|11.4| | | |`hipGraphMemAttrReservedMemCurrent`|5.3.0| | | | | |`cudaGraphMemAttrReservedMemHigh`|11.4| | | |`hipGraphMemAttrReservedMemHigh`|5.3.0| | | | | |`cudaGraphMemAttrUsedMemCurrent`|11.4| | | |`hipGraphMemAttrUsedMemCurrent`|5.3.0| | | | | @@ -1227,6 +1237,7 @@ |`cudaLaunchAttributeCooperative`|11.8| | | | | | | | | | |`cudaLaunchAttributeID`|11.8| | | | | | | | | | |`cudaLaunchAttributeIgnore`|11.8| | | | | | | | | | +|`cudaLaunchAttributeLaunchCompletionEvent`|12.3| | | | | | | | | | |`cudaLaunchAttributeMemSyncDomain`|12.0| | | | | | | | | | |`cudaLaunchAttributeMemSyncDomainMap`|12.0| | | | | | | | | | |`cudaLaunchAttributePriority`|11.8| | | | | | | | | | diff --git a/src/CUDA2HIP_Driver_API_types.cpp b/src/CUDA2HIP_Driver_API_types.cpp index 7dd61143..b12c79e8 100644 --- a/src/CUDA2HIP_Driver_API_types.cpp +++ b/src/CUDA2HIP_Driver_API_types.cpp @@ -428,9 +428,9 @@ const std::map CUDA_DRIVER_TYPE_NAME_MAP { // cudaConditionalNodeParams {"CUDA_CONDITIONAL_NODE_PARAMS", {"hipConditionalNodeParams", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, - // + // cudaGraphEdgeData_st {"CUgraphEdgeData_st", {"hipGraphEdgeData", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, - // + // cudaGraphEdgeData {"CUgraphEdgeData", {"hipGraphEdgeData", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 2. Unions @@ -2265,7 +2265,7 @@ const std::map CUDA_DRIVER_TYPE_NAME_MAP { {"CU_GRAPH_DEBUG_DOT_FLAGS_BATCH_MEM_OP_NODE_PARAMS", {"hipGraphDebugDotFlagsBatchMemOpNodeParams", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 1<<13 // {"CU_GRAPH_DEBUG_DOT_FLAGS_EXTRA_TOPO_INFO", {"hipGraphDebugDotFlagsExtraTopoInfo", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 1<<14 - // + // cudaGraphDebugDotFlagsConditionalNodeParams {"CU_GRAPH_DEBUG_DOT_FLAGS_CONDITIONAL_NODE_PARAMS", {"hipGraphDebugDotFlagsConditionalNodeParams", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 1<<15 // cudaUserObjectFlags @@ -2412,7 +2412,7 @@ const std::map CUDA_DRIVER_TYPE_NAME_MAP { {"CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP", {"hipLaunchAttributeMemSyncDomainMap", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // cudaLaunchAttributeMemSyncDomain {"CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN", {"hipLaunchAttributeMemSyncDomain", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, - // + // cudaLaunchAttributeLaunchCompletionEvent {"CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT", {"hipLaunchAttributeLaunchCompletionEvent", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // {"CU_LAUNCH_ATTRIBUTE_MAX", {"hipLaunchAttributeMax", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, @@ -2585,13 +2585,14 @@ const std::map CUDA_DRIVER_TYPE_NAME_MAP { // cudaGraphCondTypeWhile {"CU_GRAPH_COND_TYPE_WHILE", {"hipGraphCondTypeWhile", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, - // + // cudaGraphDependencyType {"CUgraphDependencyType", {"hipGraphDependencyType", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + // cudaGraphDependencyType_enum {"CUgraphDependencyType_enum", {"hipGraphDependencyType", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // CUgraphDependencyType enum values - // + // cudaGraphDependencyTypeDefault {"CU_GRAPH_DEPENDENCY_TYPE_DEFAULT", {"hipGraphDependencyTypeDefault", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, - // + // cudaGraphDependencyTypeProgrammatic {"CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC", {"hipGraphDependencyTypeProgrammatic", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 4. Typedefs @@ -2725,12 +2726,12 @@ const std::map CUDA_DRIVER_TYPE_NAME_MAP { {"CU_TENSOR_MAP_NUM_QWORDS", {"HIP_TENSOR_MAP_NUM_QWORDS", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 16 // {"CU_GRAPH_COND_ASSIGN_DEFAULT", {"HIP_GRAPH_COND_ASSIGN_DEFAULT", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 0x1 - // - {"CU_GRAPH_KERNEL_NODE_PORT_DEFAULT", {"HIP_GRAPH_KERNEL_NODE_PORT_DEFAULT", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 0 - // - {"CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC", {"HIP_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 1 - // - {"CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER", {"HIP_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 2 + // cudaGraphKernelNodePortDefault + {"CU_GRAPH_KERNEL_NODE_PORT_DEFAULT", {"hipGraphKernelNodePortDefault", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 0 + // cudaGraphKernelNodePortProgrammatic + {"CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC", {"hipGraphKernelNodePortProgrammatic", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 1 + // cudaGraphKernelNodePortLaunchCompletion + {"CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER", {"hipGraphKernelNodePortLaunchCompletion", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 2 }; const std::map CUDA_DRIVER_TYPE_NAME_VER_MAP { diff --git a/src/CUDA2HIP_Runtime_API_types.cpp b/src/CUDA2HIP_Runtime_API_types.cpp index d31ac765..f39c1278 100644 --- a/src/CUDA2HIP_Runtime_API_types.cpp +++ b/src/CUDA2HIP_Runtime_API_types.cpp @@ -263,6 +263,11 @@ const std::map CUDA_RUNTIME_TYPE_NAME_MAP { // CUDA_CONDITIONAL_NODE_PARAMS {"cudaConditionalNodeParams", {"hipConditionalNodeParams", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + // CUgraphEdgeData_st + {"cudaGraphEdgeData_st", {"hipGraphEdgeData", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + // CUgraphEdgeData + {"cudaGraphEdgeData", {"hipGraphEdgeData", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + // 2. Unions // CUstreamAttrValue @@ -1793,6 +1798,8 @@ const std::map CUDA_RUNTIME_TYPE_NAME_MAP { {"cudaGraphDebugDotFlagsKernelNodeAttributes", {"hipGraphDebugDotFlagsKernelNodeAttributes", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES}}, // 1<<9 // CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES {"cudaGraphDebugDotFlagsHandles", {"hipGraphDebugDotFlagsHandles", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES}}, // 1<<10 + // CU_GRAPH_DEBUG_DOT_FLAGS_CONDITIONAL_NODE_PARAMS + {"cudaGraphDebugDotFlagsConditionalNodeParams", {"hipGraphDebugDotFlagsConditionalNodeParams", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 1<<15 // CUgraphMem_attribute {"cudaGraphMemAttributeType", {"hipGraphMemAttributeType", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES}}, @@ -1853,6 +1860,8 @@ const std::map CUDA_RUNTIME_TYPE_NAME_MAP { {"cudaLaunchAttributeMemSyncDomainMap", {"hipLaunchAttributeMemSyncDomainMap", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN {"cudaLaunchAttributeMemSyncDomain", {"hipLaunchAttributeMemSyncDomain", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + // CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT + {"cudaLaunchAttributeLaunchCompletionEvent", {"hipLaunchAttributeLaunchCompletionEvent", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // CUgraphInstantiateResult {"cudaGraphInstantiateResult", {"hipGraphInstantiateResult", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, @@ -1905,6 +1914,16 @@ const std::map CUDA_RUNTIME_TYPE_NAME_MAP { // CU_GRAPH_COND_TYPE_WHILE {"cudaGraphCondTypeWhile", {"hipGraphCondTypeWhile", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + // CUgraphDependencyType + {"cudaGraphDependencyType", {"hipGraphDependencyType", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + // CUgraphDependencyType_enum + {"cudaGraphDependencyType_enum", {"hipGraphDependencyType", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + // CUgraphDependencyType enum values + // CU_GRAPH_DEPENDENCY_TYPE_DEFAULT + {"cudaGraphDependencyTypeDefault", {"hipGraphDependencyTypeDefault", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + // CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC + {"cudaGraphDependencyTypeProgrammatic", {"hipGraphDependencyTypeProgrammatic", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + // 4. Typedefs // CUhostFn @@ -2087,6 +2106,12 @@ const std::map CUDA_RUNTIME_TYPE_NAME_MAP { {"cudaStreamAttributeMemSyncDomainMap", {"hipStreamAttributeMemSyncDomainMap", "", CONV_DEFINE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // cudaLaunchAttributeMemSyncDomainMap // CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN {"cudaStreamAttributeMemSyncDomain", {"hipStreamAttributeMemSyncDomain", "", CONV_DEFINE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // cudaLaunchAttributeMemSyncDomain + // CU_GRAPH_KERNEL_NODE_PORT_DEFAULT + {"cudaGraphKernelNodePortDefault", {"hipGraphKernelNodePortDefault", "", CONV_DEFINE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 0 + // CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC + {"cudaGraphKernelNodePortProgrammatic", {"hipGraphKernelNodePortProgrammatic", "", CONV_DEFINE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 1 + // CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER + {"cudaGraphKernelNodePortLaunchCompletion", {"hipGraphKernelNodePortLaunchCompletion", "", CONV_DEFINE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 2 }; const std::map CUDA_RUNTIME_TYPE_NAME_VER_MAP { @@ -2634,6 +2659,17 @@ const std::map CUDA_RUNTIME_TYPE_NAME_VER_MAP {"cudaGraphCondTypeWhile", {CUDA_123, CUDA_0, CUDA_0 }}, {"cudaConditionalNodeParams", {CUDA_123, CUDA_0, CUDA_0 }}, {"cudaGraphNodeTypeConditional", {CUDA_123, CUDA_0, CUDA_0 }}, + {"cudaGraphDependencyType", {CUDA_123, CUDA_0, CUDA_0 }}, + {"cudaGraphDependencyType_enum", {CUDA_123, CUDA_0, CUDA_0 }}, + {"cudaGraphDependencyTypeDefault", {CUDA_123, CUDA_0, CUDA_0 }}, + {"cudaGraphDependencyTypeProgrammatic", {CUDA_123, CUDA_0, CUDA_0 }}, + {"cudaGraphEdgeData_st", {CUDA_123, CUDA_0, CUDA_0 }}, + {"cudaGraphEdgeData", {CUDA_123, CUDA_0, CUDA_0 }}, + {"cudaGraphKernelNodePortDefault", {CUDA_123, CUDA_0, CUDA_0 }}, + {"cudaGraphKernelNodePortProgrammatic", {CUDA_123, CUDA_0, CUDA_0 }}, + {"cudaGraphKernelNodePortLaunchCompletion", {CUDA_123, CUDA_0, CUDA_0 }}, + {"cudaGraphDebugDotFlagsConditionalNodeParams", {CUDA_123, CUDA_0, CUDA_0 }}, + {"cudaLaunchAttributeLaunchCompletionEvent", {CUDA_123, CUDA_0, CUDA_0 }}, }; const std::map HIP_RUNTIME_TYPE_NAME_VER_MAP {