Debian Codegraph @

tensilelite/Tensile/Common/Constants.py

raw symbols SCIP
1 # Map for converting between Tensile-accepted co version strings
2 # and code object versions accepted by the compiler.
3 coVersionMap = {
4 "4": "4",
5 "V4": "4",
6 "5": "5",
7 "V5": "5",
8 "default": "4",
9 }
10
11 # Subdirectories for Tensile build artifacts
12 CLIENT_BUILD_DIR: str = "0_Build"
13 BENCHMARK_PROBLEMS_DIR: str = "1_BenchmarkProblems"
14 BENCHMARK_DATA_DIR: str = "2_BenchmarkData"
15 LIBRARY_LOGIC_DIR: str = "3_LibraryLogic"
16 LIBRARY_CLIENT_DIR: str = "4_LibraryClient"
17
18 # If a file name is longer than this value, and `--short-filenames` is set, shorten it with a hash.
19 MAX_FILENAME_LENGTH: int = 64
20
21 # Characters to use for GEMM naming, e.g., C[ij]=Sum[k] A[ik]*B[jk]
22 INDEX_CHARS: str = "IJKLMNOPQRSTUVWXYZ"
23
24 HR = "################################################################################"
25
26 # Append copyrights to all files generated by Tensile since they belong to Tensile intellectual property
27 CMakeHeader = """################################################################################
28 #
29 # Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved.
30 #
31 # Permission is hereby granted, free of charge, to any person obtaining a copy
32 # of this software and associated documentation files (the "Software"), to deal
33 # in the Software without restriction, including without limitation the rights
34 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell cop-
35 # ies of the Software, and to permit persons to whom the Software is furnished
36 # to do so, subject to the following conditions:
37 #
38 # The above copyright notice and this permission notice shall be included in all
39 # copies or substantial portions of the Software.
40 #
41 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IM-
42 # PLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
43 # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
44 # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
45 # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNE-
46 # CTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
47 ################################################################################
48
49 ###################################################
50 # This file was generated by Tensile: #
51 # https://github.com/ROCmSoftwarePlatform/Tensile #
52 ###################################################
53
54
55 """
56
57 CHeader = """/*******************************************************************************
58 * Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved.
59 *
60 * Permission is hereby granted, free of charge, to any person obtaining a copy
61 * of this software and associated documentation files (the "Software"), to deal
62 * in the Software without restriction, including without limitation the rights
63 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell cop-
64 * ies of the Software, and to permit persons to whom the Software is furnished
65 * to do so, subject to the following conditions:
66 *
67 * The above copyright notice and this permission notice shall be included in all
68 * copies or substantial portions of the Software.
69 *
70 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IM-
71 * PLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
72 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
73 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
74 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNE-
75 * CTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
76 *******************************************************************************/
77
78 /**************************************************
79 * This file was generated by Tensile: *
80 * https://github.com/ROCm/Tensile *
81 **************************************************/
82
83
84 """