SWDEV-273235 - Fix HIP PCH build

hip_rtc.cpp refers to the symbol __hipGetPCH(), but that one can only be
found in hip_global.cpp. It's not referenced anywhere else, hence it
should be moved.

Change-Id: Ifc67b2f3b1b8344dec0e6c30d083d62288fb5e24


[ROCm/clr commit: 20eff6c298]
이 커밋은 다음에 포함됨:
Vladislav Sytchenko가 2021-05-11 17:40:32 -04:00를 커밋했습니다
1 부모 992143919d
커밋 7995ec9e38
2 파일이 변경됨
+9 -9

검색과 일치하는 파일 없음

-9
파일 보기
@@ -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
+9
파일 보기
@@ -23,6 +23,15 @@
#include <hip/hiprtc.h>
#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;
}