diff --git a/projects/hip/rocclr/hip_global.cpp b/projects/hip/rocclr/hip_global.cpp index 247fbb645a..00c29013a2 100755 --- a/projects/hip/rocclr/hip_global.cpp +++ b/projects/hip/rocclr/hip_global.cpp @@ -5,15 +5,6 @@ #include "hip_code_object.hpp" #include "platform/program.hpp" -#ifdef __HIP_ENABLE_PCH -extern const char __hip_pch[]; -extern unsigned __hip_pch_size; -void __hipGetPCH(const char** pch, unsigned int *size) { - *pch = __hip_pch; - *size = __hip_pch_size; -} -#endif - namespace hip { //Device Vars diff --git a/projects/hip/rocclr/hip_rtc.cpp b/projects/hip/rocclr/hip_rtc.cpp index b7f373a264..66b6ad6e43 100755 --- a/projects/hip/rocclr/hip_rtc.cpp +++ b/projects/hip/rocclr/hip_rtc.cpp @@ -23,6 +23,15 @@ #include #include "platform/program.hpp" +#ifdef __HIP_ENABLE_PCH +extern const char __hip_pch[]; +extern unsigned __hip_pch_size; +void __hipGetPCH(const char** pch, unsigned int *size) { + *pch = __hip_pch; + *size = __hip_pch_size; +} +#endif + namespace hiprtc { thread_local hiprtcResult g_lastRtcError = HIPRTC_SUCCESS; }