From 0b82c50300ff875ddd0b14e328449e616dc067a2 Mon Sep 17 00:00:00 2001 From: Jimbo Xie Date: Wed, 6 Nov 2024 01:28:54 -0500 Subject: [PATCH] SWDEV-477219 - hipEventRecordwithFlags hipother Change-Id: I17313697f24ab095f134da0873148962114df5fc --- hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h b/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h index 5f3babb660..61cb1703fe 100644 --- a/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h +++ b/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h @@ -366,6 +366,9 @@ typedef enum cudaResourceViewFormat hipResourceViewFormat; #define hipEventReleaseToDevice 0 /* no-op on CUDA platform */ #define hipEventReleaseToSystem 0 /* no-op on CUDA platform */ +//! Flags that can be used with hipEventRecordWithFlags. +#define hipEventRecordDefault cudaEventRecordDefault +#define hipEventRecordExternal cudaEventRecordExternal #define hipHostMallocDefault cudaHostAllocDefault #define hipHostMallocPortable cudaHostAllocPortable @@ -2926,6 +2929,11 @@ inline static hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream __d return hipCUDAErrorTohipError(cudaEventRecord(event, stream)); } +inline static hipError_t hipEventRecordWithFlags(hipEvent_t event, hipStream_t stream __dparm(0), + unsigned int flags __dparm(0)) + return hipCUDAErrorTohipError(cudaEventRecordWithFlags(event, stream, flags)); +} + inline static hipError_t hipEventSynchronize(hipEvent_t event) { return hipCUDAErrorTohipError(cudaEventSynchronize(event)); }