File: api_specific_config.h

package info (click to toggle)
intel-compute-runtime 25.35.35096.9-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 79,324 kB
  • sloc: cpp: 926,243; lisp: 3,433; sh: 715; makefile: 162; python: 21
file content (49 lines) | stat: -rw-r--r-- 1,655 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * Copyright (C) 2020-2025 Intel Corporation
 *
 * SPDX-License-Identifier: MIT
 *
 */

#pragma once
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/utilities/stackvec.h"

#include <cstdint>
#include <string>
#include <vector>

namespace NEO {
class Device;
class ReleaseHelper;
struct RootDeviceEnvironment;

struct ApiSpecificConfig {
    enum ApiType { OCL,
                   L0 };
    static bool isStatelessCompressionSupported();
    static bool getGlobalBindlessHeapConfiguration(const ReleaseHelper *releaseHelper);
    static bool getBindlessMode(const Device &device);
    static bool isDeviceAllocationCacheEnabled();
    static bool isHostAllocationCacheEnabled();
    static bool isDeviceUsmPoolingEnabled();
    static bool isHostUsmPoolingEnabled();
    static bool isGlobalStatelessEnabled(const RootDeviceEnvironment &rootDeviceEnvironment);
    static ApiType getApiType();
    static std::string getName();
    static uint64_t getReducedMaxAllocSize(uint64_t maxAllocSize);
    static const char *getRegistryPath();
    static void initPrefixes();
    static const StackVec<const char *, 4> &getPrefixStrings();
    static const StackVec<DebugVarPrefix, 4> &getPrefixTypes();
    static std::string getAubPrefixForSpecificApi() {
        return (getName() + "_");
    }
    static bool isSharedAllocPrefetchEnabled();
    static std::string compilerCacheDir();
    static std::string compilerCacheLocation();
    static std::string compilerCacheFileExtension();
    static int64_t compilerCacheDefaultEnabled();
    static bool isUpdateTagFromWaitEnabledForHeapless();
};
} // namespace NEO