tt-dal 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. tt_dal-0.1.0/CMakeLists.txt +134 -0
  2. tt_dal-0.1.0/Cargo.lock +520 -0
  3. tt_dal-0.1.0/Cargo.toml +56 -0
  4. tt_dal-0.1.0/LICENSE +202 -0
  5. tt_dal-0.1.0/NOTICE +41 -0
  6. tt_dal-0.1.0/PKG-INFO +91 -0
  7. tt_dal-0.1.0/README.md +28 -0
  8. tt_dal-0.1.0/bind/py/.gitignore +216 -0
  9. tt_dal-0.1.0/bind/py/Cargo.toml +22 -0
  10. tt_dal-0.1.0/bind/py/LICENSE +202 -0
  11. tt_dal-0.1.0/bind/py/NOTICE +41 -0
  12. tt_dal-0.1.0/bind/py/README.md +71 -0
  13. tt_dal-0.1.0/bind/py/src/dev/mod.rs +380 -0
  14. tt_dal-0.1.0/bind/py/src/dev/power.rs +118 -0
  15. tt_dal-0.1.0/bind/py/src/dev/reset.rs +94 -0
  16. tt_dal-0.1.0/bind/py/src/dev/smc.rs +251 -0
  17. tt_dal-0.1.0/bind/py/src/dev/telem.rs +222 -0
  18. tt_dal-0.1.0/bind/py/src/dev/tlb.rs +441 -0
  19. tt_dal-0.1.0/bind/py/src/err.rs +43 -0
  20. tt_dal-0.1.0/bind/py/src/fw.rs +30 -0
  21. tt_dal-0.1.0/bind/py/src/kmd.rs +29 -0
  22. tt_dal-0.1.0/bind/py/src/lib.rs +105 -0
  23. tt_dal-0.1.0/bind/py/src/ver.rs +42 -0
  24. tt_dal-0.1.0/cmake/ttdal.pc.in +10 -0
  25. tt_dal-0.1.0/cmake/ttdalConfig.cmake.in +5 -0
  26. tt_dal-0.1.0/include/ttdal.h +1144 -0
  27. tt_dal-0.1.0/pyproject.toml +29 -0
  28. tt_dal-0.1.0/src/dev/mod.c +289 -0
  29. tt_dal-0.1.0/src/dev/power.c +42 -0
  30. tt_dal-0.1.0/src/dev/reset.c +166 -0
  31. tt_dal-0.1.0/src/dev/smc.c +170 -0
  32. tt_dal-0.1.0/src/dev/telem.c +221 -0
  33. tt_dal-0.1.0/src/dev/tlb.c +177 -0
  34. tt_dal-0.1.0/src/err.h +35 -0
  35. tt_dal-0.1.0/src/lib.c +5 -0
  36. tt_dal-0.1.0/src/trap.c +63 -0
  37. tt_dal-0.1.0/src/trap.h +34 -0
  38. tt_dal-0.1.0/src/ver.c +117 -0
  39. tt_dal-0.1.0/sys/README.md +28 -0
  40. tt_dal-0.1.0/sys/build.rs +90 -0
  41. tt_dal-0.1.0/sys/src/lib.rs +9 -0
  42. tt_dal-0.1.0/vendor/tt-kmd/README.md +24 -0
  43. tt_dal-0.1.0/vendor/tt-kmd/VENDORED +2 -0
  44. tt_dal-0.1.0/vendor/tt-kmd/ioctl.h +525 -0
