interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / tests / amd-kfd-launch / reference / sources.json

162 lines · 5649 bytes Raw Blame History
1{
2 "sources": [
3 {
4 "file": "topology-rocm-6.2.0.c",
5 "url": "https://raw.githubusercontent.com/ROCm/ROCT-Thunk-Interface/rocm-6.2.0/src/topology.c",
6 "sha256": "df339eb2532374fecdab571efcf49131dd79f31c236792ab1cb260dbd18f4c3f",
7 "ranges": [
8 {
9 "contains": [
10 "array_count",
11 "simd_arrays_per_engine",
12 "simd_arrays_count",
13 "NumArrays"
14 ],
15 "first": "else if (strcmp(prop_name, \"array_count\") == 0)",
16 "last": "props->NumArrays = (uint32_t)prop_val;"
17 },
18 {
19 "contains": [
20 "NumShaderBanks",
21 "simd_arrays_count/props->NumArrays"
22 ],
23 "first": "if (props->NumArrays != 0)",
24 "last": "props->NumShaderBanks = simd_arrays_count/props->NumArrays;"
25 }
26 ]
27 },
28 {
29 "file": "topology-rocm-7.2.2.c",
30 "url": "https://raw.githubusercontent.com/ROCm/rocm-systems/rocm-7.2.2/projects/rocr-runtime/libhsakmt/src/topology.c",
31 "sha256": "97269f0baf231d490032fc47ea8fe9e1101232477e10f74ff15e616d8e54ad86",
32 "ranges": [
33 {
34 "contains": [
35 "array_count",
36 "simd_arrays_per_engine",
37 "simd_arrays_count",
38 "NumArrays"
39 ],
40 "first": "else if (strcmp(prop_name, \"array_count\") == 0)",
41 "last": "props->NumArrays = (uint32_t)prop_val;"
42 },
43 {
44 "contains": [
45 "NumShaderBanks",
46 "simd_arrays_count/props->NumArrays"
47 ],
48 "first": "if (props->NumArrays != 0)",
49 "last": "props->NumShaderBanks = simd_arrays_count/props->NumArrays;"
50 }
51 ]
52 },
53 {
54 "file": "queues-rocm-6.2.0.c",
55 "url": "https://raw.githubusercontent.com/ROCm/ROCT-Thunk-Interface/rocm-6.2.0/src/queues.c",
56 "sha256": "6653cd7b55466616a44e4b7e89619081adee33a813c07b17dd850fa230c7fef4",
57 "ranges": [
58 {
59 "contains": [
60 "NumFComputeCores",
61 "NumSIMDPerCU",
62 "NumXcc",
63 "NumShaderBanks /",
64 "NumArrays"
65 ],
66 "first": "uint32_t cu_num = node.NumFComputeCores / node.NumSIMDPerCU / node.NumXcc;",
67 "last": "wg_data_size = cu_num * WG_CONTEXT_DATA_SIZE_PER_CU(q->gfxv);"
68 }
69 ]
70 },
71 {
72 "file": "kfd_topology-v6.18.c",
73 "url": "https://raw.githubusercontent.com/torvalds/linux/v6.18/drivers/gpu/drm/amd/amdkfd/kfd_topology.c",
74 "sha256": "b6f18da3603c196d1b6a58ff9607524365c5ed33e6716895cff0fc621c1742d6",
75 "ranges": [
76 {
77 "contains": [
78 "array_count",
79 "NUM_XCC",
80 "simd_arrays_per_engine"
81 ],
82 "first": "sysfs_show_32bit_prop(buffer, offs, \"array_count\",",
83 "last": "dev->node_props.simd_arrays_per_engine);"
84 },
85 {
86 "contains": [
87 "simd_arrays_per_engine",
88 "max_sh_per_se"
89 ],
90 "first": "dev->node_props.simd_arrays_per_engine =",
91 "last": "gfx_info->max_sh_per_se;"
92 }
93 ]
94 },
95 {
96 "file": "kfd_crat-v6.18.c",
97 "url": "https://raw.githubusercontent.com/torvalds/linux/v6.18/drivers/gpu/drm/amd/amdkfd/kfd_crat.c",
98 "sha256": "aeacf7c1aed367e499bf6ee65489d42ffacd7c68dcd7e43f4f9e795559f2f999",
99 "ranges": [
100 {
101 "contains": [
102 "array_count",
103 "cu->array_count"
104 ],
105 "first": "dev->node_props.array_count = cu->array_count;",
106 "last": "dev->node_props.array_count = cu->array_count;"
107 },
108 {
109 "contains": [
110 "array_count",
111 "max_sh_per_se",
112 "max_shader_engines"
113 ],
114 "first": "cu->array_count = gfx_info->max_sh_per_se *",
115 "last": "gfx_info->max_shader_engines;"
116 }
117 ]
118 },
119 {
120 "file": "AMDHSAKernelDescriptor-rocm-7.2.2.h",
121 "url": "https://raw.githubusercontent.com/ROCm/llvm-project/rocm-7.2.2/llvm/include/llvm/Support/AMDHSAKernelDescriptor.h",
122 "sha256": "867b8bfabc6d38e97fe83a4ea5bed76f2e29306ddfde5be9a42ffed6fa68081f",
123 "ranges": [
124 {
125 "first": "COMPUTE_PGM_RSRC2(ENABLE_PRIVATE_SEGMENT, 0, 1),",
126 "last": "COMPUTE_PGM_RSRC2(ENABLE_PRIVATE_SEGMENT, 0, 1),",
127 "contains": [
128 "COMPUTE_PGM_RSRC2(ENABLE_PRIVATE_SEGMENT, 0, 1),"
129 ]
130 },
131 {
132 "first": "KERNEL_CODE_PROPERTY(ENABLE_SGPR_PRIVATE_SEGMENT_BUFFER, 0, 1),",
133 "last": "KERNEL_CODE_PROPERTY(ENABLE_SGPR_PRIVATE_SEGMENT_BUFFER, 0, 1),",
134 "contains": [
135 "KERNEL_CODE_PROPERTY(ENABLE_SGPR_PRIVATE_SEGMENT_BUFFER, 0, 1),"
136 ]
137 },
138 {
139 "first": "KERNEL_CODE_PROPERTY(ENABLE_SGPR_FLAT_SCRATCH_INIT, 5, 1),",
140 "last": "KERNEL_CODE_PROPERTY(ENABLE_SGPR_FLAT_SCRATCH_INIT, 5, 1),",
141 "contains": [
142 "KERNEL_CODE_PROPERTY(ENABLE_SGPR_FLAT_SCRATCH_INIT, 5, 1),"
143 ]
144 },
145 {
146 "first": "KERNEL_CODE_PROPERTY(ENABLE_SGPR_PRIVATE_SEGMENT_SIZE, 6, 1),",
147 "last": "KERNEL_CODE_PROPERTY(ENABLE_SGPR_PRIVATE_SEGMENT_SIZE, 6, 1),",
148 "contains": [
149 "KERNEL_CODE_PROPERTY(ENABLE_SGPR_PRIVATE_SEGMENT_SIZE, 6, 1),"
150 ]
151 },
152 {
153 "first": "KERNEL_CODE_PROPERTY(USES_DYNAMIC_STACK, 11, 1),",
154 "last": "KERNEL_CODE_PROPERTY(USES_DYNAMIC_STACK, 11, 1),",
155 "contains": [
156 "KERNEL_CODE_PROPERTY(USES_DYNAMIC_STACK, 11, 1),"
157 ]
158 }
159 ]
160 }
161 ]
162}