Files
compute-runtime/shared/test/unit_test/direct_submission/dispatchers/dispatcher_fixture.cpp
Mateusz Jablonski 6a46e8f0ca Correct method names in device and module fixtures
correct naming in derived classes

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-12 10:40:56 +02:00

27 lines
632 B
C++

/*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/unit_test/direct_submission/dispatchers/dispatcher_fixture.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/constants.h"
using namespace NEO;
void DispatcherFixture::setUp() {
DeviceFixture::setUp();
bufferAllocation = alignedMalloc(MemoryConstants::pageSize, MemoryConstants::pageSize);
cmdBuffer.replaceBuffer(bufferAllocation, MemoryConstants::pageSize);
}
void DispatcherFixture::tearDown() {
alignedFree(bufferAllocation);
DeviceFixture::tearDown();
}