File: stream_properties.h

package info (click to toggle)
intel-compute-runtime 25.44.36015.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 79,632 kB
  • sloc: cpp: 931,547; lisp: 2,074; sh: 719; makefile: 162; python: 21
file content (60 lines) | stat: -rw-r--r-- 1,710 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
50
51
52
53
54
55
56
57
58
59
60
/*
 * Copyright (C) 2021-2025 Intel Corporation
 *
 * SPDX-License-Identifier: MIT
 *
 */

#pragma once

#include "stream_properties.inl"

namespace NEO {

struct PipelineSelectPropertiesSupport {
    bool systolicMode = false;
};

struct PipelineSelectProperties {
    StreamProperty modeSelected{};
    StreamProperty systolicMode{};

    void initSupport(const RootDeviceEnvironment &rootDeviceEnvironment);
    void resetState();

    void setPropertiesAll(bool modeSelected, bool systolicMode);
    void setPropertiesModeSelected(bool modeSelected, bool clearDirtyState);
    void setPropertySystolicMode(bool systolicMode);

    void copyPropertiesAll(const PipelineSelectProperties &properties);
    void copyPropertiesSystolicMode(const PipelineSelectProperties &properties);

    bool isDirty() const;
    void clearIsDirty();

  protected:
    PipelineSelectPropertiesSupport pipelineSelectPropertiesSupport = {};
    bool propertiesSupportLoaded = false;
};

struct StreamProperties {
    StateComputeModeProperties stateComputeMode{};
    FrontEndProperties frontEndState{};
    PipelineSelectProperties pipelineSelect{};
    StateBaseAddressProperties stateBaseAddress{};

    void initSupport(const RootDeviceEnvironment &rootDeviceEnvironment) {
        stateComputeMode.initSupport(rootDeviceEnvironment);
        frontEndState.initSupport(rootDeviceEnvironment);
        pipelineSelect.initSupport(rootDeviceEnvironment);
        stateBaseAddress.initSupport(rootDeviceEnvironment);
    }
    void resetState() {
        stateComputeMode.resetState();
        frontEndState.resetState();
        pipelineSelect.resetState();
        stateBaseAddress.resetState();
    }
};

} // namespace NEO