mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Make gmm client context non-static member
Construct platform and initialize gmm in each test Change-Id: I4f209369e77213420308f31f911b7a569ea93283
This commit is contained in:
committed by
sys_ocldev
parent
7423919629
commit
a906ddaa66
@@ -36,8 +36,8 @@ decltype(GmmHelper::createClientContextFunc) GmmHelper::createClientContextFunc
|
||||
decltype(GmmHelper::deleteClientContextFunc) GmmHelper::deleteClientContextFunc = nullptr;
|
||||
|
||||
void GmmHelper::loadLib() {
|
||||
gmmLib = OsLibrary::load(Os::gmmDllName);
|
||||
|
||||
gmmLib.reset(OsLibrary::load(Os::gmmDllName));
|
||||
bool isLoaded = false;
|
||||
UNRECOVERABLE_IF(!gmmLib);
|
||||
if (gmmLib->isLoaded()) {
|
||||
auto openGmmFunc = reinterpret_cast<decltype(&OpenGmm)>(gmmLib->getProcAddress(Os::gmmEntryName));
|
||||
|
||||
Reference in New Issue
Block a user