From 57cd3c8244dc33bdaef92d562f607bc81f7d98e6 Mon Sep 17 00:00:00 2001 From: pensun Date: Wed, 9 Nov 2016 15:44:01 -0600 Subject: [PATCH] fix hipProfiler* apis on NV path Change-Id: I6adca6151fef3a9b35348163eb6bd13f5c414172 --- include/hip/nvcc_detail/hip_runtime_api.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/hip/nvcc_detail/hip_runtime_api.h b/include/hip/nvcc_detail/hip_runtime_api.h index 9d2e12d8af..924c44b79f 100644 --- a/include/hip/nvcc_detail/hip_runtime_api.h +++ b/include/hip/nvcc_detail/hip_runtime_api.h @@ -24,6 +24,7 @@ THE SOFTWARE. #include #include +#include #ifdef __cplusplus extern "C" { @@ -645,12 +646,12 @@ inline static hipError_t hipMemcpyPeerAsync ( void* dst, int dstDevice, const v // Profile APIs: inline hipError_t hipProfilerStart() { - return hipCUDAErrorTohipError(cudaProfileStart()); + return hipCUDAErrorTohipError(cudaProfilerStart()); } inline hipError_t hipProfilerStop() { - return hipCUDAErrorTohipError(cudaProfileStop()); + return hipCUDAErrorTohipError(cudaProfilerStop()); }