2021-10-09 01:54:03 +08:00
|
|
|
/*
|
2023-01-04 17:45:07 +08:00
|
|
|
* Copyright (C) 2021-2023 Intel Corporation
|
2021-10-09 01:54:03 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-10-12 22:14:38 +08:00
|
|
|
#include "shared/source/built_ins/built_ins.h"
|
2021-10-09 01:54:03 +08:00
|
|
|
#include "shared/source/command_container/implicit_scaling.h"
|
2021-10-12 22:14:38 +08:00
|
|
|
#include "shared/source/compiler_interface/default_cache_config.h"
|
2023-01-13 21:13:50 +08:00
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
2023-01-03 18:27:35 +08:00
|
|
|
#include "shared/source/execution_environment/root_device_environment.h"
|
2023-01-13 21:13:50 +08:00
|
|
|
#include "shared/source/helpers/api_specific_config.h"
|
2021-10-09 01:54:03 +08:00
|
|
|
#include "shared/source/memory_manager/compression_selector.h"
|
|
|
|
#include "shared/source/page_fault_manager/cpu_page_fault_manager.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
namespace ImplicitScaling {
|
|
|
|
bool apiSupport = false;
|
|
|
|
} // namespace ImplicitScaling
|
2023-01-04 17:45:07 +08:00
|
|
|
bool CompressionSelector::preferCompressedAllocation(const AllocationProperties &properties) {
|
2021-10-09 01:54:03 +08:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
void PageFaultManager::transferToCpu(void *ptr, size_t size, void *cmdQ) {
|
|
|
|
}
|
|
|
|
void PageFaultManager::transferToGpu(void *ptr, void *cmdQ) {
|
|
|
|
}
|
2023-07-25 17:01:53 +08:00
|
|
|
void PageFaultManager::allowCPUMemoryEviction(void *ptr, PageFaultData &pageFaultData) {
|
|
|
|
}
|
2021-10-12 22:14:38 +08:00
|
|
|
CompilerCacheConfig getDefaultCompilerCacheConfig() { return {}; }
|
|
|
|
const char *getAdditionalBuiltinAsString(EBuiltInOps::Type builtin) { return nullptr; }
|
2023-01-03 18:27:35 +08:00
|
|
|
|
|
|
|
void RootDeviceEnvironment::initApiGfxCoreHelper() {
|
|
|
|
}
|
|
|
|
|
2023-01-13 21:13:50 +08:00
|
|
|
ApiSpecificConfig::ApiType apiTypeForUlts = ApiSpecificConfig::OCL;
|
|
|
|
bool isStatelessCompressionSupportedForUlts = true;
|
|
|
|
|
|
|
|
bool ApiSpecificConfig::isStatelessCompressionSupported() {
|
|
|
|
return isStatelessCompressionSupportedForUlts;
|
|
|
|
}
|
2023-05-30 16:26:29 +08:00
|
|
|
bool ApiSpecificConfig::getGlobalBindlessHeapConfiguration() {
|
2023-01-13 21:13:50 +08:00
|
|
|
return DebugManager.flags.UseExternalAllocatorForSshAndDsh.get();
|
|
|
|
}
|
2023-05-30 16:26:29 +08:00
|
|
|
bool ApiSpecificConfig::getBindlessMode() {
|
2023-01-13 21:13:50 +08:00
|
|
|
if (DebugManager.flags.UseBindlessMode.get() != -1) {
|
|
|
|
return DebugManager.flags.UseBindlessMode.get();
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ApiSpecificConfig::isDeviceAllocationCacheEnabled() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2023-06-07 23:06:16 +08:00
|
|
|
bool ApiSpecificConfig::isDynamicPostSyncAllocLayoutEnabled() {
|
|
|
|
return (NEO::DebugManager.flags.EnableDynamicPostSyncAllocLayout.get() == 1);
|
|
|
|
}
|
|
|
|
|
2023-01-13 21:13:50 +08:00
|
|
|
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 "";
|
|
|
|
}
|
|
|
|
|
2021-10-09 01:54:03 +08:00
|
|
|
} // namespace NEO
|