Prepare to use gmm dynamic lib on Linux

Change-Id: Ie1b0c8fe13c4e044f1f2b0651349840d2850f423
This commit is contained in:
Mateusz Jablonski
2018-07-17 12:19:34 +00:00
committed by sys_ocldev
parent 1c0f90b194
commit 96e3163386
8 changed files with 83 additions and 3 deletions

View File

@@ -417,6 +417,8 @@ int main(int argc, char **argv) {
}
#else
SetUnhandledExceptionFilter(&UltExceptionFilter);
#endif
#ifdef GMM_LIB_DLL
if (!useMockGmm) {
Os::gmmDllName = GMM_UMD_DLL;
Os::gmmEntryName = GMM_ENTRY_NAME;
@@ -425,7 +427,6 @@ int main(int argc, char **argv) {
}
std::unique_ptr<OsLibrary> gmmLib(OsLibrary::load(Os::gmmDllName));
#endif
initializeTestHelpers();
retVal = RUN_ALL_TESTS();

View File

@@ -29,12 +29,21 @@ void GMM_STDCALL deleteClientContext(GMM_CLIENT_CONTEXT *pGmmClientContext) {
}
void GMM_STDCALL destroySingletonContext(void) {
}
#ifdef _WIN32
GMM_STATUS GMM_STDCALL createSingletonContext(const PLATFORM Platform,
const SKU_FEATURE_TABLE *pSkuTable,
const WA_TABLE *pWaTable,
const GT_SYSTEM_INFO *pGtSysInfo) {
return GMM_SUCCESS;
}
#else
GMM_STATUS GMM_STDCALL createSingletonContext(const PLATFORM Platform,
const void *pSkuTable,
const void *pWaTable,
const void *pGtSysInfo) {
return GMM_SUCCESS;
}
#endif
#ifdef __cplusplus
extern "C" {
#endif

View File

@@ -34,6 +34,8 @@ const char *frontEndDllName = "libmock_igdfcl.so";
const char *igcDllName = "libmock_igc.so";
const char *libvaDllName = nullptr;
const char *testDllName = "libtest_dynamic_lib.so";
const char *gmmDllName = "libmock_gmm.so";
const char *gmmEntryName = "openMockGmm";
#endif
const char *sysFsPciPath = "./test_files";
} // namespace Os