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]
This commit is contained in:
Vladislav Sytchenko
2021-05-11 13:49:44 -04:00
rodzic 38d123f1bd
commit 79b6187feb
2 zmienionych plików z 9 dodań i 9 usunięć
-9
Wyświetl plik
@@ -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