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
@@ -24,6 +24,8 @@
|
||||
#include "runtime/helpers/options.h"
|
||||
#include "gmm_memory.h"
|
||||
#include "gmm_client_context.h"
|
||||
#include "runtime/platform/platform.h"
|
||||
#include "runtime/execution_environment/execution_environment.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
using namespace OCLRT;
|
||||
@@ -33,8 +35,7 @@ class PublicGmmMemory : public GmmMemory {
|
||||
};
|
||||
|
||||
TEST(GmmMemoryTest, givenGmmHelperWhenCreateGmmMemoryThenItHasClientContextFromGmmHelper) {
|
||||
GmmHelper gmmHelper(*platformDevices);
|
||||
ASSERT_NE(nullptr, GmmHelper::gmmClientContext);
|
||||
ASSERT_NE(nullptr, GmmHelper::getClientContext());
|
||||
PublicGmmMemory gmmMemory;
|
||||
EXPECT_EQ(gmmMemory.clientContext, GmmHelper::gmmClientContext->getHandle());
|
||||
EXPECT_EQ(gmmMemory.clientContext, GmmHelper::getClientContext()->getHandle());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user