From 31009ea884eecc6ff24e9f17050ef8cb3ff01230 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Tue, 20 Dec 2022 02:21:34 +0530 Subject: [PATCH] SWDEV-372171 - Correct section for hipLaunchHostFunc (#3116) Change-Id: I48bd381bfadafe079e34b5d2877a1133fd405a9a --- include/hip/hip_runtime_api.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/include/hip/hip_runtime_api.h b/include/hip/hip_runtime_api.h index 901ba5db12..3ae553cd3b 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -5007,6 +5007,20 @@ hipError_t hipLaunchKernel(const void* function_address, void** args, size_t sharedMemBytes __dparm(0), hipStream_t stream __dparm(0)); + +/** + * @brief Enqueues a host function call in a stream. + * + * @param [in] stream - stream to enqueue work to. + * @param [in] fn - function to call once operations enqueued preceeding are complete. + * @param [in] userData - User-specified data to be passed to the function. + * @returns #hipSuccess, #hipErrorInvalidResourceHandle, #hipErrorInvalidValue, + * #hipErrorNotSupported + * @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 hipLaunchHostFunc(hipStream_t stream, hipHostFn_t fn, void* userData); + /** * Copies memory for 2D arrays. * @@ -5536,19 +5550,6 @@ hipError_t hipStreamUpdateCaptureDependencies(hipStream_t stream, hipGraphNode_t size_t numDependencies, unsigned int flags __dparm(0)); -/** - * @brief Enqueues a host function call in a stream. - * - * @param [in] stream - stream to enqueue work to. - * @param [in] fn - function to call once operations enqueued preceeding are complete. - * @param [in] userData - User-specified data to be passed to the function. - * @returns #hipSuccess, #hipErrorInvalidResourceHandle, #hipErrorInvalidValue, - * #hipErrorNotSupported - * @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 hipLaunchHostFunc(hipStream_t stream, hipHostFn_t fn, void* userData); - /** * @brief Swaps the stream capture mode of a thread. *