diff --git a/include/hip/hip_runtime_api.h b/include/hip/hip_runtime_api.h index 9753030bdb..ebf4c241eb 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -4194,9 +4194,6 @@ hipError_t hipGraphAddEmptyNode(hipGraphNode_t* pGraphNode, hipGraph_t graph, #ifdef __cplusplus } /* extern "c" */ #endif -#if USE_PROF_API -#include -#endif #ifdef __cplusplus #if defined(__clang__) && defined(__HIP__) template @@ -4443,3 +4440,7 @@ static inline hipError_t hipMallocManaged(T** devPtr, size_t size, } #endif #endif + +#if USE_PROF_API +#include +#endif