From d3b06fd5a6a7b808392a6325b025fbe8f33fda8e Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Wed, 21 Jul 2021 20:33:53 -0400 Subject: [PATCH] SWDEV-281658 - Workaround for Windows build Currently hip_prof_str.h does not include any header files. All HIP declarations are being resolved by accident. Pushing it to the end of hip_runtime_api.h will allow it to include the definition of GLuint. Change-Id: Ibb33b93cc7eab2028ba96f166bcb06f2f079feef --- include/hip/hip_runtime_api.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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