2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2020-02-06 18:51:21 +08:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-23 05:50:57 +08:00
|
|
|
#include "opencl/source/command_stream/command_stream_receiver_with_aub_dump.h"
|
|
|
|
#include "opencl/source/command_stream/device_command_stream.h"
|
|
|
|
#include "opencl/source/os_interface/linux/drm_command_stream.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
2019-10-29 15:01:53 +08:00
|
|
|
CommandStreamReceiver *DeviceCommandStreamReceiver<GfxFamily>::create(bool withAubDump, ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex) {
|
2018-01-19 17:00:51 +08:00
|
|
|
if (withAubDump) {
|
2019-10-29 15:01:53 +08:00
|
|
|
return new CommandStreamReceiverWithAUBDump<DrmCommandStreamReceiver<GfxFamily>>("aubfile", executionEnvironment, rootDeviceIndex);
|
2018-01-19 17:00:51 +08:00
|
|
|
} else {
|
2019-10-29 15:01:53 +08:00
|
|
|
return new DrmCommandStreamReceiver<GfxFamily>(executionEnvironment, rootDeviceIndex);
|
2018-01-19 17:00:51 +08:00
|
|
|
}
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|