ucm-toolkit 0.8.0__py3-none-any.whl

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 (277) hide show
  1. ucm_toolkit/__init__.py +17 -0
  2. ucm_toolkit/_resources/LICENSE +21 -0
  3. ucm_toolkit/_resources/dev-sandbox/.clang-format +35 -0
  4. ucm_toolkit/_resources/dev-sandbox/.github/workflows/lint-and-build.yml +57 -0
  5. ucm_toolkit/_resources/dev-sandbox/.github/workflows/push-check.yml +9 -0
  6. ucm_toolkit/_resources/dev-sandbox/.gitignore +47 -0
  7. ucm_toolkit/_resources/dev-sandbox/AGENTS.md +71 -0
  8. ucm_toolkit/_resources/dev-sandbox/CMakeLists.txt +29 -0
  9. ucm_toolkit/_resources/dev-sandbox/LICENSE +21 -0
  10. ucm_toolkit/_resources/dev-sandbox/cmake/DetectRuntime.cmake +187 -0
  11. ucm_toolkit/_resources/dev-sandbox/module/CMakeLists.txt +5 -0
  12. ucm_toolkit/_resources/dev-sandbox/module/aio/CMakeLists.txt +14 -0
  13. ucm_toolkit/_resources/dev-sandbox/module/aio/aio_engine.h +145 -0
  14. ucm_toolkit/_resources/dev-sandbox/module/aio/aio_impl.cc +181 -0
  15. ucm_toolkit/_resources/dev-sandbox/module/aio/aio_impl.h +71 -0
  16. ucm_toolkit/_resources/dev-sandbox/module/aio/aio_main.cc +221 -0
  17. ucm_toolkit/_resources/dev-sandbox/module/aio/block_opener.h +113 -0
  18. ucm_toolkit/_resources/dev-sandbox/module/aio/block_type.h +51 -0
  19. ucm_toolkit/_resources/dev-sandbox/module/aio/error_handle.h +39 -0
  20. ucm_toolkit/_resources/dev-sandbox/module/aio/host_buffer.cc +56 -0
  21. ucm_toolkit/_resources/dev-sandbox/module/aio/host_buffer.h +57 -0
  22. ucm_toolkit/_resources/dev-sandbox/module/aio/host_buffer_ascend.cc +74 -0
  23. ucm_toolkit/_resources/dev-sandbox/module/aio/host_buffer_cuda.cc +73 -0
  24. ucm_toolkit/_resources/dev-sandbox/module/aio/space_layout.h +81 -0
  25. ucm_toolkit/_resources/dev-sandbox/module/copy/CMakeLists.txt +39 -0
  26. ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/copy_buffer_ascend.h +274 -0
  27. ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/copy_case_ascend.cc +201 -0
  28. ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/copy_instance_ascend.h +340 -0
  29. ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/copy_runtime_ascend.cc +29 -0
  30. ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/error_handle_ascend.h +44 -0
  31. ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/ffts_direct_h2d/copy_case_ffts_direct_h2d_ascend.cc +189 -0
  32. ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/ffts_direct_h2d/copy_instance_ffts_direct_h2d_ascend.h +174 -0
  33. ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/ffts_direct_h2d/mapped_host_buffer_ffts_direct_h2d_ascend.h +298 -0
  34. ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/forked_copy_runner_ascend.h +286 -0
  35. ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/h2d_ffts_pipeline/ffts_d2d_dispatcher_ascend.h +212 -0
  36. ucm_toolkit/_resources/dev-sandbox/module/copy/copy_buffer.h +53 -0
  37. ucm_toolkit/_resources/dev-sandbox/module/copy/copy_case.h +103 -0
  38. ucm_toolkit/_resources/dev-sandbox/module/copy/copy_instance.h +93 -0
  39. ucm_toolkit/_resources/dev-sandbox/module/copy/copy_main.cc +125 -0
  40. ucm_toolkit/_resources/dev-sandbox/module/copy/copy_result.h +106 -0
  41. ucm_toolkit/_resources/dev-sandbox/module/copy/copy_runtime.h +33 -0
  42. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/copy_buffer_cuda.h +91 -0
  43. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/copy_case_cuda.cc +227 -0
  44. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/copy_instance_cuda.h +324 -0
  45. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/copy_kernel_cuda.cu +70 -0
  46. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/copy_runtime_cuda.cc +28 -0
  47. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/error_handle_cuda.h +43 -0
  48. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/copy_buffer_gdr.h +145 -0
  49. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/copy_case_gdr.cc +133 -0
  50. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/copy_instance_gdr.h +129 -0
  51. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/error_handle_gdr.h +61 -0
  52. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/rdma_channel_gdr.cc +323 -0
  53. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/rdma_channel_gdr.h +95 -0
  54. ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/submit_executor_gdr.h +148 -0
  55. ucm_toolkit/_resources/dev-sandbox/module/copy/error_handle.h +37 -0
  56. ucm_toolkit/_resources/dev-sandbox/module/copy/simu/copy_buffer_simu.h +98 -0
  57. ucm_toolkit/_resources/dev-sandbox/module/copy/simu/copy_case_simu.cc +60 -0
  58. ucm_toolkit/_resources/dev-sandbox/module/copy/simu/copy_instance_simu.h +93 -0
  59. ucm_toolkit/_resources/dev-sandbox/module/copy/simu/copy_runtime_simu.cc +28 -0
  60. ucm_toolkit/_resources/dev-sandbox/module/logger/CMakeLists.txt +5 -0
  61. ucm_toolkit/_resources/dev-sandbox/module/logger/logger.cc +215 -0
  62. ucm_toolkit/_resources/dev-sandbox/module/logger/logger.h +72 -0
  63. ucm_toolkit/_resources/dev-sandbox/module/logger/logger_example.cc +53 -0
  64. ucm_toolkit/_resources/dev-sandbox/module/trans/CMakeLists.txt +22 -0
  65. ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_assert_ascend.h +52 -0
  66. ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_case_ascend.cc +213 -0
  67. ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_device_buffer_ascend.h +49 -0
  68. ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_host_buffer_ascend.h +98 -0
  69. ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_runtime_ascend.cc +29 -0
  70. ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_template_ascend.h +300 -0
  71. ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_assert_cuda.h +51 -0
  72. ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_case_cuda.cc +209 -0
  73. ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_device_buffer_cuda.h +49 -0
  74. ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_host_buffer_cuda.h +98 -0
  75. ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_kernel_cuda.cu +71 -0
  76. ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_kernel_cuda.h +32 -0
  77. ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_runtime_cuda.cc +27 -0
  78. ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_template_cuda.h +265 -0
  79. ucm_toolkit/_resources/dev-sandbox/module/trans/simu/trans_assert_simu.h +37 -0
  80. ucm_toolkit/_resources/dev-sandbox/module/trans/simu/trans_buffer_simu.h +91 -0
  81. ucm_toolkit/_resources/dev-sandbox/module/trans/simu/trans_case_simu.cc +78 -0
  82. ucm_toolkit/_resources/dev-sandbox/module/trans/simu/trans_runtime_simu.cc +27 -0
  83. ucm_toolkit/_resources/dev-sandbox/module/trans/simu/trans_template_simu.h +76 -0
  84. ucm_toolkit/_resources/dev-sandbox/module/trans/trans_buffer.h +52 -0
  85. ucm_toolkit/_resources/dev-sandbox/module/trans/trans_case.h +139 -0
  86. ucm_toolkit/_resources/dev-sandbox/module/trans/trans_main.cc +150 -0
  87. ucm_toolkit/_resources/dev-sandbox/module/trans/trans_result.h +101 -0
  88. ucm_toolkit/_resources/dev-sandbox/module/trans/trans_runtime.h +33 -0
  89. ucm_toolkit/_resources/dev-sandbox/module/trans/trans_stopwatch.h +43 -0
  90. ucm_toolkit/_resources/dev-sandbox/module/trans/trans_template.h +79 -0
  91. ucm_toolkit/_resources/dev-sandbox/readme.md +120 -0
  92. ucm_toolkit/_resources/dev-sandbox/vendor/CMakeLists.txt +5 -0
  93. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.clang-format +15 -0
  94. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/dependabot.yml +8 -0
  95. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/issue_template.md +6 -0
  96. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/pull_request_template.md +7 -0
  97. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/cifuzz.yml +32 -0
  98. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/doc.yml +42 -0
  99. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/lint.yml +28 -0
  100. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/linux.yml +176 -0
  101. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/macos.yml +58 -0
  102. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/scorecard.yml +65 -0
  103. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/windows.yml +95 -0
  104. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.gitignore +21 -0
  105. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/CMakeLists.txt +535 -0
  106. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/CONTRIBUTING.md +20 -0
  107. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/ChangeLog.md +3050 -0
  108. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/LICENSE +27 -0
  109. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/README.md +485 -0
  110. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/ChangeLog-old.md +3290 -0
  111. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/api.md +679 -0
  112. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/fmt.css +61 -0
  113. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/fmt.js +4 -0
  114. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/get-started.md +222 -0
  115. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/index.md +151 -0
  116. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/perf.svg +1 -0
  117. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/python-license.txt +290 -0
  118. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/syntax.md +886 -0
  119. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/args.h +220 -0
  120. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/base.h +2989 -0
  121. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/chrono.h +2330 -0
  122. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/color.h +637 -0
  123. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/compile.h +539 -0
  124. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/core.h +5 -0
  125. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/format-inl.h +1948 -0
  126. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/format.h +4244 -0
  127. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/os.h +427 -0
  128. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/ostream.h +167 -0
  129. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/printf.h +633 -0
  130. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/ranges.h +850 -0
  131. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/std.h +728 -0
  132. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/xchar.h +369 -0
  133. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/src/fmt.cc +153 -0
  134. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/src/format.cc +46 -0
  135. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/src/os.cc +398 -0
  136. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/Android.mk +15 -0
  137. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/AndroidManifest.xml +1 -0
  138. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/C++.sublime-syntax +2061 -0
  139. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/README +4 -0
  140. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/Vagrantfile +19 -0
  141. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/bazel/.bazelversion +1 -0
  142. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/bazel/BUILD.bazel +22 -0
  143. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/bazel/MODULE.bazel +7 -0
  144. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/bazel/README.md +28 -0
  145. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/bazel/WORKSPACE.bazel +2 -0
  146. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/build.gradle +132 -0
  147. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/check-commits +71 -0
  148. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/cmake/FindSetEnv.cmake +7 -0
  149. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/cmake/JoinPaths.cmake +26 -0
  150. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/cmake/fmt-config.cmake.in +7 -0
  151. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/cmake/fmt.pc.in +11 -0
  152. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/docopt.py +586 -0
  153. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/mkdocs +82 -0
  154. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/mkdocs.yml +48 -0
  155. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/printable.py +224 -0
  156. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/python/mkdocstrings_handlers/cxx/__init__.py +357 -0
  157. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/python/mkdocstrings_handlers/cxx/templates/README +1 -0
  158. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/release.py +209 -0
  159. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/CMakeLists.txt +257 -0
  160. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/add-subdirectory-test/CMakeLists.txt +17 -0
  161. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/add-subdirectory-test/main.cc +5 -0
  162. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/args-test.cc +202 -0
  163. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/assert-test.cc +31 -0
  164. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/base-test.cc +902 -0
  165. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/chrono-test.cc +1023 -0
  166. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/color-test.cc +129 -0
  167. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/compile-error-test/CMakeLists.txt +215 -0
  168. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/compile-fp-test.cc +61 -0
  169. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/compile-test.cc +423 -0
  170. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/cuda-test/CMakeLists.txt +73 -0
  171. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/cuda-test/cpp14.cc +11 -0
  172. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/cuda-test/cuda-cpp14.cu +28 -0
  173. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/detect-stdfs.cc +18 -0
  174. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/enforce-checks-test.cc +65 -0
  175. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/find-package-test/CMakeLists.txt +17 -0
  176. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/find-package-test/main.cc +5 -0
  177. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/format-impl-test.cc +477 -0
  178. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/format-test.cc +2567 -0
  179. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/.gitignore +3 -0
  180. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/CMakeLists.txt +30 -0
  181. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/README.md +25 -0
  182. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/build.sh +90 -0
  183. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/chrono-duration.cc +136 -0
  184. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/chrono-timepoint.cc +32 -0
  185. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/float.cc +39 -0
  186. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/fuzzer-common.h +77 -0
  187. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/main.cc +22 -0
  188. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/named-arg.cc +102 -0
  189. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/one-arg.cc +92 -0
  190. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/two-args.cc +106 -0
  191. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/.clang-format +3 -0
  192. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/CMakeLists.txt +32 -0
  193. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/gmock/gmock.h +11659 -0
  194. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/gmock-gtest-all.cc +14442 -0
  195. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/gtest/gtest-spi.h +238 -0
  196. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/gtest/gtest.h +12399 -0
  197. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest-extra-test.cc +410 -0
  198. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest-extra.cc +80 -0
  199. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest-extra.h +165 -0
  200. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/header-only-test.cc +11 -0
  201. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/mock-allocator.h +77 -0
  202. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/module-test.cc +520 -0
  203. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/no-builtin-types-test.cc +25 -0
  204. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/noexception-test.cc +18 -0
  205. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/os-test.cc +592 -0
  206. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/ostream-test.cc +308 -0
  207. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/perf-sanity.cc +25 -0
  208. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/posix-mock-test.cc +442 -0
  209. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/posix-mock.h +75 -0
  210. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/printf-test.cc +568 -0
  211. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/ranges-odr-test.cc +18 -0
  212. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/ranges-test.cc +799 -0
  213. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/scan-test.cc +184 -0
  214. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/scan.h +669 -0
  215. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/static-export-test/CMakeLists.txt +30 -0
  216. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/static-export-test/library.cc +5 -0
  217. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/static-export-test/main.cc +6 -0
  218. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/std-test.cc +417 -0
  219. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/test-assert.h +39 -0
  220. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/test-main.cc +43 -0
  221. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/unicode-test.cc +48 -0
  222. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/util.cc +48 -0
  223. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/util.h +83 -0
  224. ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/xchar-test.cc +421 -0
  225. ucm_toolkit/_resources/nic_monitor_pro.sh +310 -0
  226. ucm_toolkit/_resources/posixstore_aio_test.py +198 -0
  227. ucm_toolkit/_version.py +1 -0
  228. ucm_toolkit/cli.py +48 -0
  229. ucm_toolkit/commands/__init__.py +1 -0
  230. ucm_toolkit/commands/build.py +37 -0
  231. ucm_toolkit/commands/clean.py +24 -0
  232. ucm_toolkit/commands/doctor.py +26 -0
  233. ucm_toolkit/commands/list.py +29 -0
  234. ucm_toolkit/commands/run.py +24 -0
  235. ucm_toolkit/errors.py +73 -0
  236. ucm_toolkit/registry.py +92 -0
  237. ucm_toolkit/resources.py +31 -0
  238. ucm_toolkit/runner.py +46 -0
  239. ucm_toolkit/tools/__init__.py +1 -0
  240. ucm_toolkit/tools/dev_sandbox/__init__.py +5 -0
  241. ucm_toolkit/tools/dev_sandbox/adapter.py +285 -0
  242. ucm_toolkit/tools/metrics_view/__init__.py +5 -0
  243. ucm_toolkit/tools/metrics_view/adapter.py +47 -0
  244. ucm_toolkit/tools/metrics_view/configs/connector.json +1003 -0
  245. ucm_toolkit/tools/metrics_view/configs/metrics_lite.json +183 -0
  246. ucm_toolkit/tools/metrics_view/configs/store.json +1779 -0
  247. ucm_toolkit/tools/metrics_view/configs/vllm.json +417 -0
  248. ucm_toolkit/tools/metrics_view/metrics_cli.py +11 -0
  249. ucm_toolkit/tools/metrics_view/terminal_view_metrics/__init__.py +1 -0
  250. ucm_toolkit/tools/metrics_view/terminal_view_metrics/cli.py +338 -0
  251. ucm_toolkit/tools/metrics_view/terminal_view_metrics/collector.py +100 -0
  252. ucm_toolkit/tools/metrics_view/terminal_view_metrics/config.py +178 -0
  253. ucm_toolkit/tools/metrics_view/terminal_view_metrics/parser.py +80 -0
  254. ucm_toolkit/tools/metrics_view/terminal_view_metrics/promql.py +635 -0
  255. ucm_toolkit/tools/metrics_view/terminal_view_metrics/query.py +371 -0
  256. ucm_toolkit/tools/metrics_view/terminal_view_metrics/render.py +116 -0
  257. ucm_toolkit/tools/metrics_view/terminal_view_metrics/snapshot.py +193 -0
  258. ucm_toolkit/tools/metrics_view/terminal_view_metrics/storage.py +154 -0
  259. ucm_toolkit/tools/nic_monitor/__init__.py +5 -0
  260. ucm_toolkit/tools/nic_monitor/adapter.py +77 -0
  261. ucm_toolkit/tools/posix_aio/__init__.py +5 -0
  262. ucm_toolkit/tools/posix_aio/adapter.py +399 -0
  263. ucm_toolkit/tools/posix_aio/model_profile.py +316 -0
  264. ucm_toolkit/tools/precheck/__init__.py +7 -0
  265. ucm_toolkit/tools/precheck/adapter.py +42 -0
  266. ucm_toolkit/tools/precheck/bandwidth.py +976 -0
  267. ucm_toolkit/tools/precheck/checks.py +534 -0
  268. ucm_toolkit/tools/precheck/cli.py +303 -0
  269. ucm_toolkit/tools/precheck/config.py +218 -0
  270. ucm_toolkit/tools/precheck/parseutil.py +233 -0
  271. ucm_toolkit/tools/precheck/precheck.defaults.json +23 -0
  272. ucm_toolkit/tools/precheck/reporter.py +156 -0
  273. ucm_toolkit-0.8.0.dist-info/METADATA +26 -0
  274. ucm_toolkit-0.8.0.dist-info/RECORD +277 -0
  275. ucm_toolkit-0.8.0.dist-info/WHEEL +5 -0
  276. ucm_toolkit-0.8.0.dist-info/entry_points.txt +2 -0
  277. ucm_toolkit-0.8.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,4 @@
