Files
compute-runtime/opencl/source/os_interface/linux/device_command_stream.inl
Lukasz Jobczyk e297cdb74b Disable gem close worker and force pin in direct submission
Related-To: NEO-4338

Change-Id: I1959d69cf3aebf817493e155dad91ff8830ed5b4
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2020-07-31 13:23:48 +02:00

26 lines
1.0 KiB
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_stream/device_command_stream.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "opencl/source/command_stream/command_stream_receiver_with_aub_dump.h"
#include "opencl/source/os_interface/linux/drm_command_stream.h"
namespace NEO {
template <typename GfxFamily>
CommandStreamReceiver *DeviceCommandStreamReceiver<GfxFamily>::create(bool withAubDump, ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex) {
if (withAubDump) {
return new CommandStreamReceiverWithAUBDump<DrmCommandStreamReceiver<GfxFamily>>("aubfile", executionEnvironment, rootDeviceIndex);
} else {
auto gemMode = DebugManager.flags.EnableDirectSubmission.get() == 1 ? gemCloseWorkerMode::gemCloseWorkerInactive : gemCloseWorkerMode::gemCloseWorkerActive;
return new DrmCommandStreamReceiver<GfxFamily>(executionEnvironment, rootDeviceIndex, gemMode);
}
};
} // namespace NEO