/* * Copyright (C) 2017-2018 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "runtime/command_stream/device_command_stream.h" #include "runtime/command_stream/command_stream_receiver_with_aub_dump.h" #include "runtime/os_interface/linux/drm_command_stream.h" #include "hw_cmds.h" #include "drm_command_stream.h" namespace OCLRT { template CommandStreamReceiver *DeviceCommandStreamReceiver::create(const HardwareInfo &hwInfo, bool withAubDump, ExecutionEnvironment &executionEnvironment) { if (withAubDump) { return new CommandStreamReceiverWithAUBDump>(hwInfo, executionEnvironment); } else { return new DrmCommandStreamReceiver(hwInfo, executionEnvironment); } }; } // namespace OCLRT