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.
- ucm_toolkit/__init__.py +17 -0
- ucm_toolkit/_resources/LICENSE +21 -0
- ucm_toolkit/_resources/dev-sandbox/.clang-format +35 -0
- ucm_toolkit/_resources/dev-sandbox/.github/workflows/lint-and-build.yml +57 -0
- ucm_toolkit/_resources/dev-sandbox/.github/workflows/push-check.yml +9 -0
- ucm_toolkit/_resources/dev-sandbox/.gitignore +47 -0
- ucm_toolkit/_resources/dev-sandbox/AGENTS.md +71 -0
- ucm_toolkit/_resources/dev-sandbox/CMakeLists.txt +29 -0
- ucm_toolkit/_resources/dev-sandbox/LICENSE +21 -0
- ucm_toolkit/_resources/dev-sandbox/cmake/DetectRuntime.cmake +187 -0
- ucm_toolkit/_resources/dev-sandbox/module/CMakeLists.txt +5 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/CMakeLists.txt +14 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/aio_engine.h +145 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/aio_impl.cc +181 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/aio_impl.h +71 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/aio_main.cc +221 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/block_opener.h +113 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/block_type.h +51 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/error_handle.h +39 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/host_buffer.cc +56 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/host_buffer.h +57 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/host_buffer_ascend.cc +74 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/host_buffer_cuda.cc +73 -0
- ucm_toolkit/_resources/dev-sandbox/module/aio/space_layout.h +81 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/CMakeLists.txt +39 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/copy_buffer_ascend.h +274 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/copy_case_ascend.cc +201 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/copy_instance_ascend.h +340 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/copy_runtime_ascend.cc +29 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/error_handle_ascend.h +44 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/ffts_direct_h2d/copy_case_ffts_direct_h2d_ascend.cc +189 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/ffts_direct_h2d/copy_instance_ffts_direct_h2d_ascend.h +174 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/ffts_direct_h2d/mapped_host_buffer_ffts_direct_h2d_ascend.h +298 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/forked_copy_runner_ascend.h +286 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/ascend/h2d_ffts_pipeline/ffts_d2d_dispatcher_ascend.h +212 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/copy_buffer.h +53 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/copy_case.h +103 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/copy_instance.h +93 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/copy_main.cc +125 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/copy_result.h +106 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/copy_runtime.h +33 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/copy_buffer_cuda.h +91 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/copy_case_cuda.cc +227 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/copy_instance_cuda.h +324 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/copy_kernel_cuda.cu +70 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/copy_runtime_cuda.cc +28 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/error_handle_cuda.h +43 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/copy_buffer_gdr.h +145 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/copy_case_gdr.cc +133 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/copy_instance_gdr.h +129 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/error_handle_gdr.h +61 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/rdma_channel_gdr.cc +323 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/rdma_channel_gdr.h +95 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/cuda/gdr/submit_executor_gdr.h +148 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/error_handle.h +37 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/simu/copy_buffer_simu.h +98 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/simu/copy_case_simu.cc +60 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/simu/copy_instance_simu.h +93 -0
- ucm_toolkit/_resources/dev-sandbox/module/copy/simu/copy_runtime_simu.cc +28 -0
- ucm_toolkit/_resources/dev-sandbox/module/logger/CMakeLists.txt +5 -0
- ucm_toolkit/_resources/dev-sandbox/module/logger/logger.cc +215 -0
- ucm_toolkit/_resources/dev-sandbox/module/logger/logger.h +72 -0
- ucm_toolkit/_resources/dev-sandbox/module/logger/logger_example.cc +53 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/CMakeLists.txt +22 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_assert_ascend.h +52 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_case_ascend.cc +213 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_device_buffer_ascend.h +49 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_host_buffer_ascend.h +98 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_runtime_ascend.cc +29 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/ascend/trans_template_ascend.h +300 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_assert_cuda.h +51 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_case_cuda.cc +209 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_device_buffer_cuda.h +49 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_host_buffer_cuda.h +98 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_kernel_cuda.cu +71 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_kernel_cuda.h +32 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_runtime_cuda.cc +27 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/cuda/trans_template_cuda.h +265 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/simu/trans_assert_simu.h +37 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/simu/trans_buffer_simu.h +91 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/simu/trans_case_simu.cc +78 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/simu/trans_runtime_simu.cc +27 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/simu/trans_template_simu.h +76 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/trans_buffer.h +52 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/trans_case.h +139 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/trans_main.cc +150 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/trans_result.h +101 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/trans_runtime.h +33 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/trans_stopwatch.h +43 -0
- ucm_toolkit/_resources/dev-sandbox/module/trans/trans_template.h +79 -0
- ucm_toolkit/_resources/dev-sandbox/readme.md +120 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/CMakeLists.txt +5 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.clang-format +15 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/dependabot.yml +8 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/issue_template.md +6 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/pull_request_template.md +7 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/cifuzz.yml +32 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/doc.yml +42 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/lint.yml +28 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/linux.yml +176 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/macos.yml +58 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/scorecard.yml +65 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.github/workflows/windows.yml +95 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/.gitignore +21 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/CMakeLists.txt +535 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/CONTRIBUTING.md +20 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/ChangeLog.md +3050 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/LICENSE +27 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/README.md +485 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/ChangeLog-old.md +3290 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/api.md +679 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/fmt.css +61 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/fmt.js +4 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/get-started.md +222 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/index.md +151 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/perf.svg +1 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/python-license.txt +290 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/doc/syntax.md +886 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/args.h +220 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/base.h +2989 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/chrono.h +2330 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/color.h +637 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/compile.h +539 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/core.h +5 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/format-inl.h +1948 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/format.h +4244 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/os.h +427 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/ostream.h +167 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/printf.h +633 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/ranges.h +850 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/std.h +728 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/include/fmt/xchar.h +369 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/src/fmt.cc +153 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/src/format.cc +46 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/src/os.cc +398 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/Android.mk +15 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/AndroidManifest.xml +1 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/C++.sublime-syntax +2061 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/README +4 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/Vagrantfile +19 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/bazel/.bazelversion +1 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/bazel/BUILD.bazel +22 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/bazel/MODULE.bazel +7 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/bazel/README.md +28 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/bazel/WORKSPACE.bazel +2 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/build.gradle +132 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/check-commits +71 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/cmake/FindSetEnv.cmake +7 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/cmake/JoinPaths.cmake +26 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/cmake/fmt-config.cmake.in +7 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/cmake/fmt.pc.in +11 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/docopt.py +586 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/mkdocs +82 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/mkdocs.yml +48 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/printable.py +224 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/python/mkdocstrings_handlers/cxx/__init__.py +357 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/python/mkdocstrings_handlers/cxx/templates/README +1 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/support/release.py +209 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/CMakeLists.txt +257 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/add-subdirectory-test/CMakeLists.txt +17 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/add-subdirectory-test/main.cc +5 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/args-test.cc +202 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/assert-test.cc +31 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/base-test.cc +902 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/chrono-test.cc +1023 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/color-test.cc +129 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/compile-error-test/CMakeLists.txt +215 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/compile-fp-test.cc +61 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/compile-test.cc +423 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/cuda-test/CMakeLists.txt +73 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/cuda-test/cpp14.cc +11 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/cuda-test/cuda-cpp14.cu +28 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/detect-stdfs.cc +18 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/enforce-checks-test.cc +65 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/find-package-test/CMakeLists.txt +17 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/find-package-test/main.cc +5 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/format-impl-test.cc +477 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/format-test.cc +2567 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/.gitignore +3 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/CMakeLists.txt +30 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/README.md +25 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/build.sh +90 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/chrono-duration.cc +136 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/chrono-timepoint.cc +32 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/float.cc +39 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/fuzzer-common.h +77 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/main.cc +22 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/named-arg.cc +102 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/one-arg.cc +92 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/fuzzing/two-args.cc +106 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/.clang-format +3 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/CMakeLists.txt +32 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/gmock/gmock.h +11659 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/gmock-gtest-all.cc +14442 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/gtest/gtest-spi.h +238 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest/gtest/gtest.h +12399 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest-extra-test.cc +410 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest-extra.cc +80 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/gtest-extra.h +165 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/header-only-test.cc +11 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/mock-allocator.h +77 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/module-test.cc +520 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/no-builtin-types-test.cc +25 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/noexception-test.cc +18 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/os-test.cc +592 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/ostream-test.cc +308 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/perf-sanity.cc +25 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/posix-mock-test.cc +442 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/posix-mock.h +75 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/printf-test.cc +568 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/ranges-odr-test.cc +18 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/ranges-test.cc +799 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/scan-test.cc +184 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/scan.h +669 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/static-export-test/CMakeLists.txt +30 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/static-export-test/library.cc +5 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/static-export-test/main.cc +6 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/std-test.cc +417 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/test-assert.h +39 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/test-main.cc +43 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/unicode-test.cc +48 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/util.cc +48 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/util.h +83 -0
- ucm_toolkit/_resources/dev-sandbox/vendor/fmt/test/xchar-test.cc +421 -0
- ucm_toolkit/_resources/nic_monitor_pro.sh +310 -0
- ucm_toolkit/_resources/posixstore_aio_test.py +198 -0
- ucm_toolkit/_version.py +1 -0
- ucm_toolkit/cli.py +48 -0
- ucm_toolkit/commands/__init__.py +1 -0
- ucm_toolkit/commands/build.py +37 -0
- ucm_toolkit/commands/clean.py +24 -0
- ucm_toolkit/commands/doctor.py +26 -0
- ucm_toolkit/commands/list.py +29 -0
- ucm_toolkit/commands/run.py +24 -0
- ucm_toolkit/errors.py +73 -0
- ucm_toolkit/registry.py +92 -0
- ucm_toolkit/resources.py +31 -0
- ucm_toolkit/runner.py +46 -0
- ucm_toolkit/tools/__init__.py +1 -0
- ucm_toolkit/tools/dev_sandbox/__init__.py +5 -0
- ucm_toolkit/tools/dev_sandbox/adapter.py +285 -0
- ucm_toolkit/tools/metrics_view/__init__.py +5 -0
- ucm_toolkit/tools/metrics_view/adapter.py +47 -0
- ucm_toolkit/tools/metrics_view/configs/connector.json +1003 -0
- ucm_toolkit/tools/metrics_view/configs/metrics_lite.json +183 -0
- ucm_toolkit/tools/metrics_view/configs/store.json +1779 -0
- ucm_toolkit/tools/metrics_view/configs/vllm.json +417 -0
- ucm_toolkit/tools/metrics_view/metrics_cli.py +11 -0
- ucm_toolkit/tools/metrics_view/terminal_view_metrics/__init__.py +1 -0
- ucm_toolkit/tools/metrics_view/terminal_view_metrics/cli.py +338 -0
- ucm_toolkit/tools/metrics_view/terminal_view_metrics/collector.py +100 -0
- ucm_toolkit/tools/metrics_view/terminal_view_metrics/config.py +178 -0
- ucm_toolkit/tools/metrics_view/terminal_view_metrics/parser.py +80 -0
- ucm_toolkit/tools/metrics_view/terminal_view_metrics/promql.py +635 -0
- ucm_toolkit/tools/metrics_view/terminal_view_metrics/query.py +371 -0
- ucm_toolkit/tools/metrics_view/terminal_view_metrics/render.py +116 -0
- ucm_toolkit/tools/metrics_view/terminal_view_metrics/snapshot.py +193 -0
- ucm_toolkit/tools/metrics_view/terminal_view_metrics/storage.py +154 -0
- ucm_toolkit/tools/nic_monitor/__init__.py +5 -0
- ucm_toolkit/tools/nic_monitor/adapter.py +77 -0
- ucm_toolkit/tools/posix_aio/__init__.py +5 -0
- ucm_toolkit/tools/posix_aio/adapter.py +399 -0
- ucm_toolkit/tools/posix_aio/model_profile.py +316 -0
- ucm_toolkit/tools/precheck/__init__.py +7 -0
- ucm_toolkit/tools/precheck/adapter.py +42 -0
- ucm_toolkit/tools/precheck/bandwidth.py +976 -0
- ucm_toolkit/tools/precheck/checks.py +534 -0
- ucm_toolkit/tools/precheck/cli.py +303 -0
- ucm_toolkit/tools/precheck/config.py +218 -0
- ucm_toolkit/tools/precheck/parseutil.py +233 -0
- ucm_toolkit/tools/precheck/precheck.defaults.json +23 -0
- ucm_toolkit/tools/precheck/reporter.py +156 -0
- ucm_toolkit-0.8.0.dist-info/METADATA +26 -0
- ucm_toolkit-0.8.0.dist-info/RECORD +277 -0
- ucm_toolkit-0.8.0.dist-info/WHEEL +5 -0
- ucm_toolkit-0.8.0.dist-info/entry_points.txt +2 -0
- ucm_toolkit-0.8.0.dist-info/top_level.txt +1 -0
|
@@ -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 @@
|
|
|
1
|
+
8.1.1
|
|
@@ -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,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,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,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
|
+
|