From 84c23e2b41a384ec771c489e39a4f34e096d7ea1 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Thu, 30 Jun 2022 13:28:15 +0530 Subject: [PATCH] SWDEV-342662 - Added hipGraphUpload API (#2757) Change-Id: I65a957e4d8b12b2ffd003e5a4722edaed2ffa99e --- include/hip/hip_runtime_api.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/hip/hip_runtime_api.h b/include/hip/hip_runtime_api.h index 83e2638fdd..f8a244d046 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -5618,6 +5618,18 @@ hipError_t hipGraphInstantiateWithFlags(hipGraphExec_t* pGraphExec, hipGraph_t g */ hipError_t hipGraphLaunch(hipGraphExec_t graphExec, hipStream_t stream); +/** + * @brief uploads an executable graph in a stream + * + * @param [in] graphExec - instance of executable graph to launch. + * @param [in] stream - instance of stream in which to launch executable graph. + * @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 hipGraphUpload(hipGraphExec_t graphExec, hipStream_t stream); + /** * @brief Destroys an executable graph *