mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 08:37:12 +08:00
Create gmm client context wrapper, reduce mock_gmm
Change-Id: I4eec4366afeb175fea4bf7934e3046b50fe30fe9
This commit is contained in:
committed by
sys_ocldev
parent
f59c191915
commit
36db75da28
@@ -32,7 +32,8 @@
|
||||
#include "unit_tests/mocks/mock_sip.h"
|
||||
#include "runtime/gmm_helper/resource_info.h"
|
||||
#include "runtime/os_interface/debug_settings_manager.h"
|
||||
#include "lib_names.h"
|
||||
#include "External/Common/GmmLibDllName.h"
|
||||
#include "mock_gmm_client_context.h"
|
||||
#include "gmock/gmock.h"
|
||||
#include <algorithm>
|
||||
#include <mutex>
|
||||
@@ -59,7 +60,8 @@ std::thread::id tempThreadID;
|
||||
} // namespace OCLRT
|
||||
namespace Os {
|
||||
extern const char *gmmDllName;
|
||||
}
|
||||
extern const char *gmmEntryName;
|
||||
} // namespace Os
|
||||
|
||||
using namespace OCLRT;
|
||||
TestEnvironment *gEnvironment;
|
||||
@@ -416,7 +418,10 @@ int main(int argc, char **argv) {
|
||||
#else
|
||||
SetUnhandledExceptionFilter(&UltExceptionFilter);
|
||||
if (!useMockGmm) {
|
||||
Os::gmmDllName = GMM_LIBRARY_NAME;
|
||||
Os::gmmDllName = GMM_UMD_DLL;
|
||||
Os::gmmEntryName = GMM_ENTRY_NAME;
|
||||
} else {
|
||||
GmmHelper::createGmmContextWrapperFunc = GmmClientContextBase::create<MockGmmClientContext>;
|
||||
}
|
||||
std::unique_ptr<OsLibrary> gmmLib(OsLibrary::load(Os::gmmDllName));
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user