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/hip commit: 6debae4a14]
这个提交包含在:
Vladislav Sytchenko 于 2021-05-11 17:40:32 -04:00 提交
1 父节点 38d123f1bd
当前提交 79b6187feb
2 个文件已更改
+9 -9

没有与搜索条件相匹配的文件

+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;
}