Commit 4949b56
committed
Resolves #5100 ([FR-1944](https://lablup.atlassian.net/browse/FR-1944))
# Add support for Tenstorrent TT-N300 accelerator
This PR adds support for the Tenstorrent TT-N300 accelerator device to [Backend.AI](http://Backend.AI). The implementation includes:
- Adding a new device type `tt-n300.device` to the known accelerator resource slot names
- Creating a new Tenstorrent icon component and SVG asset
- Adding device metadata for the TT-N300 with appropriate display settings
- Updating resource broker components to recognize and handle the new device type
- Adding the device to the client-side resource tracking
Test: [session launcher url](http://127.0.0.1:9081/session/start?formValues=%7B%22sessionType%22%3A%22interactive%22%2C%22sessionName%22%3A%22%22%2C%22bootstrap_script%22%3A%22%22%2C%22environments%22%3A%7B%22environment%22%3A%22cr.backend.ai%2Ftesting%2Ffilebrowser%22%2C%22version%22%3A%22cr.backend.ai%2Ftesting%2Ffilebrowser%3A22.03-ubuntu20.04%40x86_64%22%2C%22manual%22%3A%22%22%7D%2C%22resourceGroup%22%3A%22tt%22%2C%22allocationPreset%22%3A%22custom%22%2C%22resource%22%3A%7B%22cpu%22%3A1%2C%22mem%22%3A%220.3125g%22%2C%22shmem%22%3A%2264m%22%2C%22accelerator%22%3A1%2C%22acceleratorType%22%3A%22tt-n300.device%22%7D%2C%22enabledAutomaticShmem%22%3Atrue%2C%22num_of_sessions%22%3A1%2C%22cluster_mode%22%3A%22single-node%22%2C%22cluster_size%22%3A1%2C%22hpcOptimization%22%3A%7B%22autoEnabled%22%3Atrue%7D%2C%22mount_id_map%22%3A%7B%7D%2C%22vfoldersNameMap%22%3A%7B%7D%2C%22mount_ids%22%3A%5B%5D%2C%22ports%22%3A%5B%5D%2C%22agent%22%3A%22auto%22%2C%22envvars%22%3A%5B%5D%7D&step=4)


**Checklist:**
- [ ] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
[FR-1944]: https://lablup.atlassian.net/browse/FR-1944?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent e7ef1df commit 4949b56
10 files changed
Lines changed: 70 additions & 1 deletion
File tree
- packages/backend.ai-ui/src
- components
- provider/BAIMetaDataProvider
- icons
- react/src
- components
- hooks
- resources
- src/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
129 | 138 | | |
130 | 139 | | |
131 | 140 | | |
| |||
317 | 326 | | |
318 | 327 | | |
319 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
320 | 334 | | |
321 | 335 | | |
322 | 336 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
157 | 168 | | |
158 | 169 | | |
159 | 170 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4027 | 4027 | | |
4028 | 4028 | | |
4029 | 4029 | | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
4030 | 4033 | | |
4031 | 4034 | | |
4032 | 4035 | | |
| |||
4212 | 4215 | | |
4213 | 4216 | | |
4214 | 4217 | | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
| 4221 | + | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
4215 | 4228 | | |
4216 | 4229 | | |
4217 | 4230 | | |
| |||
0 commit comments