mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 04:23:00 +08:00
- 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>
27 lines
675 B
C++
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());
|
|
}
|