mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 08:07:19 +08:00
Add API name to aub file name
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0a83d610c1
commit
9ff91defba
@@ -9,6 +9,7 @@
|
||||
#include "shared/source/command_stream/tbx_command_stream_receiver.h"
|
||||
#include "shared/source/execution_environment/execution_environment.h"
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
#include "shared/source/helpers/api_specific_config.h"
|
||||
#include "shared/source/os_interface/device_factory.h"
|
||||
|
||||
#include "opencl/source/command_stream/command_stream_receiver_with_aub_dump.h"
|
||||
@@ -29,12 +30,13 @@ CommandStreamReceiver *createCommandStreamImpl(ExecutionEnvironment &executionEn
|
||||
if (csr < 0) {
|
||||
csr = CommandStreamReceiverType::CSR_HW;
|
||||
}
|
||||
|
||||
switch (csr) {
|
||||
case CSR_HW:
|
||||
commandStreamReceiver = funcCreate(false, executionEnvironment, rootDeviceIndex, deviceBitfield);
|
||||
break;
|
||||
case CSR_AUB:
|
||||
commandStreamReceiver = AUBCommandStreamReceiver::create("aubfile", true, executionEnvironment, rootDeviceIndex, deviceBitfield);
|
||||
commandStreamReceiver = AUBCommandStreamReceiver::create(ApiSpecificConfig::getName(), true, executionEnvironment, rootDeviceIndex, deviceBitfield);
|
||||
break;
|
||||
case CSR_TBX:
|
||||
commandStreamReceiver = TbxCommandStreamReceiver::create("", false, executionEnvironment, rootDeviceIndex, deviceBitfield);
|
||||
@@ -43,7 +45,7 @@ CommandStreamReceiver *createCommandStreamImpl(ExecutionEnvironment &executionEn
|
||||
commandStreamReceiver = funcCreate(true, executionEnvironment, rootDeviceIndex, deviceBitfield);
|
||||
break;
|
||||
case CSR_TBX_WITH_AUB:
|
||||
commandStreamReceiver = TbxCommandStreamReceiver::create("aubfile", true, executionEnvironment, rootDeviceIndex, deviceBitfield);
|
||||
commandStreamReceiver = TbxCommandStreamReceiver::create(ApiSpecificConfig::getName(), true, executionEnvironment, rootDeviceIndex, deviceBitfield);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
@@ -29,8 +29,8 @@ ApiSpecificConfig::ApiType ApiSpecificConfig::getApiType() {
|
||||
return ApiSpecificConfig::OCL;
|
||||
}
|
||||
|
||||
const char *ApiSpecificConfig::getAubPrefixForSpecificApi() {
|
||||
return "ocl_";
|
||||
std::string ApiSpecificConfig::getName() {
|
||||
return "ocl";
|
||||
}
|
||||
|
||||
uint64_t ApiSpecificConfig::getReducedMaxAllocSize(uint64_t maxAllocSize) {
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "shared/source/command_stream/device_command_stream.h"
|
||||
#include "shared/source/debug_settings/debug_settings_manager.h"
|
||||
#include "shared/source/helpers/api_specific_config.h"
|
||||
|
||||
#include "opencl/source/command_stream/command_stream_receiver_with_aub_dump.h"
|
||||
#include "opencl/source/os_interface/linux/drm_command_stream.h"
|
||||
@@ -19,7 +20,7 @@ CommandStreamReceiver *createDrmCommandStreamReceiver(bool withAubDump,
|
||||
uint32_t rootDeviceIndex,
|
||||
const DeviceBitfield deviceBitfield) {
|
||||
if (withAubDump) {
|
||||
return new CommandStreamReceiverWithAUBDump<DrmCommandStreamReceiver<GfxFamily>>("aubfile",
|
||||
return new CommandStreamReceiverWithAUBDump<DrmCommandStreamReceiver<GfxFamily>>(ApiSpecificConfig::getName(),
|
||||
executionEnvironment,
|
||||
rootDeviceIndex,
|
||||
deviceBitfield);
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4005)
|
||||
#include "shared/source/command_stream/device_command_stream.h"
|
||||
#include "shared/source/helpers/api_specific_config.h"
|
||||
|
||||
#include "opencl/source/command_stream/command_stream_receiver_with_aub_dump.h"
|
||||
#include "opencl/source/os_interface/windows/wddm_device_command_stream.h"
|
||||
@@ -25,7 +26,7 @@ CommandStreamReceiver *createWddmCommandStreamReceiver(bool withAubDump,
|
||||
uint32_t rootDeviceIndex,
|
||||
const DeviceBitfield deviceBitfield) {
|
||||
if (withAubDump) {
|
||||
return new CommandStreamReceiverWithAUBDump<WddmCommandStreamReceiver<GfxFamily>>("aubfile",
|
||||
return new CommandStreamReceiverWithAUBDump<WddmCommandStreamReceiver<GfxFamily>>(ApiSpecificConfig::getName(),
|
||||
executionEnvironment,
|
||||
rootDeviceIndex,
|
||||
deviceBitfield);
|
||||
|
||||
@@ -166,7 +166,7 @@ CommandStreamReceiver *createWddmDeviceCommandStreamReceiver(bool withAubDump,
|
||||
uint32_t rootDeviceIndex,
|
||||
const DeviceBitfield deviceBitfield) {
|
||||
if (withAubDump) {
|
||||
return new CommandStreamReceiverWithAUBDump<WddmCommandStreamReceiver<GfxFamily>>("aubfile",
|
||||
return new CommandStreamReceiverWithAUBDump<WddmCommandStreamReceiver<GfxFamily>>(ApiSpecificConfig::getName(),
|
||||
executionEnvironment,
|
||||
rootDeviceIndex,
|
||||
deviceBitfield);
|
||||
|
||||
Reference in New Issue
Block a user