Commit 5d58b01
[hipDNN] Clone flatbuffer code from data_sdk into flatbuffers_sdk (ROCm#6227)
## Summary
- Clones all flatbuffer-specific code from `data_sdk` into
`hipdnn_flatbuffers_sdk` with full namespace rename (`hipdnn_data_sdk` →
`hipdnn_flatbuffers_sdk`)
- Adds independent flatbuffers and nlohmann_json dependencies to
flatbuffers_sdk CMake
- Parameterizes `FlatBuffersGenerate.cmake` with `OUTPUT_NAMESPACE` to
support both SDKs without target name collisions
## What's cloned
| Category | Count |
|----------|-------|
| FlatBuffer schemas (.fbs) | 26 |
| Generated headers (v24_12_23 + v25_9_23) | 52 |
| Flatbuffer utility wrappers | 8 |
| FlatbufferUtils + JSON serialization | 22 |
| Tests | 8 files (92 tests) |
## Design decisions
- **Full duplication** — data_sdk keeps its flatbuffer code unchanged;
consumers can be migrated incrementally in follow-up work
- **Namespace rename** — all code uses `hipdnn_flatbuffers_sdk`
namespace; deprecated `hipdnn_plugin_sdk` backward-compat aliases are
NOT cloned
- **External deps preserved** — flatbuffers_sdk still links to
`hipdnn_data_sdk` for non-flatbuffer utilities (`types.hpp`,
`StringUtil.hpp`)
- **Scoped CMake targets** — ExternalProject and generation targets are
prefixed with the SDK name to prevent collisions
## Test plan
- [x] 92 flatbuffers_sdk tests pass
- [x] 1123 data_sdk tests pass (no regressions)
- [x] CI pipeline
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 9c43062 commit 5d58b01
127 files changed
Lines changed: 27038 additions & 78 deletions
File tree
- projects/hipdnn
- cmake
- data_sdk/schemas
- flatbuffers_sdk
- cmake
- include/hipdnn_flatbuffers_sdk
- data_objects
- v24_12_23/hipdnn_flatbuffers_sdk/data_objects
- v25_9_23/hipdnn_flatbuffers_sdk/data_objects
- flatbuffer_utilities
- utilities
- json
- schemas
- tests
- flatbuffer_utilities
- utilities
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
81 | 90 | | |
82 | 91 | | |
83 | 92 | | |
| |||
98 | 107 | | |
99 | 108 | | |
100 | 109 | | |
101 | | - | |
| 110 | + | |
102 | 111 | | |
103 | 112 | | |
104 | 113 | | |
| |||
109 | 118 | | |
110 | 119 | | |
111 | 120 | | |
112 | | - | |
| 121 | + | |
113 | 122 | | |
114 | 123 | | |
115 | 124 | | |
| |||
120 | 129 | | |
121 | 130 | | |
122 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
123 | 137 | | |
124 | 138 | | |
125 | 139 | | |
| |||
129 | 143 | | |
130 | 144 | | |
131 | 145 | | |
132 | | - | |
| 146 | + | |
133 | 147 | | |
134 | 148 | | |
| 149 | + | |
| 150 | + | |
135 | 151 | | |
136 | 152 | | |
137 | 153 | | |
138 | 154 | | |
139 | 155 | | |
140 | 156 | | |
141 | 157 | | |
142 | | - | |
| 158 | + | |
143 | 159 | | |
144 | 160 | | |
145 | 161 | | |
| |||
151 | 167 | | |
152 | 168 | | |
153 | 169 | | |
154 | | - | |
| 170 | + | |
155 | 171 | | |
156 | 172 | | |
157 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 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 | + | |
16 | 49 | | |
| 50 | + | |
17 | 51 | | |
18 | 52 | | |
19 | 53 | | |
20 | 54 | | |
21 | 55 | | |
| 56 | + | |
| 57 | + | |
22 | 58 | | |
23 | 59 | | |
24 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
25 | 70 | | |
26 | 71 | | |
27 | 72 | | |
| 73 | + | |
28 | 74 | | |
29 | 75 | | |
30 | 76 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
36 | 121 | | |
37 | 122 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 123 | + | |
| 124 | + | |
41 | 125 | | |
42 | 126 | | |
43 | | - | |
44 | | - | |
45 | 127 | | |
46 | 128 | | |
47 | 129 | | |
48 | 130 | | |
49 | 131 | | |
50 | 132 | | |
51 | | - | |
52 | | - | |
53 | 133 | | |
| 134 | + | |
54 | 135 | | |
55 | 136 | | |
56 | 137 | | |
| |||
65 | 146 | | |
66 | 147 | | |
67 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
68 | 174 | | |
69 | 175 | | |
70 | 176 | | |
| |||
Lines changed: 0 additions & 11 deletions
This file was deleted.
0 commit comments