2020-10-01 19:31:19 +08:00
|
|
|
/*
|
2022-05-18 03:04:23 +08:00
|
|
|
* Copyright (C) 2020-2022 Intel Corporation
|
2020-10-01 19:31:19 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-05-18 03:04:23 +08:00
|
|
|
#pragma once
|
2021-08-11 02:52:02 +08:00
|
|
|
#include <cstdint>
|
2021-09-16 20:31:00 +08:00
|
|
|
#include <string>
|
2021-08-11 02:52:02 +08:00
|
|
|
|
2020-10-01 19:31:19 +08:00
|
|
|
namespace NEO {
|
|
|
|
struct ApiSpecificConfig {
|
2021-05-14 01:46:01 +08:00
|
|
|
enum ApiType { OCL,
|
|
|
|
L0 };
|
2021-08-03 16:24:06 +08:00
|
|
|
static bool isStatelessCompressionSupported();
|
2022-09-05 18:15:40 +08:00
|
|
|
static bool isBcsSplitWaSupported();
|
2020-10-01 19:31:19 +08:00
|
|
|
static bool getHeapConfiguration();
|
2020-10-07 19:53:56 +08:00
|
|
|
static bool getBindlessConfiguration();
|
2022-09-05 21:17:18 +08:00
|
|
|
static bool isDeviceAllocationCacheEnabled();
|
2021-05-14 01:46:01 +08:00
|
|
|
static ApiType getApiType();
|
2021-09-16 20:31:00 +08:00
|
|
|
static std::string getName();
|
2021-08-11 02:52:02 +08:00
|
|
|
static uint64_t getReducedMaxAllocSize(uint64_t maxAllocSize);
|
2021-09-23 06:03:07 +08:00
|
|
|
static const char *getRegistryPath();
|
2021-09-16 20:31:00 +08:00
|
|
|
|
|
|
|
static std::string getAubPrefixForSpecificApi() {
|
|
|
|
return (getName() + "_");
|
|
|
|
}
|
2020-10-01 19:31:19 +08:00
|
|
|
};
|
2021-08-11 02:52:02 +08:00
|
|
|
} // namespace NEO
|