Files
compute-runtime/unit_tests/os_interface/windows/gmm_memory_tests.cpp
Mateusz Jablonski 5fa53f4516 Move headers to core
- address_patch.h
- options.h
- registered_method_dispatcher.h
- grf_config.h

Rename OCL_RUNTIME_PROFILING -> KMD_PROFILING

Related-To: NEO-3982

Change-Id: I06cf72729e9d7d7d2ff0bd169fcbada00c4b509a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-12-10 12:19:29 +01:00

27 lines
675 B
C++

/*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/gmm_helper/gmm_helper.h"
#include "core/helpers/options.h"
#include "runtime/platform/platform.h"
#include "gmm_client_context.h"
#include "gmm_memory.h"
#include "gtest/gtest.h"
using namespace NEO;
class PublicGmmMemory : public GmmMemory {
public:
using GmmMemory::clientContext;
};
TEST(GmmMemoryTest, givenGmmHelperWhenCreateGmmMemoryThenItHasClientContextFromGmmHelper) {
ASSERT_NE(nullptr, platform()->peekGmmClientContext());
PublicGmmMemory gmmMemory;
EXPECT_EQ(gmmMemory.clientContext, platform()->peekGmmClientContext()->getHandle());
}