From 5debf08d7724bee5d06aa3ab63b6134a687995cc Mon Sep 17 00:00:00 2001 From: sdashmiz Date: Mon, 28 Aug 2023 09:22:00 -0400 Subject: [PATCH] SWDEV-417075 - add hipDrvAddMemcpy node Signed-off-by: sdashmiz Change-Id: I7080bc440cd5f8ccc8a3c595488421fc4daa9332 --- include/hip/hip_runtime_api.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/hip/hip_runtime_api.h b/include/hip/hip_runtime_api.h index 7b7b85997e..fbb00bc331 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -6646,6 +6646,23 @@ hipError_t hipGraphKernelNodeSetParams(hipGraphNode_t node, const hipKernelNodeP hipError_t hipGraphExecKernelNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipKernelNodeParams* pNodeParams); +/** + * @brief Creates a memcpy node and adds it to a graph. + * + * @param [out] phGraphNode - pointer to graph node to create. + * @param [in] hGraph - instance of graph to add the created node. + * @param [in] dependencies - const pointer to the dependencies on the memcpy execution node. + * @param [in] numDependencies - the number of the dependencies. + * @param [in] copyParams - const pointer to the parameters for the memory copy. + * @param [in] ctx - cotext related to current device. + * @returns #hipSuccess, #hipErrorInvalidValue + * @warning : This API is marked as beta, meaning, while this is feature complete, + * it is still open to changes and may have outstanding issues. + */ +hipError_t hipDrvGraphAddMemcpyNode(hipGraphNode_t* phGraphNode, hipGraph_t hGraph, + const hipGraphNode_t* dependencies, + size_t numDependencies, + const HIP_MEMCPY3D* copyParams, hipCtx_t ctx); /** * @brief Creates a memcpy node and adds it to a graph. *