@@ -0,0 +1,134 @@
1
+ cmake_minimum_required(VERSION 3.21)
2
+
3
+ # Version
4
+ file(READ include/ttdal.h header)
5
+ foreach(part MAJOR MINOR PATCH)
6
+ string(REGEX MATCH "#define TTDAL_VERSION_${part} ([0-9]+)" _ "${header}")
7
+ set(TTDAL_VERSION_${part} ${CMAKE_MATCH_1})
8
+ endforeach()
9
+
10
+ project(
11
+ ttdal
12
+ VERSION ${TTDAL_VERSION_MAJOR}.${TTDAL_VERSION_MINOR}.${TTDAL_VERSION_PATCH}
13
+ DESCRIPTION "Tenstorrent Device Access Library"
14
+ LANGUAGES C
15
+ )
16
+
17
+ set(CMAKE_C_STANDARD 23)
18
+ set(CMAKE_C_STANDARD_REQUIRED YES)
19
+ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
20
+
21
+ include(GNUInstallDirs)
22
+
23
+ file(GLOB_RECURSE HEADERS CONFIGURE_DEPENDS include/*.h)
24
+ file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS src/*.c)
25
+ set_property(GLOBAL APPEND PROPERTY FORMATTED ${SOURCES} ${HEADERS})
26
+
27
+ # Library
28
+ add_library(ttdal ${SOURCES})
29
+
30
+ target_include_directories(ttdal
31
+ PUBLIC
32
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
33
+ $<INSTALL_INTERFACE:include>
34
+ PRIVATE
35
+ ${CMAKE_CURRENT_SOURCE_DIR}/src
36
+ ${CMAKE_CURRENT_SOURCE_DIR}/vendor/tt-kmd
37
+ )
38
+
39
+ set_target_properties(ttdal PROPERTIES
40
+ C_STANDARD 23
41
+ C_STANDARD_REQUIRED YES
42
+ POSITION_INDEPENDENT_CODE ON
43
+ VERSION ${PROJECT_VERSION}
44
+ SOVERSION ${PROJECT_VERSION_MAJOR}
45
+ )
46
+
47
+ # Install
48
+ include(CMakePackageConfigHelpers)
49
+
50
+ install(TARGETS ttdal
51
+ EXPORT ttdalTargets
52
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
53
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
54
+ )
55
+
56
+ install(FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
57
+
58
+ # Package
59
+ install(EXPORT ttdalTargets
60
+ FILE ttdalTargets.cmake
61
+ NAMESPACE ttdal::
62
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ttdal
63
+ )
64
+
65
+ configure_package_config_file(
66
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/ttdalConfig.cmake.in
67
+ ${CMAKE_CURRENT_BINARY_DIR}/ttdalConfig.cmake
68
+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ttdal
69
+ )
70
+
71
+ write_basic_package_version_file(
72
+ ${CMAKE_CURRENT_BINARY_DIR}/ttdalConfigVersion.cmake
73
+ VERSION ${PROJECT_VERSION}
74
+ COMPATIBILITY SameMajorVersion
75
+ )
76
+
77
+ install(FILES
78
+ ${CMAKE_CURRENT_BINARY_DIR}/ttdalConfig.cmake
79
+ ${CMAKE_CURRENT_BINARY_DIR}/ttdalConfigVersion.cmake
80
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ttdal
81
+ )
82
+
83
+ configure_file(
84
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/ttdal.pc.in
85
+ ${CMAKE_CURRENT_BINARY_DIR}/ttdal.pc
86
+ @ONLY
87
+ )
88
+
89
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ttdal.pc
90
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
91
+ )
92
+
93
+ # Tests
94
+ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
95
+ enable_testing()
96
+ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tests")
97
+ add_subdirectory(tests EXCLUDE_FROM_ALL)
98
+ endif()
99
+ endif()
100
+
101
+ # Examples
102
+ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
103
+ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/examples")
104
+ add_subdirectory(examples EXCLUDE_FROM_ALL)
105
+ endif()
106
+ endif()
107
+
108
+ # Format
109
+ find_program(CLANG_FORMAT clang-format)
110
+ if(CLANG_FORMAT)
111
+ get_property(FORMATTED GLOBAL PROPERTY FORMATTED)
112
+ add_custom_target(fmt
113
+ COMMAND ${CLANG_FORMAT} -i ${FORMATTED}
114
+ COMMENT "Formatting source files"
115
+ VERBATIM
116
+ )
117
+ endif()
118
+
119
+ # Docs
120
+ find_package(Doxygen)
121
+ if(DOXYGEN_FOUND)
122
+ set(DOXYGEN_GENERATE_HTML YES)
123
+ set(DOXYGEN_GENERATE_MAN NO)
124
+ set(DOXYGEN_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/docs)
125
+ set(DOXYGEN_EXTRACT_ALL YES)
126
+ set(DOXYGEN_JAVADOC_AUTOBRIEF YES)
127
+ set(DOXYGEN_MARKDOWN_SUPPORT YES)
128
+ set(DOXYGEN_BUILTIN_STL_SUPPORT YES)
129
+ set(DOXYGEN_PROJECT_NAME "Tenstorrent Device Access Library")
130
+ set(DOXYGEN_PROJECT_NUMBER ${PROJECT_VERSION})
131
+ set(DOXYGEN_PROJECT_BRIEF "Low-level C API for Tenstorrent accelerators")
132
+
133
+ doxygen_add_docs(docs ${HEADERS})
134
+ endif()
@@ -0,0 +1,520 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "aho-corasick"
7
+ version = "1.1.5"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
10
+ dependencies = [
11
+ "memchr",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "bindgen"
16
+ version = "0.72.1"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
19
+ dependencies = [
20
+ "bitflags",
21
+ "cexpr",
22
+ "clang-sys",
23
+ "itertools",
24
+ "log",
25
+ "prettyplease",
26
+ "proc-macro2",
27
+ "quote",
28
+ "regex",
29
+ "rustc-hash",
30
+ "shlex 1.3.0",
31
+ "syn 2.0.119",
32
+ ]
33
+
34
+ [[package]]
35
+ name = "bitflags"
36
+ version = "2.13.1"
37
+ source = "registry+https://github.com/rust-lang/crates.io-index"
38
+ checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
39
+
40
+ [[package]]
41
+ name = "cc"
42
+ version = "1.4.0"
43
+ source = "registry+https://github.com/rust-lang/crates.io-index"
44
+ checksum = "5add81bb678e6cb321aff7fa0dc7689ad82b112dbc032cea19f91d6b8e3582b9"
45
+ dependencies = [
46
+ "find-msvc-tools",
47
+ "shlex 2.0.1",
48
+ ]
49
+
50
+ [[package]]
51
+ name = "cexpr"
52
+ version = "0.6.0"
53
+ source = "registry+https://github.com/rust-lang/crates.io-index"
54
+ checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
55
+ dependencies = [
56
+ "nom",
57
+ ]
58
+
59
+ [[package]]
60
+ name = "cfg-if"
61
+ version = "1.0.4"
62
+ source = "registry+https://github.com/rust-lang/crates.io-index"
63
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
64
+
65
+ [[package]]
66
+ name = "clang-sys"
67
+ version = "1.9.1"
68
+ source = "registry+https://github.com/rust-lang/crates.io-index"
69
+ checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
70
+ dependencies = [
71
+ "glob",
72
+ "libc",
73
+ "libloading",
74
+ ]
75
+
76
+ [[package]]
77
+ name = "cmake"
78
+ version = "0.1.58"
79
+ source = "registry+https://github.com/rust-lang/crates.io-index"
80
+ checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678"
81
+ dependencies = [
82
+ "cc",
83
+ ]
84
+
85
+ [[package]]
86
+ name = "either"
87
+ version = "1.17.0"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
90
+
91
+ [[package]]
92
+ name = "find-msvc-tools"
93
+ version = "0.1.9"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
96
+
97
+ [[package]]
98
+ name = "futures-core"
99
+ version = "0.3.33"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7"
102
+
103
+ [[package]]
104
+ name = "futures-executor"
105
+ version = "0.3.33"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "6754879cc9f2c66f88c6e5c35344bb0bdb0708b0352b1201815667c7eabc7458"
108
+ dependencies = [
109
+ "futures-core",
110
+ "futures-task",
111
+ "futures-util",
112
+ ]
113
+
114
+ [[package]]
115
+ name = "futures-task"
116
+ version = "0.3.33"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+ checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109"
119
+
120
+ [[package]]
121
+ name = "futures-util"
122
+ version = "0.3.33"
123
+ source = "registry+https://github.com/rust-lang/crates.io-index"
124
+ checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa"
125
+ dependencies = [
126
+ "futures-core",
127
+ "futures-task",
128
+ "pin-project-lite",
129
+ "slab",
130
+ ]
131
+
132
+ [[package]]
133
+ name = "glob"
134
+ version = "0.3.4"
135
+ source = "registry+https://github.com/rust-lang/crates.io-index"
136
+ checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
137
+
138
+ [[package]]
139
+ name = "heck"
140
+ version = "0.5.0"
141
+ source = "registry+https://github.com/rust-lang/crates.io-index"
142
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
143
+
144
+ [[package]]
145
+ name = "inventory"
146
+ version = "0.3.24"
147
+ source = "registry+https://github.com/rust-lang/crates.io-index"
148
+ checksum = "a4f0c30c76f2f4ccee3fe55a2435f691ca00c0e4bd87abe4f4a851b1d4dac39b"
149
+ dependencies = [
150
+ "rustversion",
151
+ ]
152
+
153
+ [[package]]
154
+ name = "itertools"
155
+ version = "0.13.0"
156
+ source = "registry+https://github.com/rust-lang/crates.io-index"
157
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
158
+ dependencies = [
159
+ "either",
160
+ ]
161
+
162
+ [[package]]
163
+ name = "libc"
164
+ version = "0.2.189"
165
+ source = "registry+https://github.com/rust-lang/crates.io-index"
166
+ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
167
+
168
+ [[package]]
169
+ name = "libloading"
170
+ version = "0.8.9"
171
+ source = "registry+https://github.com/rust-lang/crates.io-index"
172
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
173
+ dependencies = [
174
+ "cfg-if",
175
+ "windows-link",
176
+ ]
177
+
178
+ [[package]]
179
+ name = "lock_api"
180
+ version = "0.4.14"
181
+ source = "registry+https://github.com/rust-lang/crates.io-index"
182
+ checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
183
+ dependencies = [
184
+ "scopeguard",
185
+ ]
186
+
187
+ [[package]]
188
+ name = "log"
189
+ version = "0.4.33"
190
+ source = "registry+https://github.com/rust-lang/crates.io-index"
191
+ checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
192
+
193
+ [[package]]
194
+ name = "memchr"
195
+ version = "2.8.3"
196
+ source = "registry+https://github.com/rust-lang/crates.io-index"
197
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
198
+
199
+ [[package]]
200
+ name = "minimal-lexical"
201
+ version = "0.2.1"
202
+ source = "registry+https://github.com/rust-lang/crates.io-index"
203
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
204
+
205
+ [[package]]
206
+ name = "nom"
207
+ version = "7.1.3"
208
+ source = "registry+https://github.com/rust-lang/crates.io-index"
209
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
210
+ dependencies = [
211
+ "memchr",
212
+ "minimal-lexical",
213
+ ]
214
+
215
+ [[package]]
216
+ name = "once_cell"
217
+ version = "1.21.4"
218
+ source = "registry+https://github.com/rust-lang/crates.io-index"
219
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
220
+
221
+ [[package]]
222
+ name = "parking_lot"
223
+ version = "0.12.5"
224
+ source = "registry+https://github.com/rust-lang/crates.io-index"
225
+ checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
226
+ dependencies = [
227
+ "lock_api",
228
+ "parking_lot_core",
229
+ ]
230
+
231
+ [[package]]
232
+ name = "parking_lot_core"
233
+ version = "0.9.12"
234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
235
+ checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
236
+ dependencies = [
237
+ "cfg-if",
238
+ "libc",
239
+ "redox_syscall",
240
+ "smallvec",
241
+ "windows-link",
242
+ ]
243
+
244
+ [[package]]
245
+ name = "pin-project-lite"
246
+ version = "0.2.17"
247
+ source = "registry+https://github.com/rust-lang/crates.io-index"
248
+ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
249
+
250
+ [[package]]
251
+ name = "portable-atomic"
252
+ version = "1.14.0"
253
+ source = "registry+https://github.com/rust-lang/crates.io-index"
254
+ checksum = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3"
255
+
256
+ [[package]]
257
+ name = "prettyplease"
258
+ version = "0.2.37"
259
+ source = "registry+https://github.com/rust-lang/crates.io-index"
260
+ checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
261
+ dependencies = [
262
+ "proc-macro2",
263
+ "syn 2.0.119",
264
+ ]
265
+
266
+ [[package]]
267
+ name = "proc-macro2"
268
+ version = "1.0.107"
269
+ source = "registry+https://github.com/rust-lang/crates.io-index"
270
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
271
+ dependencies = [
272
+ "unicode-ident",
273
+ ]
274
+
275
+ [[package]]
276
+ name = "pyo3"
277
+ version = "0.29.2"
278
+ source = "registry+https://github.com/rust-lang/crates.io-index"
279
+ checksum = "4688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b"
280
+ dependencies = [
281
+ "inventory",
282
+ "libc",
283
+ "once_cell",
284
+ "portable-atomic",
285
+ "pyo3-build-config",
286
+ "pyo3-ffi",
287
+ "pyo3-macros",
288
+ ]
289
+
290
+ [[package]]
291
+ name = "pyo3-build-config"
292
+ version = "0.29.2"
293
+ source = "registry+https://github.com/rust-lang/crates.io-index"
294
+ checksum = "f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9"
295
+ dependencies = [
296
+ "target-lexicon",
297
+ ]
298
+
299
+ [[package]]
300
+ name = "pyo3-ffi"
301
+ version = "0.29.2"
302
+ source = "registry+https://github.com/rust-lang/crates.io-index"
303
+ checksum = "e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327"
304
+ dependencies = [
305
+ "libc",
306
+ "pyo3-build-config",
307
+ ]
308
+
309
+ [[package]]
310
+ name = "pyo3-macros"
311
+ version = "0.29.2"
312
+ source = "registry+https://github.com/rust-lang/crates.io-index"
313
+ checksum = "73225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c"
314
+ dependencies = [
315
+ "proc-macro2",
316
+ "pyo3-macros-backend",
317
+ "quote",
318
+ "syn 2.0.119",
319
+ ]
320
+
321
+ [[package]]
322
+ name = "pyo3-macros-backend"
323
+ version = "0.29.2"
324
+ source = "registry+https://github.com/rust-lang/crates.io-index"
325
+ checksum = "571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952"
326
+ dependencies = [
327
+ "heck",
328
+ "proc-macro2",
329
+ "quote",
330
+ "syn 2.0.119",
331
+ ]
332
+
333
+ [[package]]
334
+ name = "quote"
335
+ version = "1.0.47"
336
+ source = "registry+https://github.com/rust-lang/crates.io-index"
337
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
338
+ dependencies = [
339
+ "proc-macro2",
340
+ ]
341
+
342
+ [[package]]
343
+ name = "redox_syscall"
344
+ version = "0.5.18"
345
+ source = "registry+https://github.com/rust-lang/crates.io-index"
346
+ checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
347
+ dependencies = [
348
+ "bitflags",
349
+ ]
350
+
351
+ [[package]]
352
+ name = "regex"
353
+ version = "1.13.1"
354
+ source = "registry+https://github.com/rust-lang/crates.io-index"
355
+ checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
356
+ dependencies = [
357
+ "aho-corasick",
358
+ "memchr",
359
+ "regex-automata",
360
+ "regex-syntax",
361
+ ]
362
+
363
+ [[package]]
364
+ name = "regex-automata"
365
+ version = "0.4.18"
366
+ source = "registry+https://github.com/rust-lang/crates.io-index"
367
+ checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
368
+ dependencies = [
369
+ "aho-corasick",
370
+ "memchr",
371
+ "regex-syntax",
372
+ ]
373
+
374
+ [[package]]
375
+ name = "regex-syntax"
376
+ version = "0.8.11"
377
+ source = "registry+https://github.com/rust-lang/crates.io-index"
378
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
379
+
380
+ [[package]]
381
+ name = "rustc-hash"
382
+ version = "2.1.3"
383
+ source = "registry+https://github.com/rust-lang/crates.io-index"
384
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
385
+
386
+ [[package]]
387
+ name = "rustversion"
388
+ version = "1.0.23"
389
+ source = "registry+https://github.com/rust-lang/crates.io-index"
390
+ checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
391
+
392
+ [[package]]
393
+ name = "scopeguard"
394
+ version = "1.2.0"
395
+ source = "registry+https://github.com/rust-lang/crates.io-index"
396
+ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
397
+
398
+ [[package]]
399
+ name = "semver"
400
+ version = "1.0.28"
401
+ source = "registry+https://github.com/rust-lang/crates.io-index"
402
+ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
403
+
404
+ [[package]]
405
+ name = "serial_test"
406
+ version = "4.0.1"
407
+ source = "registry+https://github.com/rust-lang/crates.io-index"
408
+ checksum = "a6df5ed973ad8d834e09f824f9e9f449af6b9a3745f78dec7cc752770bd3bf11"
409
+ dependencies = [
410
+ "futures-executor",
411
+ "futures-util",
412
+ "log",
413
+ "once_cell",
414
+ "parking_lot",
415
+ "serial_test_derive",
416
+ ]
417
+
418
+ [[package]]
419
+ name = "serial_test_derive"
420
+ version = "4.0.1"
421
+ source = "registry+https://github.com/rust-lang/crates.io-index"
422
+ checksum = "a22144e767da4ddd8416dbf383700542ffd8a5dc493dfecedfe1fe3ad03c98ae"
423
+ dependencies = [
424
+ "proc-macro2",
425
+ "quote",
426
+ "syn 3.0.3",
427
+ ]
428
+
429
+ [[package]]
430
+ name = "shlex"
431
+ version = "1.3.0"
432
+ source = "registry+https://github.com/rust-lang/crates.io-index"
433
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
434
+
435
+ [[package]]
436
+ name = "shlex"
437
+ version = "2.0.1"
438
+ source = "registry+https://github.com/rust-lang/crates.io-index"
439
+ checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
440
+
441
+ [[package]]
442
+ name = "slab"
443
+ version = "0.4.12"
444
+ source = "registry+https://github.com/rust-lang/crates.io-index"
445
+ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
446
+
447
+ [[package]]
448
+ name = "smallvec"
449
+ version = "1.15.2"
450
+ source = "registry+https://github.com/rust-lang/crates.io-index"
451
+ checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
452
+
453
+ [[package]]
454
+ name = "syn"
455
+ version = "2.0.119"
456
+ source = "registry+https://github.com/rust-lang/crates.io-index"
457
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
458
+ dependencies = [
459
+ "proc-macro2",
460
+ "quote",
461
+ "unicode-ident",
462
+ ]
463
+
464
+ [[package]]
465
+ name = "syn"
466
+ version = "3.0.3"
467
+ source = "registry+https://github.com/rust-lang/crates.io-index"
468
+ checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
469
+ dependencies = [
470
+ "proc-macro2",
471
+ "quote",
472
+ "unicode-ident",
473
+ ]
474
+
475
+ [[package]]
476
+ name = "target-lexicon"
477
+ version = "0.13.5"
478
+ source = "registry+https://github.com/rust-lang/crates.io-index"
479
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
480
+
481
+ [[package]]
482
+ name = "ttdal"
483
+ version = "0.1.0"
484
+ dependencies = [
485
+ "libc",
486
+ "semver",
487
+ "serial_test",
488
+ "ttdal-sys",
489
+ ]
490
+
491
+ [[package]]
492
+ name = "ttdal-py"
493
+ version = "0.1.0"
494
+ dependencies = [
495
+ "libc",
496
+ "pyo3",
497
+ "ttdal-sys",
498
+ ]
499
+
500
+ [[package]]
501
+ name = "ttdal-sys"
502
+ version = "0.1.0"
503
+ dependencies = [
504
+ "bindgen",
505
+ "cc",
506
+ "cmake",
507
+ "semver",
508
+ ]
509
+
510
+ [[package]]
511
+ name = "unicode-ident"
512
+ version = "1.0.24"
513
+ source = "registry+https://github.com/rust-lang/crates.io-index"
514
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
515
+
516
+ [[package]]
517
+ name = "windows-link"
518
+ version = "0.2.1"
519
+ source = "registry+https://github.com/rust-lang/crates.io-index"
520
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
@@ -0,0 +1,56 @@
1
+ [package]
2
+ name = "ttdal-sys"
3
+ version = { workspace = true }
4
+ edition = { workspace = true }
5
+ rust-version = { workspace = true }
6
+ description = "FFI bindings to ttdal"
7
+ readme = "sys/README.md"
8
+ repository = { workspace = true }
9
+ license = { workspace = true }
10
+ keywords = { workspace = true }
11
+ categories = { workspace = true }
12
+ links = "ttdal"
13
+ build = "sys/build.rs"
14
+ include = [
15
+ "/CMakeLists.txt",
16
+ "/LICENSE",
17
+ "/NOTICE",
18
+ "/cmake/**",
19
+ "/include/**",
20
+ "/src/**",
21
+ "/sys/**",
22
+ "/vendor/**",
23
+ ]
24
+
25
+ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
26
+
27
+ [lib]
28
+ path = "sys/src/lib.rs"
29
+
30
+ [build-dependencies]
31
+ bindgen = { workspace = true }
32
+ cc = { workspace = true }
33
+ cmake = { workspace = true }
34
+ semver = { workspace = true }
35
+
36
+ [workspace]
37
+ resolver = "2"
38
+ members = ["bind/py"]
39
+
40
+ [workspace.package]
41
+ version = "0.1.0"
42
+ edition = "2024"
43
+ rust-version = "1.87"
44
+ description = "Tenstorrent Device Access Library"
45
+ repository = "https://github.com/tenstorrent/tt-dal"
46
+ license = "Apache-2.0"
47
+ keywords = ["tenstorrent", "accelerator", "hardware", "driver", "ffi"]
48
+ categories = ["hardware-support", "api-bindings"]
49
+
50
+ [workspace.dependencies]
51
+ bindgen = "0.72.1"
52
+ cc = "1.4.0"
53
+ cmake = "0.1.58"
54
+ libc = "0.2.189"
55
+ semver = "1.0.28"
56
+ ttdal-sys = { path = ".", version = "0.1.0" }