From a873cec96cae4983ed00050eb001c0558e586cf3 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Thu, 30 Jun 2016 21:03:19 -0500 Subject: [PATCH] added more nvcc event functions Change-Id: I79ee20ef444d4c1ab6ada3c0d56730ce754ab6b6 [ROCm/hip commit: 36b81c1be689acaafaaa9e0da4f856f72727849e] --- projects/hip/include/nvcc_detail/hip_runtime_api.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/projects/hip/include/nvcc_detail/hip_runtime_api.h b/projects/hip/include/nvcc_detail/hip_runtime_api.h index c3d8f2950f..6ea49fb3a1 100644 --- a/projects/hip/include/nvcc_detail/hip_runtime_api.h +++ b/projects/hip/include/nvcc_detail/hip_runtime_api.h @@ -464,6 +464,15 @@ inline static hipError_t hipSetDeviceFlags (unsigned int flags) return hipCUDAErrorTohipError(cudaSetDeviceFlags( flags )); } +inline static hipError_t hipEventCreateWithFlags(hipEvent_t* event, unsigned int flags) +{ + return hipCUDAErrorTohipError(cudaEventCreateWithFlags(event, flags)); +} + +inline static hipError_t hipEventQuery(hipEvent_t event) +{ + return hipCUDAErrorTohipError(cudaEventQuery(event)); +} #ifdef __cplusplus }