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)); }