diff --git a/bin/hipify-perl b/bin/hipify-perl index 069f51dc..5cf4ca69 100755 --- a/bin/hipify-perl +++ b/bin/hipify-perl @@ -1423,6 +1423,15 @@ my %experimental_funcs = ( "cudaLaunchAttributeCooperative" => "6.2.0", "cudaLaunchAttributeAccessPolicyWindow" => "6.2.0", "cudaKernelNodeAttributePriority" => "6.2.0", + "cudaGraphKernelNodePortProgrammatic" => "6.2.0", + "cudaGraphKernelNodePortLaunchCompletion" => "6.2.0", + "cudaGraphKernelNodePortDefault" => "6.2.0", + "cudaGraphEdgeData_st" => "6.2.0", + "cudaGraphEdgeData" => "6.2.0", + "cudaGraphDependencyType_enum" => "6.2.0", + "cudaGraphDependencyTypeProgrammatic" => "6.2.0", + "cudaGraphDependencyTypeDefault" => "6.2.0", + "cudaGraphDependencyType" => "6.2.0", "cublasZgbmv_v2_64" => "6.2.0", "cublasZgbmv_64" => "6.2.0", "cublasSgbmv_v2_64" => "6.2.0", @@ -1435,6 +1444,10 @@ my %experimental_funcs = ( "CUlaunchAttributeValue" => "6.2.0", "CUlaunchAttributeID_enum" => "6.2.0", "CUlaunchAttributeID" => "6.2.0", + "CUgraphEdgeData_st" => "6.2.0", + "CUgraphEdgeData" => "6.2.0", + "CUgraphDependencyType_enum" => "6.2.0", + "CUgraphDependencyType" => "6.2.0", "CUdriverProcAddressQueryResult_enum" => "6.2.0", "CUdriverProcAddressQueryResult" => "6.2.0", "CU_STREAM_LEGACY" => "6.2.0", @@ -1442,6 +1455,11 @@ my %experimental_funcs = ( "CU_LAUNCH_ATTRIBUTE_COOPERATIVE" => "6.2.0", "CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW" => "6.2.0", "CU_KERNEL_NODE_ATTRIBUTE_PRIORITY" => "6.2.0", + "CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC" => "6.2.0", + "CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER" => "6.2.0", + "CU_GRAPH_KERNEL_NODE_PORT_DEFAULT" => "6.2.0", + "CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC" => "6.2.0", + "CU_GRAPH_DEPENDENCY_TYPE_DEFAULT" => "6.2.0", "CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT" => "6.2.0", "CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND" => "6.2.0", "CU_GET_PROC_ADDRESS_SUCCESS" => "6.2.0", @@ -1609,10 +1627,18 @@ sub experimentalSubstitutions { subst("cusolverDnXgetrs", "hipsolverDnXgetrs", "library"); subst("CUdriverProcAddressQueryResult", "hipDriverProcAddressQueryResult", "type"); subst("CUdriverProcAddressQueryResult_enum", "hipDriverProcAddressQueryResult", "type"); + subst("CUgraphDependencyType", "hipGraphDependencyType", "type"); + subst("CUgraphDependencyType_enum", "hipGraphDependencyType", "type"); + subst("CUgraphEdgeData", "hipGraphEdgeData", "type"); + subst("CUgraphEdgeData_st", "hipGraphEdgeData", "type"); subst("CUlaunchAttributeID", "hipLaunchAttributeID", "type"); subst("CUlaunchAttributeID_enum", "hipLaunchAttributeID", "type"); subst("CUlaunchAttributeValue", "hipLaunchAttributeValue", "type"); subst("CUlaunchAttributeValue_union", "hipLaunchAttributeValue", "type"); + subst("cudaGraphDependencyType", "hipGraphDependencyType", "type"); + subst("cudaGraphDependencyType_enum", "hipGraphDependencyType", "type"); + subst("cudaGraphEdgeData", "hipGraphEdgeData", "type"); + subst("cudaGraphEdgeData_st", "hipGraphEdgeData", "type"); subst("cudaLaunchAttributeID", "hipLaunchAttributeID", "type"); subst("cudaLaunchAttributeValue", "hipLaunchAttributeValue", "type"); subst("curandOrdering", "hiprandOrdering", "type"); @@ -1639,15 +1665,25 @@ sub experimentalSubstitutions { subst("CU_GET_PROC_ADDRESS_SUCCESS", "HIP_GET_PROC_ADDRESS_SUCCESS", "numeric_literal"); subst("CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND", "HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND", "numeric_literal"); subst("CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT", "HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT", "numeric_literal"); + subst("CU_GRAPH_DEPENDENCY_TYPE_DEFAULT", "hipGraphDependencyTypeDefault", "numeric_literal"); + subst("CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC", "hipGraphDependencyTypeProgrammatic", "numeric_literal"); subst("CU_KERNEL_NODE_ATTRIBUTE_PRIORITY", "hipKernelNodeAttributePriority", "numeric_literal"); subst("CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW", "hipLaunchAttributeAccessPolicyWindow", "numeric_literal"); subst("CU_LAUNCH_ATTRIBUTE_COOPERATIVE", "hipLaunchAttributeCooperative", "numeric_literal"); subst("CU_LAUNCH_ATTRIBUTE_PRIORITY", "hipLaunchAttributePriority", "numeric_literal"); + subst("cudaGraphDependencyTypeDefault", "hipGraphDependencyTypeDefault", "numeric_literal"); + subst("cudaGraphDependencyTypeProgrammatic", "hipGraphDependencyTypeProgrammatic", "numeric_literal"); subst("cudaKernelNodeAttributePriority", "hipKernelNodeAttributePriority", "numeric_literal"); subst("cudaLaunchAttributeAccessPolicyWindow", "hipLaunchAttributeAccessPolicyWindow", "numeric_literal"); subst("cudaLaunchAttributeCooperative", "hipLaunchAttributeCooperative", "numeric_literal"); subst("cudaLaunchAttributePriority", "hipLaunchAttributePriority", "numeric_literal"); + subst("CU_GRAPH_KERNEL_NODE_PORT_DEFAULT", "hipGraphKernelNodePortDefault", "define"); + subst("CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER", "hipGraphKernelNodePortLaunchCompletion", "define"); + subst("CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC", "hipGraphKernelNodePortProgrammatic", "define"); subst("CU_STREAM_LEGACY", "hipStreamLegacy", "define"); + subst("cudaGraphKernelNodePortDefault", "hipGraphKernelNodePortDefault", "define"); + subst("cudaGraphKernelNodePortLaunchCompletion", "hipGraphKernelNodePortLaunchCompletion", "define"); + subst("cudaGraphKernelNodePortProgrammatic", "hipGraphKernelNodePortProgrammatic", "define"); subst("cudaStreamLegacy", "hipStreamLegacy", "define"); } @@ -9093,9 +9129,6 @@ sub warnUnsupportedFunctions { "cudaGraphNodeGetDependentNodes_v2", "cudaGraphNodeGetDependencies_v2", "cudaGraphKernelNodeUpdate", - "cudaGraphKernelNodePortProgrammatic", - "cudaGraphKernelNodePortLaunchCompletion", - "cudaGraphKernelNodePortDefault", "cudaGraphKernelNodeFieldParam", "cudaGraphKernelNodeFieldInvalid", "cudaGraphKernelNodeFieldGridDim", @@ -9105,13 +9138,7 @@ sub warnUnsupportedFunctions { "cudaGraphExecUpdateResultInfo_st", "cudaGraphExecUpdateResultInfo", "cudaGraphExecUpdateErrorAttributesChanged", - "cudaGraphEdgeData_st", - "cudaGraphEdgeData", "cudaGraphDeviceNode_t", - "cudaGraphDependencyType_enum", - "cudaGraphDependencyTypeProgrammatic", - "cudaGraphDependencyTypeDefault", - "cudaGraphDependencyType", "cudaGraphDebugDotFlagsConditionalNodeParams", "cudaGraphConditionalNodeType", "cudaGraphConditionalHandleFlags", @@ -9838,12 +9865,8 @@ sub warnUnsupportedFunctions { "CUgraphExecUpdateResultInfo_v1", "CUgraphExecUpdateResultInfo_st", "CUgraphExecUpdateResultInfo", - "CUgraphEdgeData_st", - "CUgraphEdgeData", "CUgraphDeviceUpdatableNode_st", "CUgraphDeviceNode", - "CUgraphDependencyType_enum", - "CUgraphDependencyType", "CUgraphConditionalNodeType_enum", "CUgraphConditionalNodeType", "CUgraphConditionalHandle", @@ -10081,12 +10104,7 @@ sub warnUnsupportedFunctions { "CU_GREEN_CTX_DEFAULT_STREAM", "CU_GRAPH_NODE_TYPE_CONDITIONAL", "CU_GRAPH_NODE_TYPE_BATCH_MEM_OP", - "CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC", - "CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER", - "CU_GRAPH_KERNEL_NODE_PORT_DEFAULT", "CU_GRAPH_EXEC_UPDATE_ERROR_ATTRIBUTES_CHANGED", - "CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC", - "CU_GRAPH_DEPENDENCY_TYPE_DEFAULT", "CU_GRAPH_DEBUG_DOT_FLAGS_MEM_FREE_NODE_PARAMS", "CU_GRAPH_DEBUG_DOT_FLAGS_MEM_ALLOC_NODE_PARAMS", "CU_GRAPH_DEBUG_DOT_FLAGS_EXTRA_TOPO_INFO", diff --git a/docs/tables/CUDA_Driver_API_functions_supported_by_HIP.md b/docs/tables/CUDA_Driver_API_functions_supported_by_HIP.md index a4cca699..cc38f994 100644 --- a/docs/tables/CUDA_Driver_API_functions_supported_by_HIP.md +++ b/docs/tables/CUDA_Driver_API_functions_supported_by_HIP.md @@ -170,17 +170,17 @@ |`CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1`|11.3| | | |`hipExternalSemaphoreWaitNodeParams`|6.0.0| | | | | |`CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2`|12.2| | | |`hipExternalSemaphoreWaitNodeParams`|6.0.0| | | | | |`CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st`|12.2| | | |`hipExternalSemaphoreWaitNodeParams`|6.0.0| | | | | -|`CUDA_GRAPH_INSTANTIATE_ERROR`|12.0| | | |`hipGraphInstantiateError`|6.1.0| | | | | +|`CUDA_GRAPH_INSTANTIATE_ERROR`|12.0| | | |`hipGraphInstantiateError`|6.2.0| | | |6.2.0| |`CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH`|11.4| | | |`hipGraphInstantiateFlagAutoFreeOnLaunch`|5.2.0| | | | | |`CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH`|12.0| | | |`hipGraphInstantiateFlagDeviceLaunch`|5.6.0| | | | | |`CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD`|12.0| | | |`hipGraphInstantiateFlagUpload`|5.6.0| | | | | |`CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY`|11.7| | | |`hipGraphInstantiateFlagUseNodePriority`|5.6.0| | | | | -|`CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE`|12.0| | | |`hipGraphInstantiateInvalidStructure`|6.1.0| | | | | -|`CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED`|12.0| | | |`hipGraphInstantiateMultipleDevicesNotSupported`|6.1.0| | | | | -|`CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED`|12.0| | | |`hipGraphInstantiateNodeOperationNotSupported`|6.1.0| | | | | -|`CUDA_GRAPH_INSTANTIATE_PARAMS`|12.0| | | |`hipGraphInstantiateParams`|6.1.0| | | | | -|`CUDA_GRAPH_INSTANTIATE_PARAMS_st`|12.0| | | |`hipGraphInstantiateParams`|6.1.0| | | | | -|`CUDA_GRAPH_INSTANTIATE_SUCCESS`|12.0| | | |`hipGraphInstantiateSuccess`|6.1.0| | | | | +|`CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE`|12.0| | | |`hipGraphInstantiateInvalidStructure`|6.2.0| | | |6.2.0| +|`CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED`|12.0| | | |`hipGraphInstantiateMultipleDevicesNotSupported`|6.2.0| | | |6.2.0| +|`CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED`|12.0| | | |`hipGraphInstantiateNodeOperationNotSupported`|6.2.0| | | |6.2.0| +|`CUDA_GRAPH_INSTANTIATE_PARAMS`|12.0| | | |`hipGraphInstantiateParams`|6.2.0| | | |6.2.0| +|`CUDA_GRAPH_INSTANTIATE_PARAMS_st`|12.0| | | |`hipGraphInstantiateParams`|6.2.0| | | |6.2.0| +|`CUDA_GRAPH_INSTANTIATE_SUCCESS`|12.0| | | |`hipGraphInstantiateSuccess`|6.2.0| | | |6.2.0| |`CUDA_HOST_NODE_PARAMS`|10.0| | | |`hipHostNodeParams`|4.3.0| | | | | |`CUDA_HOST_NODE_PARAMS_st`|10.0| | | |`hipHostNodeParams`|4.3.0| | | | | |`CUDA_HOST_NODE_PARAMS_v1`|11.3| | | |`hipHostNodeParams`|4.3.0| | | | | @@ -678,8 +678,8 @@ |`CU_GRAPH_DEBUG_DOT_FLAGS_MEM_FREE_NODE_PARAMS`|11.4| | | | | | | | | | |`CU_GRAPH_DEBUG_DOT_FLAGS_RUNTIME_TYPES`|11.3| | | |`hipGraphDebugDotFlagsRuntimeTypes`| | | | | | |`CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE`|11.3| | | |`hipGraphDebugDotFlagsVerbose`|5.5.0| | | | | -|`CU_GRAPH_DEPENDENCY_TYPE_DEFAULT`|12.3| | | | | | | | | | -|`CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC`|12.3| | | | | | | | | | +|`CU_GRAPH_DEPENDENCY_TYPE_DEFAULT`|12.3| | | |`hipGraphDependencyTypeDefault`|6.2.0| | | |6.2.0| +|`CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC`|12.3| | | |`hipGraphDependencyTypeProgrammatic`|6.2.0| | | |6.2.0| |`CU_GRAPH_EXEC_UPDATE_ERROR`|10.2| | | |`hipGraphExecUpdateError`|4.3.0| | | | | |`CU_GRAPH_EXEC_UPDATE_ERROR_ATTRIBUTES_CHANGED`|11.6| | | | | | | | | | |`CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED`|10.2| | | |`hipGraphExecUpdateErrorFunctionChanged`|4.3.0| | | | | @@ -689,9 +689,9 @@ |`CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED`|10.2| | | |`hipGraphExecUpdateErrorTopologyChanged`|4.3.0| | | | | |`CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE`|11.2| | | |`hipGraphExecUpdateErrorUnsupportedFunctionChange`|4.3.0| | | | | |`CU_GRAPH_EXEC_UPDATE_SUCCESS`|10.2| | | |`hipGraphExecUpdateSuccess`|4.3.0| | | | | -|`CU_GRAPH_KERNEL_NODE_PORT_DEFAULT`|12.3| | | | | | | | | | -|`CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER`|12.3| | | | | | | | | | -|`CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC`|12.3| | | | | | | | | | +|`CU_GRAPH_KERNEL_NODE_PORT_DEFAULT`|12.3| | | |`hipGraphKernelNodePortDefault`|6.2.0| | | |6.2.0| +|`CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER`|12.3| | | |`hipGraphKernelNodePortLaunchCompletion`|6.2.0| | | |6.2.0| +|`CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC`|12.3| | | |`hipGraphKernelNodePortProgrammatic`|6.2.0| | | |6.2.0| |`CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT`|11.4| | | |`hipGraphMemAttrReservedMemCurrent`|5.3.0| | | | | |`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| | | | | @@ -1172,12 +1172,12 @@ |`CUgraphConditionalNodeType_enum`|12.3| | | | | | | | | | |`CUgraphDebugDot_flags`|11.3| | | |`hipGraphDebugDotFlags`|5.5.0| | | | | |`CUgraphDebugDot_flags_enum`|11.3| | | |`hipGraphDebugDotFlags`|5.5.0| | | | | -|`CUgraphDependencyType`|12.3| | | | | | | | | | -|`CUgraphDependencyType_enum`|12.3| | | | | | | | | | +|`CUgraphDependencyType`|12.3| | | |`hipGraphDependencyType`|6.2.0| | | |6.2.0| +|`CUgraphDependencyType_enum`|12.3| | | |`hipGraphDependencyType`|6.2.0| | | |6.2.0| |`CUgraphDeviceNode`|12.4| | | | | | | | | | |`CUgraphDeviceUpdatableNode_st`|12.4| | | | | | | | | | -|`CUgraphEdgeData`|12.3| | | | | | | | | | -|`CUgraphEdgeData_st`|12.3| | | | | | | | | | +|`CUgraphEdgeData`|12.3| | | |`hipGraphEdgeData`|6.2.0| | | |6.2.0| +|`CUgraphEdgeData_st`|12.3| | | |`hipGraphEdgeData`|6.2.0| | | |6.2.0| |`CUgraphExec`|10.0| | | |`hipGraphExec_t`|4.3.0| | | | | |`CUgraphExecUpdateResult`|10.2| | | |`hipGraphExecUpdateResult`|4.3.0| | | | | |`CUgraphExecUpdateResultInfo`|12.0| | | | | | | | | | @@ -1185,8 +1185,8 @@ |`CUgraphExecUpdateResultInfo_v1`|12.0| | | | | | | | | | |`CUgraphExecUpdateResult_enum`|10.2| | | |`hipGraphExecUpdateResult`|4.3.0| | | | | |`CUgraphExec_st`|10.0| | | |`hipGraphExec`|4.3.0| | | | | -|`CUgraphInstantiateResult`|12.0| | | |`hipGraphInstantiateResult`|6.1.0| | | | | -|`CUgraphInstantiateResult_enum`|12.0| | | |`hipGraphInstantiateResult`|6.1.0| | | | | +|`CUgraphInstantiateResult`|12.0| | | |`hipGraphInstantiateResult`|6.2.0| | | |6.2.0| +|`CUgraphInstantiateResult_enum`|12.0| | | |`hipGraphInstantiateResult`|6.2.0| | | |6.2.0| |`CUgraphInstantiate_flags`|11.4| | | |`hipGraphInstantiateFlags`|5.2.0| | | | | |`CUgraphInstantiate_flags_enum`|11.4| | | |`hipGraphInstantiateFlags`|5.2.0| | | | | |`CUgraphMem_attribute`|11.4| | | |`hipGraphMemAttributeType`|5.3.0| | | | | 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 039d4b81..42b21f9c 100644 --- a/docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md +++ b/docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md @@ -1140,13 +1140,13 @@ |`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| | | | | | | | | | +|`cudaGraphDependencyType`|12.3| | | |`hipGraphDependencyType`|6.2.0| | | |6.2.0| +|`cudaGraphDependencyTypeDefault`|12.3| | | |`hipGraphDependencyTypeDefault`|6.2.0| | | |6.2.0| +|`cudaGraphDependencyTypeProgrammatic`|12.3| | | |`hipGraphDependencyTypeProgrammatic`|6.2.0| | | |6.2.0| +|`cudaGraphDependencyType_enum`|12.3| | | |`hipGraphDependencyType`|6.2.0| | | |6.2.0| |`cudaGraphDeviceNode_t`|12.4| | | | | | | | | | -|`cudaGraphEdgeData`|12.3| | | | | | | | | | -|`cudaGraphEdgeData_st`|12.3| | | | | | | | | | +|`cudaGraphEdgeData`|12.3| | | |`hipGraphEdgeData`|6.2.0| | | |6.2.0| +|`cudaGraphEdgeData_st`|12.3| | | |`hipGraphEdgeData`|6.2.0| | | |6.2.0| |`cudaGraphExecUpdateError`|10.2| | | |`hipGraphExecUpdateError`|4.3.0| | | | | |`cudaGraphExecUpdateErrorAttributesChanged`|11.6| | | | | | | | | | |`cudaGraphExecUpdateErrorFunctionChanged`|10.2| | | |`hipGraphExecUpdateErrorFunctionChanged`|4.3.0| | | | | @@ -1160,27 +1160,27 @@ |`cudaGraphExecUpdateResultInfo_st`|12.0| | | | | | | | | | |`cudaGraphExecUpdateSuccess`|10.2| | | |`hipGraphExecUpdateSuccess`|4.3.0| | | | | |`cudaGraphExec_t`|10.0| | | |`hipGraphExec_t`|4.3.0| | | | | -|`cudaGraphInstantiateError`|12.0| | | |`hipGraphInstantiateError`|6.1.0| | | | | +|`cudaGraphInstantiateError`|12.0| | | |`hipGraphInstantiateError`|6.2.0| | | |6.2.0| |`cudaGraphInstantiateFlagAutoFreeOnLaunch`|11.4| | | |`hipGraphInstantiateFlagAutoFreeOnLaunch`|5.2.0| | | | | |`cudaGraphInstantiateFlagDeviceLaunch`|12.0| | | |`hipGraphInstantiateFlagDeviceLaunch`|5.6.0| | | | | |`cudaGraphInstantiateFlagUpload`|12.0| | | |`hipGraphInstantiateFlagUpload`|5.6.0| | | | | |`cudaGraphInstantiateFlagUseNodePriority`|11.7| | | |`hipGraphInstantiateFlagUseNodePriority`|5.6.0| | | | | |`cudaGraphInstantiateFlags`|11.4| | | |`hipGraphInstantiateFlags`|5.2.0| | | | | -|`cudaGraphInstantiateInvalidStructure`|12.0| | | |`hipGraphInstantiateInvalidStructure`|6.1.0| | | | | -|`cudaGraphInstantiateMultipleDevicesNotSupported`|12.0| | | |`hipGraphInstantiateMultipleDevicesNotSupported`|6.1.0| | | | | -|`cudaGraphInstantiateNodeOperationNotSupported`|12.0| | | |`hipGraphInstantiateNodeOperationNotSupported`|6.1.0| | | | | -|`cudaGraphInstantiateParams`|12.0| | | |`hipGraphInstantiateParams`|6.1.0| | | | | -|`cudaGraphInstantiateParams_st`|12.0| | | |`hipGraphInstantiateParams`|6.1.0| | | | | -|`cudaGraphInstantiateResult`|12.0| | | |`hipGraphInstantiateResult`|6.1.0| | | | | -|`cudaGraphInstantiateSuccess`|12.0| | | |`hipGraphInstantiateSuccess`|6.1.0| | | | | +|`cudaGraphInstantiateInvalidStructure`|12.0| | | |`hipGraphInstantiateInvalidStructure`|6.2.0| | | |6.2.0| +|`cudaGraphInstantiateMultipleDevicesNotSupported`|12.0| | | |`hipGraphInstantiateMultipleDevicesNotSupported`|6.2.0| | | |6.2.0| +|`cudaGraphInstantiateNodeOperationNotSupported`|12.0| | | |`hipGraphInstantiateNodeOperationNotSupported`|6.2.0| | | |6.2.0| +|`cudaGraphInstantiateParams`|12.0| | | |`hipGraphInstantiateParams`|6.2.0| | | |6.2.0| +|`cudaGraphInstantiateParams_st`|12.0| | | |`hipGraphInstantiateParams`|6.2.0| | | |6.2.0| +|`cudaGraphInstantiateResult`|12.0| | | |`hipGraphInstantiateResult`|6.2.0| | | |6.2.0| +|`cudaGraphInstantiateSuccess`|12.0| | | |`hipGraphInstantiateSuccess`|6.2.0| | | |6.2.0| |`cudaGraphKernelNodeField`|12.4| | | | | | | | | | |`cudaGraphKernelNodeFieldEnabled`|12.4| | | | | | | | | | |`cudaGraphKernelNodeFieldGridDim`|12.4| | | | | | | | | | |`cudaGraphKernelNodeFieldInvalid`|12.4| | | | | | | | | | |`cudaGraphKernelNodeFieldParam`|12.4| | | | | | | | | | -|`cudaGraphKernelNodePortDefault`|12.3| | | | | | | | | | -|`cudaGraphKernelNodePortLaunchCompletion`|12.3| | | | | | | | | | -|`cudaGraphKernelNodePortProgrammatic`|12.3| | | | | | | | | | +|`cudaGraphKernelNodePortDefault`|12.3| | | |`hipGraphKernelNodePortDefault`|6.2.0| | | |6.2.0| +|`cudaGraphKernelNodePortLaunchCompletion`|12.3| | | |`hipGraphKernelNodePortLaunchCompletion`|6.2.0| | | |6.2.0| +|`cudaGraphKernelNodePortProgrammatic`|12.3| | | |`hipGraphKernelNodePortProgrammatic`|6.2.0| | | |6.2.0| |`cudaGraphKernelNodeUpdate`|12.4| | | | | | | | | | |`cudaGraphMemAttrReservedMemCurrent`|11.4| | | |`hipGraphMemAttrReservedMemCurrent`|5.3.0| | | | | |`cudaGraphMemAttrReservedMemHigh`|11.4| | | |`hipGraphMemAttrReservedMemHigh`|5.3.0| | | | | diff --git a/src/CUDA2HIP_Driver_API_types.cpp b/src/CUDA2HIP_Driver_API_types.cpp index c6e3d5b2..fdb16a21 100644 --- a/src/CUDA2HIP_Driver_API_types.cpp +++ b/src/CUDA2HIP_Driver_API_types.cpp @@ -429,9 +429,9 @@ const std::map CUDA_DRIVER_TYPE_NAME_MAP { {"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}}, + {"CUgraphEdgeData_st", {"hipGraphEdgeData", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // cudaGraphEdgeData - {"CUgraphEdgeData", {"hipGraphEdgeData", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + {"CUgraphEdgeData", {"hipGraphEdgeData", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // CUgraphDeviceUpdatableNode_st {"CUgraphDeviceUpdatableNode_st", {"hipGraphDeviceUpdatableNode", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, @@ -2625,14 +2625,14 @@ const std::map CUDA_DRIVER_TYPE_NAME_MAP { {"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}}, + {"CUgraphDependencyType", {"hipGraphDependencyType", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // cudaGraphDependencyType_enum - {"CUgraphDependencyType_enum", {"hipGraphDependencyType", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + {"CUgraphDependencyType_enum", {"hipGraphDependencyType", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // CUgraphDependencyType enum values // cudaGraphDependencyTypeDefault - {"CU_GRAPH_DEPENDENCY_TYPE_DEFAULT", {"hipGraphDependencyTypeDefault", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + {"CU_GRAPH_DEPENDENCY_TYPE_DEFAULT", {"hipGraphDependencyTypeDefault", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // cudaGraphDependencyTypeProgrammatic - {"CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC", {"hipGraphDependencyTypeProgrammatic", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + {"CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC", {"hipGraphDependencyTypeProgrammatic", "", CONV_NUMERIC_LITERAL, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // {"CUasyncNotificationType", {"hipAsyncNotificationType", "", CONV_TYPE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, @@ -2809,11 +2809,11 @@ const std::map CUDA_DRIVER_TYPE_NAME_MAP { // {"CU_GRAPH_COND_ASSIGN_DEFAULT", {"HIP_GRAPH_COND_ASSIGN_DEFAULT", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 0x1 // cudaGraphKernelNodePortDefault - {"CU_GRAPH_KERNEL_NODE_PORT_DEFAULT", {"hipGraphKernelNodePortDefault", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 0 + {"CU_GRAPH_KERNEL_NODE_PORT_DEFAULT", {"hipGraphKernelNodePortDefault", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 0 // cudaGraphKernelNodePortProgrammatic - {"CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC", {"hipGraphKernelNodePortProgrammatic", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 1 + {"CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC", {"hipGraphKernelNodePortProgrammatic", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 1 // cudaGraphKernelNodePortLaunchCompletion - {"CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER", {"hipGraphKernelNodePortLaunchCompletion", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 2 + {"CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER", {"hipGraphKernelNodePortLaunchCompletion", "", CONV_DEFINE, API_DRIVER, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 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 a72d9b09..c3ff5ce4 100644 --- a/src/CUDA2HIP_Runtime_API_types.cpp +++ b/src/CUDA2HIP_Runtime_API_types.cpp @@ -264,9 +264,9 @@ const std::map CUDA_RUNTIME_TYPE_NAME_MAP { {"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}}, + {"cudaGraphEdgeData_st", {"hipGraphEdgeData", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // CUgraphEdgeData - {"cudaGraphEdgeData", {"hipGraphEdgeData", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + {"cudaGraphEdgeData", {"hipGraphEdgeData", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // no analogue {"cudaGraphKernelNodeUpdate", {"hipGraphKernelNodeUpdate", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, @@ -1930,14 +1930,14 @@ const std::map CUDA_RUNTIME_TYPE_NAME_MAP { {"cudaGraphCondTypeWhile", {"hipGraphCondTypeWhile", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // CUgraphDependencyType - {"cudaGraphDependencyType", {"hipGraphDependencyType", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + {"cudaGraphDependencyType", {"hipGraphDependencyType", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // CUgraphDependencyType_enum - {"cudaGraphDependencyType_enum", {"hipGraphDependencyType", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + {"cudaGraphDependencyType_enum", {"hipGraphDependencyType", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // CUgraphDependencyType enum values // CU_GRAPH_DEPENDENCY_TYPE_DEFAULT - {"cudaGraphDependencyTypeDefault", {"hipGraphDependencyTypeDefault", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + {"cudaGraphDependencyTypeDefault", {"hipGraphDependencyTypeDefault", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC - {"cudaGraphDependencyTypeProgrammatic", {"hipGraphDependencyTypeProgrammatic", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, + {"cudaGraphDependencyTypeProgrammatic", {"hipGraphDependencyTypeProgrammatic", "", CONV_NUMERIC_LITERAL, API_RUNTIME, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // no analogue {"cudaGraphKernelNodeField", {"hipGraphKernelNodeField", "", CONV_TYPE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, @@ -2137,11 +2137,11 @@ const std::map CUDA_RUNTIME_TYPE_NAME_MAP { // 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 + {"cudaGraphKernelNodePortDefault", {"hipGraphKernelNodePortDefault", "", CONV_DEFINE, API_RUNTIME, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 0 // CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC - {"cudaGraphKernelNodePortProgrammatic", {"hipGraphKernelNodePortProgrammatic", "", CONV_DEFINE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 1 + {"cudaGraphKernelNodePortProgrammatic", {"hipGraphKernelNodePortProgrammatic", "", CONV_DEFINE, API_RUNTIME, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 1 // CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER - {"cudaGraphKernelNodePortLaunchCompletion", {"hipGraphKernelNodePortLaunchCompletion", "", CONV_DEFINE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, // 2 + {"cudaGraphKernelNodePortLaunchCompletion", {"hipGraphKernelNodePortLaunchCompletion", "", CONV_DEFINE, API_RUNTIME, SEC::DATA_TYPES, HIP_EXPERIMENTAL}}, // 2 // {"cudaKernelNodeAttributeDeviceUpdatableKernelNode", {"hipKernelNodeAttributeDeviceUpdatableKernelNode", "", CONV_DEFINE, API_RUNTIME, SEC::DATA_TYPES, HIP_UNSUPPORTED}}, }; @@ -2964,13 +2964,13 @@ const std::map HIP_RUNTIME_TYPE_NAME_VER_MAP { {"hipGPUDirectRDMAWritesOrderingNone", {HIP_6010, HIP_0, HIP_0 }}, {"hipGPUDirectRDMAWritesOrderingOwner", {HIP_6010, HIP_0, HIP_0 }}, {"hipGPUDirectRDMAWritesOrderingAllDevices", {HIP_6010, HIP_0, HIP_0 }}, - {"hipGraphInstantiateResult", {HIP_6010, HIP_0, HIP_0 }}, - {"hipGraphInstantiateSuccess", {HIP_6010, HIP_0, HIP_0 }}, - {"hipGraphInstantiateError", {HIP_6010, HIP_0, HIP_0 }}, - {"hipGraphInstantiateInvalidStructure", {HIP_6010, HIP_0, HIP_0 }}, - {"hipGraphInstantiateNodeOperationNotSupported", {HIP_6010, HIP_0, HIP_0 }}, - {"hipGraphInstantiateMultipleDevicesNotSupported", {HIP_6010, HIP_0, HIP_0 }}, - {"hipGraphInstantiateParams", {HIP_6010, HIP_0, HIP_0 }}, + {"hipGraphInstantiateResult", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphInstantiateSuccess", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphInstantiateError", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphInstantiateInvalidStructure", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphInstantiateNodeOperationNotSupported", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphInstantiateMultipleDevicesNotSupported", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphInstantiateParams", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, {"hipMemcpyNodeParams", {HIP_6010, HIP_0, HIP_0 }}, {"hipChildGraphNodeParams", {HIP_6010, HIP_0, HIP_0 }}, {"hipEventWaitNodeParams", {HIP_6010, HIP_0, HIP_0 }}, @@ -2983,4 +2983,11 @@ const std::map HIP_RUNTIME_TYPE_NAME_VER_MAP { {"hipLaunchAttributePriority", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, {"hipLaunchAttributeValue", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, {"hipKernelNodeAttributePriority", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphKernelNodePortDefault", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphKernelNodePortLaunchCompletion", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphKernelNodePortProgrammatic", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphDependencyType", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphDependencyTypeDefault", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphDependencyTypeProgrammatic", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, + {"hipGraphEdgeData", {HIP_6020, HIP_0, HIP_0, HIP_LATEST}}, }; diff --git a/tests/unit_tests/synthetic/driver_defines.cu b/tests/unit_tests/synthetic/driver_defines.cu index f8973eab..20a08fbb 100644 --- a/tests/unit_tests/synthetic/driver_defines.cu +++ b/tests/unit_tests/synthetic/driver_defines.cu @@ -84,5 +84,16 @@ int main() { int MEMHOSTREGISTER_READ_ONLY = CU_MEMHOSTREGISTER_READ_ONLY; #endif +#if CUDA_VERSION >= 12030 + // CHECK: int GRAPH_KERNEL_NODE_PORT_DEFAULT = hipGraphKernelNodePortDefault; + int GRAPH_KERNEL_NODE_PORT_DEFAULT = CU_GRAPH_KERNEL_NODE_PORT_DEFAULT; + + // CHECK: int GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER = hipGraphKernelNodePortLaunchCompletion; + int GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER = CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER; + + // CHECK: int GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC = hipGraphKernelNodePortProgrammatic; + int GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC = CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC; +#endif + return 0; } diff --git a/tests/unit_tests/synthetic/driver_enums.cu b/tests/unit_tests/synthetic/driver_enums.cu index 9131b0ac..7ef80ee6 100644 --- a/tests/unit_tests/synthetic/driver_enums.cu +++ b/tests/unit_tests/synthetic/driver_enums.cu @@ -1176,5 +1176,16 @@ int main() { CUdriverProcAddressQueryResult GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT = CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT; #endif +#if CUDA_VERSION >= 12030 + // CHECK: hipGraphDependencyType graphDependencyType; + // CHECK-NEXT: hipGraphDependencyType graphDependencyType_enum; + // CHECK-NEXT: hipGraphDependencyType GRAPH_DEPENDENCY_TYPE_DEFAULT = hipGraphDependencyTypeDefault; + // CHECK-NEXT: hipGraphDependencyType GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC = hipGraphDependencyTypeProgrammatic; + CUgraphDependencyType graphDependencyType; + CUgraphDependencyType_enum graphDependencyType_enum; + CUgraphDependencyType GRAPH_DEPENDENCY_TYPE_DEFAULT = CU_GRAPH_DEPENDENCY_TYPE_DEFAULT; + CUgraphDependencyType GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC = CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC; +#endif + return 0; } diff --git a/tests/unit_tests/synthetic/driver_structs.cu b/tests/unit_tests/synthetic/driver_structs.cu index a56e7b98..973505fd 100644 --- a/tests/unit_tests/synthetic/driver_structs.cu +++ b/tests/unit_tests/synthetic/driver_structs.cu @@ -362,5 +362,12 @@ int main() { CUgraphNodeParams graphNodeParams; #endif +#if CUDA_VERSION >= 12020 + // CHECK: hipGraphEdgeData graphEdgeData_st; + // CHECK-NEXT: hipGraphEdgeData graphEdgeData; + CUgraphEdgeData_st graphEdgeData_st; + CUgraphEdgeData graphEdgeData; +#endif + return 0; } diff --git a/tests/unit_tests/synthetic/runtime_defines.cu b/tests/unit_tests/synthetic/runtime_defines.cu index bbf9ff38..abe0f425 100644 --- a/tests/unit_tests/synthetic/runtime_defines.cu +++ b/tests/unit_tests/synthetic/runtime_defines.cu @@ -122,5 +122,16 @@ int main() { int HostRegisterReadOnly = cudaHostRegisterReadOnly; #endif +#if CUDA_VERSION >= 12030 + // CHECK: int GRAPH_KERNEL_NODE_PORT_DEFAULT = hipGraphKernelNodePortDefault; + int GRAPH_KERNEL_NODE_PORT_DEFAULT = cudaGraphKernelNodePortDefault; + + // CHECK: int GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER = hipGraphKernelNodePortLaunchCompletion; + int GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER = cudaGraphKernelNodePortLaunchCompletion; + + // CHECK: int GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC = hipGraphKernelNodePortProgrammatic; + int GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC = cudaGraphKernelNodePortProgrammatic; +#endif + return 0; } diff --git a/tests/unit_tests/synthetic/runtime_enums.cu b/tests/unit_tests/synthetic/runtime_enums.cu index ef70bd35..52380e6c 100644 --- a/tests/unit_tests/synthetic/runtime_enums.cu +++ b/tests/unit_tests/synthetic/runtime_enums.cu @@ -922,5 +922,16 @@ int main() { cudaLaunchAttributeID LAUNCH_ATTRIBUTE_PRIORITY = cudaLaunchAttributePriority; #endif +#if CUDA_VERSION >= 12030 + // CHECK: hipGraphDependencyType graphDependencyType; + // CHECK-NEXT: hipGraphDependencyType graphDependencyType_enum; + // CHECK-NEXT: hipGraphDependencyType GRAPH_DEPENDENCY_TYPE_DEFAULT = hipGraphDependencyTypeDefault; + // CHECK-NEXT: hipGraphDependencyType GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC = hipGraphDependencyTypeProgrammatic; + cudaGraphDependencyType graphDependencyType; + cudaGraphDependencyType_enum graphDependencyType_enum; + cudaGraphDependencyType GRAPH_DEPENDENCY_TYPE_DEFAULT = cudaGraphDependencyTypeDefault; + cudaGraphDependencyType GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC = cudaGraphDependencyTypeProgrammatic; +#endif + return 0; } diff --git a/tests/unit_tests/synthetic/runtime_structs.cu b/tests/unit_tests/synthetic/runtime_structs.cu index 88bd6148..471cc251 100644 --- a/tests/unit_tests/synthetic/runtime_structs.cu +++ b/tests/unit_tests/synthetic/runtime_structs.cu @@ -219,5 +219,12 @@ int main() { cudaGraphNodeParams *GraphNodeParams = nullptr; #endif +#if CUDA_VERSION >= 12020 + // CHECK: hipGraphEdgeData graphEdgeData_st; + // CHECK-NEXT: hipGraphEdgeData graphEdgeData; + cudaGraphEdgeData_st graphEdgeData_st; + cudaGraphEdgeData graphEdgeData; +#endif + return 0; }