Files
compute-runtime/opencl/test/unit_test/helpers/cl_hw_parse.h
Mateusz Jablonski 52c75e92da Cleanup hw_parse.h
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-13 11:10:22 +02:00

27 lines
663 B
C++

/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/test/common/cmd_parse/hw_parse.h"
#include "opencl/source/command_queue/command_queue.h"
namespace NEO {
struct ClHardwareParse : HardwareParse {
using HardwareParse::parseCommands;
template <typename FamilyType>
void parseCommands(NEO::CommandQueue &commandQueue) {
auto &commandStreamReceiver = commandQueue.getGpgpuCommandStreamReceiver();
auto &commandStream = commandQueue.getCS(1024);
return HardwareParse::parseCommands<FamilyType>(commandStreamReceiver, commandStream);
}
};
} // namespace NEO