From 389db38b03dd1bf0fd458eb59ae92986ec04d804 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Thu, 24 Feb 2022 10:22:58 +0530 Subject: [PATCH] SWDEV-323472 - Add hipThreadExchangeStreamCaptureMode (#2519) Change-Id: I1c610833bf3e21e4ba311a89cec0e8866b9164bd Co-authored-by: Christophe Paquot --- 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 eca5b9ff63..0d376d0673 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -4401,6 +4401,18 @@ hipError_t hipStreamUpdateCaptureDependencies(hipStream_t stream, hipGraphNode_t size_t numDependencies, unsigned int flags __dparm(0)); +/** + * @brief Swaps the stream capture mode of a thread. + * + * @param [in] mode - Pointer to mode value to swap with the current mode + * @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 hipThreadExchangeStreamCaptureMode(hipStreamCaptureMode* mode); + /** * @brief Creates a graph *