2020-10-01 13:31:19 +02:00
|
|
|
/*
|
2023-05-30 08:26:29 +00:00
|
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
2020-10-01 13:31:19 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
|
|
|
#include "shared/source/helpers/api_specific_config.h"
|
|
|
|
|
|
2021-09-22 22:03:07 +00:00
|
|
|
#include "opencl/source/os_interface/ocl_reg_path.h"
|
|
|
|
|
|
2020-10-01 13:31:19 +02:00
|
|
|
namespace NEO {
|
2021-08-03 08:24:06 +00:00
|
|
|
bool ApiSpecificConfig::isStatelessCompressionSupported() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-30 08:26:29 +00:00
|
|
|
bool ApiSpecificConfig::getGlobalBindlessHeapConfiguration() {
|
2020-10-01 13:31:19 +02:00
|
|
|
return false;
|
|
|
|
|
}
|
2021-08-03 08:24:06 +00:00
|
|
|
|
2023-05-30 08:26:29 +00:00
|
|
|
bool ApiSpecificConfig::getBindlessMode() {
|
2020-10-07 13:53:56 +02:00
|
|
|
if (DebugManager.flags.UseBindlessMode.get() != -1) {
|
|
|
|
|
return DebugManager.flags.UseBindlessMode.get();
|
2020-10-01 13:31:19 +02:00
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-08-03 08:24:06 +00:00
|
|
|
|
2022-09-05 13:17:18 +00:00
|
|
|
bool ApiSpecificConfig::isDeviceAllocationCacheEnabled() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-07 15:06:16 +00:00
|
|
|
bool ApiSpecificConfig::isDynamicPostSyncAllocLayoutEnabled() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-13 19:46:01 +02:00
|
|
|
ApiSpecificConfig::ApiType ApiSpecificConfig::getApiType() {
|
|
|
|
|
return ApiSpecificConfig::OCL;
|
|
|
|
|
}
|
2021-07-05 14:10:31 +02:00
|
|
|
|
2021-09-16 12:31:00 +00:00
|
|
|
std::string ApiSpecificConfig::getName() {
|
|
|
|
|
return "ocl";
|
2021-07-05 14:10:31 +02:00
|
|
|
}
|
2021-08-10 18:52:02 +00:00
|
|
|
|
|
|
|
|
uint64_t ApiSpecificConfig::getReducedMaxAllocSize(uint64_t maxAllocSize) {
|
|
|
|
|
return maxAllocSize / 2;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-22 22:03:07 +00:00
|
|
|
const char *ApiSpecificConfig::getRegistryPath() {
|
|
|
|
|
return oclRegPath;
|
|
|
|
|
}
|
2021-08-10 18:52:02 +00:00
|
|
|
} // namespace NEO
|