From 85fa855e181fde8afc6792c7b5c78a6ff9b4a9d4 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 [ROCm/clr commit: 4a8a6a469716bc9e0c7ce12ef4597280b42a0c45] --- .../clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h b/projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h index 9d2e12d8af..924c44b79f 100644 --- a/projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h +++ b/projects/clr/hipamd/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()); }