Debian Codegraph @

tensilelite/Tensile/Common/RequiredParameters.py

raw symbols SCIP
1 ################################################################################
2 #
3 # Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved.
4 #
5 # Permission is hereby granted, free of charge, to any person obtaining a copy
6 # of this software and associated documentation files (the "Software"), to deal
7 # in the Software without restriction, including without limitation the rights
8 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell cop-
9 # ies of the
10 # Software, and to permit persons to whom the Software is furnished
11 # to do so, subject to the following conditions:
12 #
13 # The above copyright notice and this permission notice shall be included in all
14 # copies or substantial portions of the Software.
15 #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IM-
17 # PLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18 # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19 # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20 # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNE-
21 # CTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 ################################################################################
23
24 from functools import lru_cache
25 from .ValidParameters import validParameters
26
27
28 @lru_cache
29 def getRequiredParametersFull() -> set:
30 return frozenset(validParameters.keys())
31
32
33 @lru_cache
34 def getRequiredParametersMin() -> set:
35 return frozenset({
36 '1LDSBuffer',
37 'ActivationFuncCall',
38 'AssertFree0ElementMultiple',
39 'AssertFree1ElementMultiple',
40 'AssertSummationElementMultiple',
41 'ClusterLocalRead',
42 'ConvertAfterDS',
43 'DirectToVgprA',
44 'DirectToVgprB',
45 'DirectToLdsA',
46 'DirectToLdsB',
47 'ExpandPointerSwap',
48 'ForceDisableShadowInit',
49 'GlobalReadPerMfma',
50 'GlobalReadVectorWidthA',
51 'GlobalReadVectorWidthB',
52 'GlobalSplitUAlgorithm',
53 'GroupLoadStore',
54 'ISA',
55 'InnerUnroll',
56 'Kernel',
57 'LdsBlockSizePerPadA',
58 'LdsBlockSizePerPadB',
59 'LdsBlockSizePerPadMetadata',
60 'LdsPadA',
61 'LdsPadB',
62 'LdsPadMetadata',
63 'LocalReadVectorWidth',
64 'LocalWritePerMfma',
65 'MIArchVgpr',
66 'MaxOccupancy',
67 'NonTemporal',
68 'NonTemporalA',
69 'NonTemporalB',
70 'NonTemporalC',
71 'NonTemporalD',
72 'NonTemporalMetadata',
73 'NumElementsPerBatchStore',
74 'NumLoadsCoalescedA',
75 'NumLoadsCoalescedB',
76 'OptNoLoadLoop',
77 'PrefetchGlobalRead',
78 'PrefetchLocalRead',
79 'PreloadKernArgs',
80 'ScheduleIterAlg',
81 'SourceSwap',
82 'StorePriorityOpt',
83 'StoreRemapVectorWidth',
84 'StoreSyncOpt',
85 'StoreVectorWidth',
86 'StreamK',
87 'StreamKXCCMapping',
88 'TransposeLDS',
89 'UnrollLoopSwapGlobalReadOrder',
90 'Use64bShadowLimit',
91 'UseInstOffsetForGRO',
92 'UseSgprForGRO',
93 'VectorStore',
94 'VectorWidthA',
95 'VectorWidthB',
96 'WaveSeparateGlobalReadA',
97 'WaveSeparateGlobalReadB',
98 'WavefrontSize',
99 'WorkGroup',
100 })