From ae884a6e3a9f59d9b3bf71dfd7fec324765e3c25 Mon Sep 17 00:00:00 2001 From: sdashmiz Date: Tue, 19 Sep 2023 15:56:24 -0400 Subject: [PATCH] SWDEV-421021 - Add cuMemCpyGet/Set params counterparts in hip Signed-off-by: sdashmiz Change-Id: If1fb173b5849edea3af10f8433eceb2ca7d915a3 --- include/hip/hip_runtime_api.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/hip/hip_runtime_api.h b/include/hip/hip_runtime_api.h index 598b70b243..eb876a9886 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -7565,6 +7565,28 @@ hipError_t hipGraphExecExternalSemaphoresSignalNodeSetParams(hipGraphExec_t hGra */ hipError_t hipGraphExecExternalSemaphoresWaitNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams* nodeParams); + +/** + * @brief Gets a memcpy node's parameters. + * + * @param [in] hNode - instance of the node to get parameters from. + * @param [out] nodeParams - pointer to the parameters. + * @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 hipDrvGraphMemcpyNodeGetParams(hipGraphNode_t hNode, HIP_MEMCPY3D* nodeParams); + +/** + * @brief Sets a memcpy node's parameters. + * + * @param [in] hNode - instance of the node to Set parameters for. + * @param [out] nodeParams - pointer to the parameters. + * @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 hipDrvGraphMemcpyNodeSetParams(hipGraphNode_t hNode, const HIP_MEMCPY3D* nodeParams); // doxygen end graph API /** * @}