mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 04:48:08 +08:00
Cleaned up files: opencl/source/built_ins/builtins_dispatch_builder.h opencl/source/context/context.h opencl/source/gtpin/gtpin_notify.h opencl/source/kernel/kernel.h opencl/source/kernel/multi_device_kernel.h opencl/source/mem_obj/buffer.h opencl/source/mem_obj/mem_obj.h shared/source/built_ins/registry/built_ins_registry.h shared/source/page_fault_manager/cpu_page_fault_manager.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
31 lines
760 B
C++
31 lines
760 B
C++
/*
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "opencl/test/unit_test/fixtures/context_fixture.h"
|
|
|
|
#include "opencl/source/gtpin/gtpin_notify.h"
|
|
#include "opencl/test/unit_test/mocks/mock_context.h"
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
namespace NEO {
|
|
|
|
void ContextFixture::setUp(cl_uint numDevices, cl_device_id *pDeviceList) {
|
|
auto retVal = CL_SUCCESS;
|
|
pContext = Context::create<MockContext>(nullptr, ClDeviceVector(pDeviceList, numDevices),
|
|
nullptr, nullptr, retVal);
|
|
ASSERT_NE(nullptr, pContext);
|
|
ASSERT_EQ(CL_SUCCESS, retVal);
|
|
}
|
|
|
|
void ContextFixture::tearDown() {
|
|
if (pContext != nullptr) {
|
|
pContext->release();
|
|
}
|
|
}
|
|
} // namespace NEO
|