mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 17:00:59 +08:00
Multi tag allocation is useful only in openCL to ensure cross root device synchronization based on tag address. It is not required in level zero. Futher multi tag allocation is causing instability in sysman device reset. So, for level zero instead of multi tag allocation create single tag allocation. Related-To: LOCI-2651 Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
#include "shared/source/helpers/api_specific_config.h"
|
|
|
|
namespace NEO {
|
|
ApiSpecificConfig::ApiType apiTypeForUlts = ApiSpecificConfig::OCL;
|
|
bool ApiSpecificConfig::isStatelessCompressionSupported() {
|
|
return ApiSpecificConfig::ApiType::OCL == ApiSpecificConfig::getApiType();
|
|
}
|
|
bool ApiSpecificConfig::getHeapConfiguration() {
|
|
return DebugManager.flags.UseExternalAllocatorForSshAndDsh.get();
|
|
}
|
|
bool ApiSpecificConfig::getBindlessConfiguration() {
|
|
if (DebugManager.flags.UseBindlessMode.get() != -1) {
|
|
return DebugManager.flags.UseBindlessMode.get();
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
ApiSpecificConfig::ApiType ApiSpecificConfig::getApiType() {
|
|
return apiTypeForUlts;
|
|
}
|
|
|
|
uint64_t ApiSpecificConfig::getReducedMaxAllocSize(uint64_t maxAllocSize) {
|
|
return maxAllocSize / 2;
|
|
}
|
|
|
|
std::string ApiSpecificConfig::getName() {
|
|
return "shared";
|
|
}
|
|
const char *ApiSpecificConfig::getRegistryPath() {
|
|
return "";
|
|
}
|
|
} // namespace NEO
|