1
+ This directory contains build support files such as
2
+
3
+ * CMake modules
4
+ * Build scripts
@@ -0,0 +1,19 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ # A vagrant config for testing against gcc-4.8.
5
+ Vagrant.configure("2") do |config|
6
+ config.vm.box = "bento/ubuntu-22.04-arm64"
7
+
8
+ config.vm.provider "vmware_desktop" do |vb|
9
+ vb.memory = "4096"
10
+ end
11
+
12
+ config.vm.provision "shell", inline: <<-SHELL
13
+ apt-get update
14
+ apt-get install -y g++ make wget git
15
+ wget -q https://github.com/Kitware/CMake/releases/download/v3.26.0/cmake-3.26.0-Linux-x86_64.tar.gz
16
+ tar xzf cmake-3.26.0-Linux-x86_64.tar.gz
17
+ ln -s `pwd`/cmake-3.26.0-Linux-x86_64/bin/cmake /usr/local/bin
18
+ SHELL
19
+ end
@@ -0,0 +1,22 @@
1
+ load("@rules_cc//cc:defs.bzl", "cc_library")
2
+
3
+ cc_library(
4
+ name = "fmt",
5
+ srcs = [
6
+ #"src/fmt.cc", # No C++ module support, yet in Bazel (https://github.com/bazelbuild/bazel/pull/19940)
7
+ "src/format.cc",
8
+ "src/os.cc",
9
+ ],
10
+ hdrs = glob([
11
+ "include/fmt/*.h",
12
+ ]),
13
+ copts = select({
14
+ "@platforms//os:windows": ["-utf-8"],
15
+ "//conditions:default": [],
16
+ }),
17
+ includes = [
18
+ "include",
19
+ ],
20
+ strip_include_prefix = "include",
21
+ visibility = ["//visibility:public"],
22
+ )
@@ -0,0 +1,7 @@
1
+ module(
2
+ name = "fmt",
3
+ compatibility_level = 10,
4
+ )
5
+
6
+ bazel_dep(name = "platforms", version = "0.0.11")
7
+ bazel_dep(name = "rules_cc", version = "0.1.1")
@@ -0,0 +1,28 @@
1
+ # Bazel support
2
+
3
+ To get [Bazel](https://bazel.build/) working with {fmt} you can copy the files `BUILD.bazel`,
4
+ `MODULE.bazel`, `WORKSPACE.bazel`, and `.bazelversion` from this folder (`support/bazel`) to the root folder of this project.
5
+ This way {fmt} gets bazelized and can be used with Bazel (e.g. doing a `bazel build //...` on {fmt}).
6
+
7
+ ## Using {fmt} as a dependency
8
+
9
+ ### Using Bzlmod
10
+
11
+ The [Bazel Central Registry](https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/fmt) provides support for {fmt}.
12
+
13
+ For instance, to use {fmt} add to your `MODULE.bazel` file:
14
+
15
+ ```
16
+ bazel_dep(name = "fmt", version = "11.1.4")
17
+ ```
18
+
19
+ ### Live at head
20
+
21
+ For a live-at-head approach, you can copy the contents of this repository and move the Bazel-related build files to the root folder of this project as described above and make use of `local_path_override`, e.g.:
22
+
23
+ ```
24
+ local_path_override(
25
+ module_name = "fmt",
26
+ path = "../third_party/fmt",
27
+ )
28
+ ```
@@ -0,0 +1,2 @@
1
+ # WORKSPACE marker file needed by Bazel
2
+
@@ -0,0 +1,132 @@
1
+ import java.nio.file.Paths
2
+
3
+ // General gradle arguments for root project
4
+ buildscript {
5
+ repositories {
6
+ google()
7
+ jcenter()
8
+ }
9
+ dependencies {
10
+ //
11
+ // https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
12
+ //
13
+ // Notice that 4.0.0 here is the version of [Android Gradle Plugin]
14
+ // According to URL above you will need Gradle 6.1 or higher
15
+ //
16
+ classpath "com.android.tools.build:gradle:4.1.1"
17
+ }
18
+ }
19
+ repositories {
20
+ google()
21
+ jcenter()
22
+ }
23
+
24
+ // Project's root where CMakeLists.txt exists: rootDir/support/.cxx -> rootDir
25
+ def rootDir = Paths.get(project.buildDir.getParent()).getParent()
26
+ println("rootDir: ${rootDir}")
27
+
28
+ // Output: Shared library (.so) for Android
29
+ apply plugin: "com.android.library"
30
+ android {
31
+ compileSdkVersion 25 // Android 7.0
32
+
33
+ // Target ABI
34
+ // - This option controls target platform of module
35
+ // - The platform might be limited by compiler's support
36
+ // some can work with Clang(default), but some can work only with GCC...
37
+ // if bad, both toolchains might not support it
38
+ splits {
39
+ abi {
40
+ enable true
41
+ // Specify platforms for Application
42
+ reset()
43
+ include "arm64-v8a", "armeabi-v7a", "x86_64"
44
+ }
45
+ }
46
+ ndkVersion "21.3.6528147" // ANDROID_NDK_HOME is deprecated. Be explicit
47
+
48
+ defaultConfig {
49
+ minSdkVersion 21 // Android 5.0+
50
+ targetSdkVersion 25 // Follow Compile SDK
51
+ versionCode 34 // Follow release count
52
+ versionName "7.1.2" // Follow Official version
53
+
54
+ externalNativeBuild {
55
+ cmake {
56
+ arguments "-DANDROID_STL=c++_shared" // Specify Android STL
57
+ arguments "-DBUILD_SHARED_LIBS=true" // Build shared object
58
+ arguments "-DFMT_TEST=false" // Skip test
59
+ arguments "-DFMT_DOC=false" // Skip document
60
+ cppFlags "-std=c++17"
61
+ targets "fmt"
62
+ }
63
+ }
64
+ println(externalNativeBuild.cmake.cppFlags)
65
+ println(externalNativeBuild.cmake.arguments)
66
+ }
67
+
68
+ // External Native build
69
+ // - Use existing CMakeList.txt
70
+ // - Give path to CMake. This gradle file should be
71
+ // neighbor of the top level cmake
72
+ externalNativeBuild {
73
+ cmake {
74
+ version "3.10.0+"
75
+ path "${rootDir}/CMakeLists.txt"
76
+ // buildStagingDirectory "./build" // Custom path for cmake output
77
+ }
78
+ }
79
+
80
+ sourceSets{
81
+ // Android Manifest for Gradle
82
+ main {
83
+ manifest.srcFile "AndroidManifest.xml"
84
+ }
85
+ }
86
+
87
+ // https://developer.android.com/studio/build/native-dependencies#build_system_configuration
88
+ buildFeatures {
89
+ prefab true
90
+ prefabPublishing true
91
+ }
92
+ prefab {
93
+ fmt {
94
+ headers "${rootDir}/include"
95
+ }
96
+ }
97
+ }
98
+
99
+ assemble.doLast
100
+ {
101
+ // Instead of `ninja install`, Gradle will deploy the files.
102
+ // We are doing this since FMT is dependent to the ANDROID_STL after build
103
+ copy {
104
+ from "build/intermediates/cmake"
105
+ into "${rootDir}/libs"
106
+ }
107
+ // Copy debug binaries
108
+ copy {
109
+ from "${rootDir}/libs/debug/obj"
110
+ into "${rootDir}/libs/debug"
111
+ }
112
+ // Copy Release binaries
113
+ copy {
114
+ from "${rootDir}/libs/release/obj"
115
+ into "${rootDir}/libs/release"
116
+ }
117
+ // Remove empty directory
118
+ delete "${rootDir}/libs/debug/obj"
119
+ delete "${rootDir}/libs/release/obj"
120
+
121
+ // Copy AAR files. Notice that the aar is named after the folder of this script.
122
+ copy {
123
+ from "build/outputs/aar/support-release.aar"
124
+ into "${rootDir}/libs"
125
+ rename "support-release.aar", "fmt-release.aar"
126
+ }
127
+ copy {
128
+ from "build/outputs/aar/support-debug.aar"
129
+ into "${rootDir}/libs"
130
+ rename "support-debug.aar", "fmt-debug.aar"
131
+ }
132
+ }
@@ -0,0 +1,71 @@
1
+ #!/usr/bin/env python3
2
+
3
+ """Compile source on a range of commits
4
+
5
+ Usage:
6
+ check-commits <start> <source>
7
+ """
8
+
9
+ import os
10
+ import sys
11
+ import tempfile
12
+ from subprocess import check_call, check_output, run
13
+
14
+ import docopt
15
+
16
+ args = docopt.docopt(__doc__)
17
+ start = args.get("<start>")
18
+ source = args.get("<source>")
19
+
20
+ cwd = os.getcwd()
21
+
22
+ with tempfile.TemporaryDirectory() as work_dir:
23
+ check_call(["git", "clone", "https://github.com/fmtlib/fmt.git"], cwd=work_dir)
24
+ repo_dir = os.path.join(work_dir, "fmt")
25
+ commits = (
26
+ check_output(
27
+ [
28
+ "git",
29
+ "rev-list",
30
+ f"{start}..HEAD",
31
+ "--abbrev-commit",
32
+ "--",
33
+ "include",
34
+ "src",
35
+ ],
36
+ text=True,
37
+ cwd=repo_dir,
38
+ )
39
+ .rstrip()
40
+ .split("\n")
41
+ )
42
+ commits.reverse()
43
+ print("Time\tCommit")
44
+ for commit in commits:
45
+ check_call(
46
+ ["git", "-c", "advice.detachedHead=false", "checkout", commit], cwd=repo_dir
47
+ )
48
+ returncode = run(
49
+ [
50
+ "c++",
51
+ "-std=c++11",
52
+ "-O3",
53
+ "-DNDEBUG",
54
+ "-I",
55
+ "include",
56
+ "src/format.cc",
57
+ os.path.join(cwd, source),
58
+ ],
59
+ cwd=repo_dir,
60
+ ).returncode
61
+ if returncode != 0:
62
+ continue
63
+ times = []
64
+ for i in range(5):
65
+ output = check_output([os.path.join(repo_dir, "a.out")], text=True)
66
+ times.append(float(output))
67
+ message = check_output(
68
+ ["git", "log", "-1", "--pretty=format:%s", commit], cwd=repo_dir, text=True
69
+ )
70
+ print(f"{min(times)}\t{commit} {message[:40]}")
71
+ sys.stdout.flush()
@@ -0,0 +1,7 @@
1
+ # A CMake script to find SetEnv.cmd.
2
+
3
+ find_program(WINSDK_SETENV NAMES SetEnv.cmd
4
+ PATHS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows;CurrentInstallFolder]/bin")
5
+ if (WINSDK_SETENV AND PRINT_PATH)
6
+ execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${WINSDK_SETENV}")
7
+ endif ()
@@ -0,0 +1,26 @@
1
+ # This module provides function for joining paths
2
+ # known from from most languages
3
+ #
4
+ # Original license:
5
+ # SPDX-License-Identifier: (MIT OR CC0-1.0)
6
+ # Explicit permission given to distribute this module under
7
+ # the terms of the project as described in /LICENSE.rst.
8
+ # Copyright 2020 Jan Tojnar
9
+ # https://github.com/jtojnar/cmake-snips
10
+ #
11
+ # Modelled after Python’s os.path.join
12
+ # https://docs.python.org/3.7/library/os.path.html#os.path.join
13
+ # Windows not supported
14
+ function(join_paths joined_path first_path_segment)
15
+ set(temp_path "${first_path_segment}")
16
+ foreach(current_segment IN LISTS ARGN)
17
+ if(NOT ("${current_segment}" STREQUAL ""))
18
+ if(IS_ABSOLUTE "${current_segment}")
19
+ set(temp_path "${current_segment}")
20
+ else()
21
+ set(temp_path "${temp_path}/${current_segment}")
22
+ endif()
23
+ endif()
24
+ endforeach()
25
+ set(${joined_path} "${temp_path}" PARENT_SCOPE)
26
+ endfunction()
@@ -0,0 +1,7 @@
1
+ @PACKAGE_INIT@
2
+
3
+ if (NOT TARGET fmt::fmt)
4
+ include(${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake)
5
+ endif ()
6
+
7
+ check_required_components(fmt)
@@ -0,0 +1,11 @@
1
+ prefix=@CMAKE_INSTALL_PREFIX@
2
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
3
+ libdir=@libdir_for_pc_file@
4
+ includedir=@includedir_for_pc_file@
5
+
6
+ Name: fmt
7
+ Description: A modern formatting library
8
+ Version: @FMT_VERSION@
9
+ Libs: -L${libdir} -l@FMT_LIB_NAME@
10
+ Cflags: -I${includedir}
11
+