From 36b81c1be689acaafaaa9e0da4f856f72727849e 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 --- include/nvcc_detail/hip_runtime_api.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/nvcc_detail/hip_runtime_api.h b/include/nvcc_detail/hip_runtime_api.h index c3d8f2950f..6ea49fb3a1 100644 --- a/include/nvcc_detail/hip_runtime_api.h +++ b/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 }