instanttensor 0.2.2__tar.gz → 0.2.3__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 (381) hide show
  1. {instanttensor-0.2.2 → instanttensor-0.2.3}/PKG-INFO +20 -9
  2. {instanttensor-0.2.2 → instanttensor-0.2.3}/README.md +19 -8
  3. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/common.hpp +2 -0
  4. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/dl_binding/cuda_binding.hpp +15 -15
  5. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/dl_binding/cufile_binding.hpp +8 -8
  6. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/dl_binding/dl_binding_utils.hpp +26 -10
  7. instanttensor-0.2.3/csrc/instant_tensor/dl_binding/fgds_binding.hpp +101 -0
  8. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/dl_binding/nccl_binding.hpp +11 -5
  9. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/loader.hpp +16 -1
  10. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/types.hpp +3 -1
  11. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/loader_common.cpp +51 -3
  12. instanttensor-0.2.3/csrc/loader_io_fgds.cpp +141 -0
  13. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/main.cpp +12 -0
  14. instanttensor-0.2.3/instanttensor/__init__.py +3 -0
  15. instanttensor-0.2.3/instanttensor/_internal/__init__.py +0 -0
  16. instanttensor-0.2.3/instanttensor/_internal/cgroup.py +256 -0
  17. instanttensor-0.2.2/instanttensor/_impl.py → instanttensor-0.2.3/instanttensor/_internal/loader.py +150 -110
  18. instanttensor-0.2.3/instanttensor/_internal/resources.py +155 -0
  19. {instanttensor-0.2.2 → instanttensor-0.2.3}/instanttensor.egg-info/SOURCES.txt +12 -3
  20. {instanttensor-0.2.2 → instanttensor-0.2.3}/pyproject.toml +1 -1
  21. {instanttensor-0.2.2 → instanttensor-0.2.3}/setup.py +1 -0
  22. {instanttensor-0.2.2 → instanttensor-0.2.3}/tests/test.py +1 -1
  23. instanttensor-0.2.3/tests/test_cgroup.py +201 -0
  24. {instanttensor-0.2.2 → instanttensor-0.2.3}/tests/test_chunk_limit.py +3 -3
  25. instanttensor-0.2.3/tests/test_fgds.py +218 -0
  26. {instanttensor-0.2.2 → instanttensor-0.2.3}/tests/test_io_params.py +162 -64
  27. {instanttensor-0.2.2 → instanttensor-0.2.3}/tests/test_layout.py +2 -2
  28. {instanttensor-0.2.2 → instanttensor-0.2.3}/tests/test_metadata.py +1 -1
  29. instanttensor-0.2.3/tests/test_open_params.py +131 -0
  30. instanttensor-0.2.3/tests/test_resources.py +143 -0
  31. {instanttensor-0.2.2 → instanttensor-0.2.3}/tests/test_tensor_filter.py +18 -18
  32. instanttensor-0.2.3/tests/test_timing.py +90 -0
  33. instanttensor-0.2.2/instanttensor/__init__.py +0 -3
  34. instanttensor-0.2.2/instanttensor/_cpu_count.py +0 -59
  35. {instanttensor-0.2.2 → instanttensor-0.2.3}/LICENSE +0 -0
  36. {instanttensor-0.2.2 → instanttensor-0.2.3}/MANIFEST.in +0 -0
  37. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/async_executor.hpp +0 -0
  38. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/cuda_executor.hpp +0 -0
  39. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/dlpack_utils.hpp +0 -0
  40. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/function_executor.hpp +0 -0
  41. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/io_context.hpp +0 -0
  42. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/io_executor.hpp +0 -0
  43. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/instant_tensor/queue.hpp +0 -0
  44. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/libaio_static.map +0 -0
  45. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/loader_io_aio.cpp +0 -0
  46. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/loader_io_cufile.cpp +0 -0
  47. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/loader_io_inmem.cpp +0 -0
  48. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/loader_io_uring.cpp +0 -0
  49. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/.editorconfig +0 -0
  50. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/.git +0 -0
  51. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/.github/dependabot.yml +0 -0
  52. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/.github/workflows/ci-meson.yml +0 -0
  53. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/.github/workflows/ci.yml +0 -0
  54. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/.github/workflows/cmake-gcc-clang.yml +0 -0
  55. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/.gitignore +0 -0
  56. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/CMakeLists.txt +0 -0
  57. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/CONTRIBUTORS.txt +0 -0
  58. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/LICENSE +0 -0
  59. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/Makefile +0 -0
  60. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/README.md +0 -0
  61. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/html/benchmarks.css +0 -0
  62. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/html/benchmarks.html +0 -0
  63. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/html/benchmarks.js +0 -0
  64. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/html/results.js +0 -0
  65. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/html/theme.js +0 -0
  66. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/include/CMakeLists.txt +0 -0
  67. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/include/atomic_queue/atomic_queue.h +0 -0
  68. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/include/atomic_queue/atomic_queue_mutex.h +0 -0
  69. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/include/atomic_queue/barrier.h +0 -0
  70. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/include/atomic_queue/defs.h +0 -0
  71. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/include/atomic_queue/spinlock.h +0 -0
  72. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/meson.build +0 -0
  73. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/meson_options.txt +0 -0
  74. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/scripts/benchmark.sh +0 -0
  75. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/scripts/latency_to_json.py +0 -0
  76. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/scripts/parse_output.py +0 -0
  77. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/scripts/run-benchmarks-for.sh +0 -0
  78. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/scripts/run-benchmarks.sh +0 -0
  79. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/scripts/scalability_to_json.py +0 -0
  80. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/scripts/stats.py +0 -0
  81. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/scripts/util.sh +0 -0
  82. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/src/CMakeLists.txt +0 -0
  83. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/src/benchmarks.cc +0 -0
  84. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/src/benchmarks.h +0 -0
  85. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/src/cpu_base_frequency.cc +0 -0
  86. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/src/cpu_base_frequency.h +0 -0
  87. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/src/example.cc +0 -0
  88. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/src/huge_pages.cc +0 -0
  89. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/src/huge_pages.h +0 -0
  90. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/src/moodycamel.h +0 -0
  91. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/atomic_queue/src/tests.cc +0 -0
  92. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/.git +0 -0
  93. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/.github/workflows/deploy.yml +0 -0
  94. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/.github/workflows/docs.yaml +0 -0
  95. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/.github/workflows/main.yaml +0 -0
  96. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/.gitignore +0 -0
  97. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/CMakeLists.txt +0 -0
  98. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/LICENSE +0 -0
  99. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/Makefile +0 -0
  100. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/NEWS.md +0 -0
  101. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/README.md +0 -0
  102. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/apps/numpy_dlpack/.gitignore +0 -0
  103. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/apps/numpy_dlpack/README.md +0 -0
  104. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/apps/numpy_dlpack/dlpack/__init__.py +0 -0
  105. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/apps/numpy_dlpack/dlpack/dlpack.py +0 -0
  106. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/apps/numpy_dlpack/dlpack/from_numpy.py +0 -0
  107. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/apps/numpy_dlpack/dlpack/to_numpy.py +0 -0
  108. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/apps/numpy_dlpack/test.py +0 -0
  109. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/apps/numpy_dlpack/test_pure_numpy.py +0 -0
  110. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/cmake/template/Config.cmake.in +0 -0
  111. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/contrib/dlpack/dlpackcpp.h +0 -0
  112. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/contrib/mock_c.c +0 -0
  113. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/contrib/mock_main.cc +0 -0
  114. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/doc_requirements.txt +0 -0
  115. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/include/dlpack/dlpack.h +0 -0
  116. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/tests/scripts/task_build.sh +0 -0
  117. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/dlpack/tests/scripts/task_lint.sh +0 -0
  118. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/.git +0 -0
  119. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/.gitignore +0 -0
  120. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/COPYING +0 -0
  121. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/ChangeLog +0 -0
  122. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/INSTALL +0 -0
  123. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/Makefile +0 -0
  124. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/README.md +0 -0
  125. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/TODO +0 -0
  126. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/Makefile +0 -0
  127. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/README +0 -0
  128. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/attic/0.t +0 -0
  129. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/attic/1.t +0 -0
  130. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/10.t +0 -0
  131. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/11.t +0 -0
  132. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/12.t +0 -0
  133. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/13.t +0 -0
  134. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/14.t +0 -0
  135. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/15.t +0 -0
  136. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/16.t +0 -0
  137. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/17.t +0 -0
  138. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/18.t +0 -0
  139. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/19.t +0 -0
  140. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/2.t +0 -0
  141. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/20.t +0 -0
  142. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/21.t +0 -0
  143. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/22.t +0 -0
  144. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/23.t +0 -0
  145. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/3.t +0 -0
  146. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/4.t +0 -0
  147. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/5.t +0 -0
  148. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/6.t +0 -0
  149. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/7.t +0 -0
  150. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/8.t +0 -0
  151. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/aio_setup.h +0 -0
  152. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/cases/common-7-8.h +0 -0
  153. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/ext2-enospc.img +0 -0
  154. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/main.c +0 -0
  155. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/harness/runtests.sh +0 -0
  156. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/libaio.spec +0 -0
  157. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io.3 +0 -0
  158. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_cancel.3 +0 -0
  159. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_fsync.3 +0 -0
  160. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_getevents.3 +0 -0
  161. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_prep_fsync.3 +0 -0
  162. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_prep_pread.3 +0 -0
  163. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_prep_pwrite.3 +0 -0
  164. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_queue_init.3 +0 -0
  165. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_queue_release.3 +0 -0
  166. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_queue_run.3 +0 -0
  167. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_queue_wait.3 +0 -0
  168. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_set_callback.3 +0 -0
  169. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/man/io_submit.3 +0 -0
  170. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/Makefile +0 -0
  171. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/aio_ring.h +0 -0
  172. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/compat-0_1.c +0 -0
  173. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/io_cancel.c +0 -0
  174. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/io_destroy.c +0 -0
  175. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/io_getevents.c +0 -0
  176. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/io_pgetevents.c +0 -0
  177. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/io_queue_init.c +0 -0
  178. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/io_queue_release.c +0 -0
  179. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/io_queue_run.c +0 -0
  180. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/io_queue_wait.c +0 -0
  181. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/io_setup.c +0 -0
  182. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/io_submit.c +0 -0
  183. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/libaio.h +0 -0
  184. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/libaio.map +0 -0
  185. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/raw_syscall.c +0 -0
  186. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/struct_offsets.c +0 -0
  187. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/syscall-alpha.h +0 -0
  188. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/syscall-arm.h +0 -0
  189. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/syscall-generic.h +0 -0
  190. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/syscall-i386.h +0 -0
  191. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/syscall-ia64.h +0 -0
  192. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/syscall-ppc.h +0 -0
  193. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/syscall-s390.h +0 -0
  194. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/syscall-sparc.h +0 -0
  195. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/syscall-x86_64.h +0 -0
  196. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/syscall.h +0 -0
  197. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/libaio/src/vsys_def.h +0 -0
  198. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/.git +0 -0
  199. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/.github/actions/codespell/stopwords +0 -0
  200. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/.github/pull_request_template.md +0 -0
  201. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/.github/workflows/ci.yml +0 -0
  202. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/.github/workflows/test_build.c +0 -0
  203. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/.gitignore +0 -0
  204. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/CHANGELOG +0 -0
  205. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/CITATION.cff +0 -0
  206. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/CONTRIBUTING.md +0 -0
  207. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/COPYING +0 -0
  208. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/COPYING.GPL +0 -0
  209. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/LICENSE +0 -0
  210. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/Makefile +0 -0
  211. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/Makefile.common +0 -0
  212. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/Makefile.quiet +0 -0
  213. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/README +0 -0
  214. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/SECURITY.md +0 -0
  215. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/configure +0 -0
  216. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/README.Debian +0 -0
  217. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/changelog +0 -0
  218. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/control +0 -0
  219. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/copyright +0 -0
  220. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/liburing-dev.install +0 -0
  221. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/liburing-dev.manpages +0 -0
  222. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/liburing2.install +0 -0
  223. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/liburing2.symbols +0 -0
  224. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/patches/series +0 -0
  225. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/rules +0 -0
  226. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/source/format +0 -0
  227. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/source/local-options +0 -0
  228. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/source/options +0 -0
  229. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/debian/watch +0 -0
  230. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/liburing-ffi.pc.in +0 -0
  231. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/liburing.pc.in +0 -0
  232. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/liburing.spec +0 -0
  233. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/make-debs.sh +0 -0
  234. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/Makefile +0 -0
  235. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/arch/aarch64/lib.h +0 -0
  236. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/arch/aarch64/syscall.h +0 -0
  237. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/arch/generic/lib.h +0 -0
  238. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/arch/generic/syscall.h +0 -0
  239. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/arch/riscv64/lib.h +0 -0
  240. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/arch/riscv64/syscall.h +0 -0
  241. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/arch/syscall-defs.h +0 -0
  242. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/arch/x86/lib.h +0 -0
  243. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/arch/x86/syscall.h +0 -0
  244. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/ffi.c +0 -0
  245. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/include/liburing/barrier.h +0 -0
  246. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/include/liburing/io_uring/query.h +0 -0
  247. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/include/liburing/io_uring.h +0 -0
  248. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/include/liburing/sanitize.h +0 -0
  249. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/include/liburing.h +0 -0
  250. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/int_flags.h +0 -0
  251. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/lib.h +0 -0
  252. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/liburing-ffi.map +0 -0
  253. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/liburing.map +0 -0
  254. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/nolibc.c +0 -0
  255. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/queue.c +0 -0
  256. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/register.c +0 -0
  257. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/sanitize.c +0 -0
  258. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/setup.c +0 -0
  259. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/setup.h +0 -0
  260. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/syscall.c +0 -0
  261. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/syscall.h +0 -0
  262. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/liburing/src/version.c +0 -0
  263. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.appveyor.yml +0 -0
  264. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.clang-format +0 -0
  265. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.clang-tidy +0 -0
  266. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.cmake-format.yaml +0 -0
  267. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.codespell-ignore-lines +0 -0
  268. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.git +0 -0
  269. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.gitattributes +0 -0
  270. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/CODEOWNERS +0 -0
  271. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/CONTRIBUTING.md +0 -0
  272. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
  273. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/ISSUE_TEMPLATE/config.yml +0 -0
  274. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/dependabot.yml +0 -0
  275. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/labeler.yml +0 -0
  276. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/labeler_merged.yml +0 -0
  277. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/matchers/pylint.json +0 -0
  278. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/pull_request_template.md +0 -0
  279. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/workflows/ci.yml +0 -0
  280. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/workflows/configure.yml +0 -0
  281. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/workflows/docs-link.yml +0 -0
  282. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/workflows/format.yml +0 -0
  283. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/workflows/labeler.yml +0 -0
  284. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/workflows/nightlies.yml +0 -0
  285. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/workflows/pip.yml +0 -0
  286. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/workflows/reusable-standard.yml +0 -0
  287. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/workflows/tests-cibw.yml +0 -0
  288. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.github/workflows/upstream.yml +0 -0
  289. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.gitignore +0 -0
  290. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.pre-commit-config.yaml +0 -0
  291. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/.readthedocs.yml +0 -0
  292. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/CMakeLists.txt +0 -0
  293. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/CMakePresets.json +0 -0
  294. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/LICENSE +0 -0
  295. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/README.rst +0 -0
  296. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/SECURITY.md +0 -0
  297. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/attr.h +0 -0
  298. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/buffer_info.h +0 -0
  299. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/cast.h +0 -0
  300. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/chrono.h +0 -0
  301. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/common.h +0 -0
  302. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/complex.h +0 -0
  303. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/conduit/README.txt +0 -0
  304. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/conduit/pybind11_conduit_v1.h +0 -0
  305. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/conduit/pybind11_platform_abi_id.h +0 -0
  306. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/conduit/wrap_include_python_h.h +0 -0
  307. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/critical_section.h +0 -0
  308. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/argument_vector.h +0 -0
  309. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/class.h +0 -0
  310. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/common.h +0 -0
  311. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/cpp_conduit.h +0 -0
  312. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/descr.h +0 -0
  313. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/dynamic_raw_ptr_cast_if_possible.h +0 -0
  314. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/exception_translation.h +0 -0
  315. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/function_record_pyobject.h +0 -0
  316. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/holder_caster_foreign_helpers.h +0 -0
  317. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/init.h +0 -0
  318. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/internals.h +0 -0
  319. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/native_enum_data.h +0 -0
  320. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/pybind11_namespace_macros.h +0 -0
  321. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/struct_smart_holder.h +0 -0
  322. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/type_caster_base.h +0 -0
  323. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/typeid.h +0 -0
  324. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/using_smart_holder.h +0 -0
  325. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/detail/value_and_holder.h +0 -0
  326. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/eigen/common.h +0 -0
  327. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/eigen/matrix.h +0 -0
  328. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/eigen/tensor.h +0 -0
  329. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/eigen.h +0 -0
  330. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/embed.h +0 -0
  331. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/eval.h +0 -0
  332. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/functional.h +0 -0
  333. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/gil.h +0 -0
  334. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/gil_safe_call_once.h +0 -0
  335. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/gil_simple.h +0 -0
  336. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/iostream.h +0 -0
  337. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/native_enum.h +0 -0
  338. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/numpy.h +0 -0
  339. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/operators.h +0 -0
  340. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/options.h +0 -0
  341. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/pybind11.h +0 -0
  342. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/pytypes.h +0 -0
  343. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/stl/filesystem.h +0 -0
  344. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/stl.h +0 -0
  345. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/stl_bind.h +0 -0
  346. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/subinterpreter.h +0 -0
  347. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/trampoline_self_life_support.h +0 -0
  348. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/type_caster_pyobject_ptr.h +0 -0
  349. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/typing.h +0 -0
  350. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/include/pybind11/warnings.h +0 -0
  351. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/noxfile.py +0 -0
  352. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/pybind11/__init__.py +0 -0
  353. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/pybind11/__main__.py +0 -0
  354. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/pybind11/_version.py +0 -0
  355. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/pybind11/commands.py +0 -0
  356. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/pybind11/py.typed +0 -0
  357. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/pybind11/setup_helpers.py +0 -0
  358. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/pyproject.toml +0 -0
  359. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/FindCatch.cmake +0 -0
  360. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/FindEigen3.cmake +0 -0
  361. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/FindPythonLibsNew.cmake +0 -0
  362. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/JoinPaths.cmake +0 -0
  363. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/check-style.sh +0 -0
  364. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/cmake_uninstall.cmake.in +0 -0
  365. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/codespell_ignore_lines_from_errors.py +0 -0
  366. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/libsize.py +0 -0
  367. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/make_changelog.py +0 -0
  368. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/make_global.py +0 -0
  369. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/pybind11.pc.in +0 -0
  370. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/pybind11Common.cmake +0 -0
  371. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/pybind11Config.cmake.in +0 -0
  372. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/pybind11GuessPythonExtSuffix.cmake +0 -0
  373. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/pybind11NewTools.cmake +0 -0
  374. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/pybind11Tools.cmake +0 -0
  375. {instanttensor-0.2.2 → instanttensor-0.2.3}/csrc/third_party/pybind11/tools/test-pybind11GuessPythonExtSuffix.cmake +0 -0
  376. {instanttensor-0.2.2 → instanttensor-0.2.3}/setup.cfg +0 -0
  377. {instanttensor-0.2.2 → instanttensor-0.2.3}/tests/test_async_errors.py +0 -0
  378. {instanttensor-0.2.2 → instanttensor-0.2.3}/tests/test_copy.py +0 -0
  379. {instanttensor-0.2.2 → instanttensor-0.2.3}/tests/test_cuda_executor.py +0 -0
  380. {instanttensor-0.2.2 → instanttensor-0.2.3}/tests/test_cufile_worker.py +0 -0
  381. {instanttensor-0.2.2 → instanttensor-0.2.3}/tests/test_io_polling.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: instanttensor
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: An ultra-fast, distributed Safetensors loader
5
5
  License: Apache License
6
6
  Version 2.0, January 2004
@@ -297,6 +297,7 @@ Performance depends on your hardware and workload; benchmark before choosing.
297
297
  - GPU platforms: CUDA, ROCm
298
298
  - Framework: PyTorch
299
299
  - `URING`/`URING_BUFFERED`: Linux kernel 5.6 or newer; 5.15 or newer is recommended
300
+ - `FGDS`: the [fgds](https://github.com/Storage-and-OS-for-AI/fgds) kernel module and `libfgds.so` must be installed (available in the process via `LD_PRELOAD` or on the `LD_LIBRARY_PATH`)
300
301
 
301
302
 
302
303
  ### Method 1: Install from pip
@@ -351,8 +352,9 @@ with safe_open(files, framework="pt", device=0,
351
352
  tensors[name] = tensor
352
353
  ```
353
354
 
354
- Filtering requires `process_group=None`: each GPU loads its own selection
355
- independently. Unfiltered distributed loading is unchanged.
355
+ Filtering supports distributed loading when all ranks in the process group select
356
+ the same tensors from the same files. Use `process_group=None` for independent
357
+ selections on each GPU.
356
358
  Use `tensor_name_match_mode` to choose how all entries in the list are interpreted:
357
359
 
358
360
  | Mode | Example | Matching |
@@ -411,9 +413,9 @@ InstantTensor tries the candidates in order and uses the first backend that is
411
413
  supported by the file system and available on the current system.
412
414
 
413
415
  Supported backend values are `Backend.AIO`, `Backend.AIO_BUFFERED`,
414
- `Backend.URING`, `Backend.URING_BUFFERED`, `Backend.CUFILE`, and
415
- `Backend.MMAP`. The `backend` argument accepts a single `Backend` or a list of
416
- `Backend`/`BackendPolicy` values:
416
+ `Backend.URING`, `Backend.URING_BUFFERED`, `Backend.CUFILE`, `Backend.MMAP`,
417
+ and `Backend.FGDS`. The `backend` argument accepts a single `Backend` or a
418
+ list of `Backend`/`BackendPolicy` values:
417
419
 
418
420
  ```python
419
421
  from instanttensor import Backend, BackendPolicy, safe_open
@@ -434,6 +436,11 @@ INSTANTTENSOR_BACKEND=URING,AIO
434
436
  INSTANTTENSOR_BACKEND=BUFFERED
435
437
  ```
436
438
 
439
+ With a process group, all ranks use the first backend in group rank 0's candidate
440
+ order that is allowed and available on every rank. CPU-based defaults use the
441
+ smallest per-rank CPU allocation across the group, accounting for shared cgroup
442
+ limits, host CPUs, and overlapping CPU affinity.
443
+
437
444
  Backends are used in different file-system and I/O scenarios:
438
445
 
439
446
  - **In-memory file systems** (available backends: `MMAP`, `URING_BUFFERED`,
@@ -443,13 +450,17 @@ Backends are used in different file-system and I/O scenarios:
443
450
  in-memory files.
444
451
  - **Regular file systems**: InstantTensor can use either Direct I/O or Buffered
445
452
  I/O.
446
- - **Direct I/O** (available backends: `AIO`, `URING`, `CUFILE`) is best when
447
- a model is loaded once for a long-running
453
+ - **Direct I/O** (available backends: `AIO`, `URING`, `CUFILE`, `FGDS`) is
454
+ best when a model is loaded once for a long-running
448
455
  workload. It avoids page-cache cold-start effects and reduces page-cache
449
456
  pollution. When choosing manually, `URING` may be faster on newer platforms.
450
457
  `AIO` has the broadest platform compatibility. `CUFILE` requires GPUDirect
451
458
  Storage support, and its higher throughput can be offset by cuFile
452
- initialization overhead.
459
+ initialization overhead. `FGDS` is an alternative GPUDirect Storage
460
+ implementation (see [fgds](https://github.com/Storage-and-OS-for-AI/fgds))
461
+ that requires the `libfgds.so` library and the `fgds` kernel module, and
462
+ typically achieves higher throughput than `CUFILE` without extra
463
+ initialization cost.
453
464
  - **Buffered I/O** (available backends: `AIO_BUFFERED`, `URING_BUFFERED`,
454
465
  `MMAP`) is best when the same model is
455
466
  loaded repeatedly within a short period. Later reads can benefit from the
@@ -63,6 +63,7 @@ Performance depends on your hardware and workload; benchmark before choosing.
63
63
  - GPU platforms: CUDA, ROCm
64
64
  - Framework: PyTorch
65
65
  - `URING`/`URING_BUFFERED`: Linux kernel 5.6 or newer; 5.15 or newer is recommended
66
+ - `FGDS`: the [fgds](https://github.com/Storage-and-OS-for-AI/fgds) kernel module and `libfgds.so` must be installed (available in the process via `LD_PRELOAD` or on the `LD_LIBRARY_PATH`)
66
67
 
67
68
 
68
69
  ### Method 1: Install from pip
@@ -117,8 +118,9 @@ with safe_open(files, framework="pt", device=0,
117
118
  tensors[name] = tensor
118
119
  ```
119
120
 
120
- Filtering requires `process_group=None`: each GPU loads its own selection
121
- independently. Unfiltered distributed loading is unchanged.
121
+ Filtering supports distributed loading when all ranks in the process group select
122
+ the same tensors from the same files. Use `process_group=None` for independent
123
+ selections on each GPU.
122
124
  Use `tensor_name_match_mode` to choose how all entries in the list are interpreted:
123
125
 
124
126
  | Mode | Example | Matching |
@@ -177,9 +179,9 @@ InstantTensor tries the candidates in order and uses the first backend that is
177
179
  supported by the file system and available on the current system.
178
180
 
179
181
  Supported backend values are `Backend.AIO`, `Backend.AIO_BUFFERED`,
180
- `Backend.URING`, `Backend.URING_BUFFERED`, `Backend.CUFILE`, and
181
- `Backend.MMAP`. The `backend` argument accepts a single `Backend` or a list of
182
- `Backend`/`BackendPolicy` values:
182
+ `Backend.URING`, `Backend.URING_BUFFERED`, `Backend.CUFILE`, `Backend.MMAP`,
183
+ and `Backend.FGDS`. The `backend` argument accepts a single `Backend` or a
184
+ list of `Backend`/`BackendPolicy` values:
183
185
 
184
186
  ```python
185
187
  from instanttensor import Backend, BackendPolicy, safe_open
@@ -200,6 +202,11 @@ INSTANTTENSOR_BACKEND=URING,AIO
200
202
  INSTANTTENSOR_BACKEND=BUFFERED
201
203
  ```
202
204
 
205
+ With a process group, all ranks use the first backend in group rank 0's candidate
206
+ order that is allowed and available on every rank. CPU-based defaults use the
207
+ smallest per-rank CPU allocation across the group, accounting for shared cgroup
208
+ limits, host CPUs, and overlapping CPU affinity.
209
+
203
210
  Backends are used in different file-system and I/O scenarios:
204
211
 
205
212
  - **In-memory file systems** (available backends: `MMAP`, `URING_BUFFERED`,
@@ -209,13 +216,17 @@ Backends are used in different file-system and I/O scenarios:
209
216
  in-memory files.
210
217
  - **Regular file systems**: InstantTensor can use either Direct I/O or Buffered
211
218
  I/O.
212
- - **Direct I/O** (available backends: `AIO`, `URING`, `CUFILE`) is best when
213
- a model is loaded once for a long-running
219
+ - **Direct I/O** (available backends: `AIO`, `URING`, `CUFILE`, `FGDS`) is
220
+ best when a model is loaded once for a long-running
214
221
  workload. It avoids page-cache cold-start effects and reduces page-cache
215
222
  pollution. When choosing manually, `URING` may be faster on newer platforms.
216
223
  `AIO` has the broadest platform compatibility. `CUFILE` requires GPUDirect
217
224
  Storage support, and its higher throughput can be offset by cuFile
218
- initialization overhead.
225
+ initialization overhead. `FGDS` is an alternative GPUDirect Storage
226
+ implementation (see [fgds](https://github.com/Storage-and-OS-for-AI/fgds))
227
+ that requires the `libfgds.so` library and the `fgds` kernel module, and
228
+ typically achieves higher throughput than `CUFILE` without extra
229
+ initialization cost.
219
230
  - **Buffered I/O** (available backends: `AIO_BUFFERED`, `URING_BUFFERED`,
220
231
  `MMAP`) is best when the same model is
221
232
  loaded repeatedly within a short period. Later reads can benefit from the
@@ -26,12 +26,14 @@
26
26
  #include <instant_tensor/dl_binding/cuda_binding.hpp>
27
27
  #include <instant_tensor/dl_binding/cufile_binding.hpp>
28
28
  #include <instant_tensor/dl_binding/nccl_binding.hpp>
29
+ #include <instant_tensor/dl_binding/fgds_binding.hpp>
29
30
 
30
31
  namespace instanttensor {
31
32
 
32
33
  using namespace instanttensor::cuda_binding;
33
34
  using namespace instanttensor::cufile_binding;
34
35
  using namespace instanttensor::nccl_binding;
36
+ using namespace instanttensor::fgds_binding;
35
37
 
36
38
  inline constexpr size_t MAX_IO_DEPTH = 1024;
37
39
  inline constexpr size_t MAX_CHUNK_SIZE = 1ULL << 30;
@@ -80,25 +80,25 @@ inline bool init() {
80
80
  return false;
81
81
  }
82
82
 
83
- using dl_binding_utils::resolve;
83
+ using dl_binding_utils::resolve_required;
84
84
 
85
85
  // Try CUDA function names first (cuda* prefix), then HIP names (hip* prefix) as fallback
86
86
  // On NVIDIA: libcudart.so has cuda* functions - uses CUDA path
87
87
  // On AMD: libamdhip64.so only has hip* functions - uses HIP fallback path
88
- cudaMalloc_fn = resolve<decltype(cudaMalloc_fn)>(lib_handle, {"cudaMalloc", "hipMalloc"});
89
- cudaFree_fn = resolve<decltype(cudaFree_fn)>(lib_handle, {"cudaFree", "hipFree"});
90
- cudaSetDevice_fn = resolve<decltype(cudaSetDevice_fn)>(lib_handle, {"cudaSetDevice", "hipSetDevice"});
91
- cudaStreamCreateWithFlags_fn = resolve<decltype(cudaStreamCreateWithFlags_fn)>(lib_handle, {"cudaStreamCreateWithFlags", "hipStreamCreateWithFlags"});
92
- cudaStreamDestroy_fn = resolve<decltype(cudaStreamDestroy_fn)>(lib_handle, {"cudaStreamDestroy", "hipStreamDestroy"});
93
- cudaMemcpyAsync_fn = resolve<decltype(cudaMemcpyAsync_fn)>(lib_handle, {"cudaMemcpyAsync", "hipMemcpyAsync"});
94
- cudaEventCreateWithFlags_fn = resolve<decltype(cudaEventCreateWithFlags_fn)>(lib_handle, {"cudaEventCreateWithFlags", "hipEventCreateWithFlags"});
95
- cudaEventRecord_fn = resolve<decltype(cudaEventRecord_fn)>(lib_handle, {"cudaEventRecord", "hipEventRecord"});
96
- cudaEventQuery_fn = resolve<decltype(cudaEventQuery_fn)>(lib_handle, {"cudaEventQuery", "hipEventQuery"});
97
- cudaEventSynchronize_fn = resolve<decltype(cudaEventSynchronize_fn)>(lib_handle, {"cudaEventSynchronize", "hipEventSynchronize"});
98
- cudaStreamWaitEvent_fn = resolve<decltype(cudaStreamWaitEvent_fn)>(lib_handle, {"cudaStreamWaitEvent", "hipStreamWaitEvent"});
99
- cudaHostRegister_fn = resolve<decltype(cudaHostRegister_fn)>(lib_handle, {"cudaHostRegister", "hipHostRegister"});
100
- cudaHostUnregister_fn = resolve<decltype(cudaHostUnregister_fn)>(lib_handle, {"cudaHostUnregister", "hipHostUnregister"});
101
- cudaGetErrorString_fn = resolve<decltype(cudaGetErrorString_fn)>(lib_handle, {"cudaGetErrorString", "hipGetErrorString"});
88
+ cudaMalloc_fn = resolve_required<decltype(cudaMalloc_fn)>(lib_handle, {"cudaMalloc", "hipMalloc"});
89
+ cudaFree_fn = resolve_required<decltype(cudaFree_fn)>(lib_handle, {"cudaFree", "hipFree"});
90
+ cudaSetDevice_fn = resolve_required<decltype(cudaSetDevice_fn)>(lib_handle, {"cudaSetDevice", "hipSetDevice"});
91
+ cudaStreamCreateWithFlags_fn = resolve_required<decltype(cudaStreamCreateWithFlags_fn)>(lib_handle, {"cudaStreamCreateWithFlags", "hipStreamCreateWithFlags"});
92
+ cudaStreamDestroy_fn = resolve_required<decltype(cudaStreamDestroy_fn)>(lib_handle, {"cudaStreamDestroy", "hipStreamDestroy"});
93
+ cudaMemcpyAsync_fn = resolve_required<decltype(cudaMemcpyAsync_fn)>(lib_handle, {"cudaMemcpyAsync", "hipMemcpyAsync"});
94
+ cudaEventCreateWithFlags_fn = resolve_required<decltype(cudaEventCreateWithFlags_fn)>(lib_handle, {"cudaEventCreateWithFlags", "hipEventCreateWithFlags"});
95
+ cudaEventRecord_fn = resolve_required<decltype(cudaEventRecord_fn)>(lib_handle, {"cudaEventRecord", "hipEventRecord"});
96
+ cudaEventQuery_fn = resolve_required<decltype(cudaEventQuery_fn)>(lib_handle, {"cudaEventQuery", "hipEventQuery"});
97
+ cudaEventSynchronize_fn = resolve_required<decltype(cudaEventSynchronize_fn)>(lib_handle, {"cudaEventSynchronize", "hipEventSynchronize"});
98
+ cudaStreamWaitEvent_fn = resolve_required<decltype(cudaStreamWaitEvent_fn)>(lib_handle, {"cudaStreamWaitEvent", "hipStreamWaitEvent"});
99
+ cudaHostRegister_fn = resolve_required<decltype(cudaHostRegister_fn)>(lib_handle, {"cudaHostRegister", "hipHostRegister"});
100
+ cudaHostUnregister_fn = resolve_required<decltype(cudaHostUnregister_fn)>(lib_handle, {"cudaHostUnregister", "hipHostUnregister"});
101
+ cudaGetErrorString_fn = resolve_required<decltype(cudaGetErrorString_fn)>(lib_handle, {"cudaGetErrorString", "hipGetErrorString"});
102
102
 
103
103
  return true;
104
104
  }
@@ -77,14 +77,14 @@ inline bool init() {
77
77
  return false;
78
78
  }
79
79
 
80
- using dl_binding_utils::resolve;
81
- cuFileDriverOpen_fn = resolve<decltype(cuFileDriverOpen_fn)>(lib_handle, {"cuFileDriverOpen", "hipFileDriverOpen"});
82
- cuFileDriverClose_fn = resolve<decltype(cuFileDriverClose_fn)>(lib_handle, {"cuFileDriverClose", "hipFileDriverClose"});
83
- cuFileHandleRegister_fn = resolve<decltype(cuFileHandleRegister_fn)>(lib_handle, {"cuFileHandleRegister", "hipFileHandleRegister"});
84
- cuFileHandleDeregister_fn = resolve<decltype(cuFileHandleDeregister_fn)>(lib_handle, {"cuFileHandleDeregister", "hipFileHandleDeregister"});
85
- cuFileBufRegister_fn = resolve<decltype(cuFileBufRegister_fn)>(lib_handle, {"cuFileBufRegister", "hipFileBufRegister"});
86
- cuFileBufDeregister_fn = resolve<decltype(cuFileBufDeregister_fn)>(lib_handle, {"cuFileBufDeregister", "hipFileBufDeregister"});
87
- cuFileRead_fn = resolve<decltype(cuFileRead_fn)>(lib_handle, {"cuFileRead", "hipFileRead"});
80
+ using dl_binding_utils::resolve_required;
81
+ cuFileDriverOpen_fn = resolve_required<decltype(cuFileDriverOpen_fn)>(lib_handle, {"cuFileDriverOpen", "hipFileDriverOpen"});
82
+ cuFileDriverClose_fn = resolve_required<decltype(cuFileDriverClose_fn)>(lib_handle, {"cuFileDriverClose", "hipFileDriverClose"});
83
+ cuFileHandleRegister_fn = resolve_required<decltype(cuFileHandleRegister_fn)>(lib_handle, {"cuFileHandleRegister", "hipFileHandleRegister"});
84
+ cuFileHandleDeregister_fn = resolve_required<decltype(cuFileHandleDeregister_fn)>(lib_handle, {"cuFileHandleDeregister", "hipFileHandleDeregister"});
85
+ cuFileBufRegister_fn = resolve_required<decltype(cuFileBufRegister_fn)>(lib_handle, {"cuFileBufRegister", "hipFileBufRegister"});
86
+ cuFileBufDeregister_fn = resolve_required<decltype(cuFileBufDeregister_fn)>(lib_handle, {"cuFileBufDeregister", "hipFileBufDeregister"});
87
+ cuFileRead_fn = resolve_required<decltype(cuFileRead_fn)>(lib_handle, {"cuFileRead", "hipFileRead"});
88
88
 
89
89
  return true;
90
90
  }
@@ -28,25 +28,41 @@ inline void* find_loaded_so(const char* prefix) {
28
28
  return nullptr;
29
29
  }
30
30
 
31
+ // Lookup helpers return nullptr when a symbol is unavailable.
31
32
  template <typename T>
32
33
  inline T resolve(void* handle, const std::string& name) {
33
34
  // Clear any previous error
34
35
  dlerror();
35
- void* sym = dlsym(handle, name.c_str());
36
- if (!sym) {
37
- throw std::runtime_error(std::string("failed to resolve ") + name.c_str() + ": " + dlerror());
38
- }
39
- return reinterpret_cast<T>(sym);
36
+ return reinterpret_cast<T>(dlsym(handle, name.c_str()));
40
37
  }
41
38
 
42
39
  template <typename T>
43
40
  inline T resolve(void* handle, std::initializer_list<std::string> names) {
44
- void* sym = nullptr;
45
41
  for (const auto& name : names) {
46
- dlerror();
47
- sym = dlsym(handle, name.c_str());
48
- if (sym) break;
42
+ if (T sym = resolve<T>(handle, name)) return sym;
43
+ }
44
+ return nullptr;
45
+ }
46
+
47
+ template <typename T>
48
+ inline T resolve_global(const std::string& name) {
49
+ return resolve<T>(RTLD_DEFAULT, name);
50
+ }
51
+
52
+ template <typename T>
53
+ inline T resolve_required(void* handle, const std::string& name) {
54
+ T sym = resolve<T>(handle, name);
55
+ if (!sym) {
56
+ const char* error = dlerror();
57
+ throw std::runtime_error("failed to resolve " + name + ": " +
58
+ (error ? error : "null symbol address"));
49
59
  }
60
+ return sym;
61
+ }
62
+
63
+ template <typename T>
64
+ inline T resolve_required(void* handle, std::initializer_list<std::string> names) {
65
+ T sym = resolve<T>(handle, names);
50
66
  if (!sym) {
51
67
  std::string error_message = "failed to resolve any of the following names: ";
52
68
  size_t i = 0;
@@ -59,7 +75,7 @@ inline T resolve(void* handle, std::initializer_list<std::string> names) {
59
75
  }
60
76
  throw std::runtime_error(error_message);
61
77
  }
62
- return reinterpret_cast<T>(sym);
78
+ return sym;
63
79
  }
64
80
 
65
81
  } // namespace dl_binding_utils
@@ -0,0 +1,101 @@
1
+ #pragma once
2
+
3
+ #include <instant_tensor/dl_binding/dl_binding_utils.hpp>
4
+ #include <cstddef>
5
+ #include <cstdint>
6
+ #include <unistd.h>
7
+ #include <atomic>
8
+
9
+ #define FGDS_ERRSTR(err) \
10
+ (string("fgds error code ") + std::to_string(err))
11
+
12
+ namespace instanttensor {
13
+ namespace fgds_binding {
14
+
15
+ typedef struct fgds_fileid {
16
+ int fd;
17
+ int deviceID;
18
+ } fgds_fileid_t;
19
+
20
+ // Forward-declared so the function pointer return type compiles without
21
+ // pulling in the full C header.
22
+ struct fgds_xfer_addr;
23
+
24
+ inline void* lib_handle = nullptr;
25
+ inline std::atomic<int> ref_count{0};
26
+
27
+ // Function pointers — named with _fn suffix to avoid shadowing the
28
+ // wrapper functions below (the original code had infinite recursion
29
+ // because the pointer and wrapper shared the same name).
30
+ inline int (*fgds_open_fn)(int) = nullptr;
31
+ inline int (*fgds_close_fn)(int) = nullptr;
32
+ inline int (*fgds_regmem_fn)(int, const void*, size_t, void**) = nullptr;
33
+ inline int (*fgds_deregmem_fn)(int, const void*, size_t) = nullptr;
34
+ inline ssize_t (*fgds_read_fn)(fgds_fileid_t, void*, off_t, ssize_t, off_t) = nullptr;
35
+ inline ssize_t (*fgds_write_fn)(fgds_fileid_t, void*, off_t, ssize_t, off_t) = nullptr;
36
+ inline struct fgds_xfer_addr* (*fgds_do_xfer_addr_fn)(int, const void*, off_t, size_t) = nullptr;
37
+
38
+ inline bool init() {
39
+ if (lib_handle != nullptr) {
40
+ if (lib_handle == (void*)0x1) return false;
41
+ return true;
42
+ }
43
+
44
+ // Strategy 1: look for an already-loaded libfgds.so in the process
45
+ // (e.g. loaded by another component or via LD_PRELOAD).
46
+ lib_handle = dl_binding_utils::find_loaded_so("fgds");
47
+
48
+ // Strategy 2: try dlopen("libfgds.so") so a separately installed
49
+ // shared library is picked up on demand.
50
+ if (lib_handle == nullptr) {
51
+ lib_handle = dlopen("libfgds.so", RTLD_LAZY | RTLD_LOCAL | RTLD_NODELETE);
52
+ }
53
+
54
+ if (lib_handle == nullptr) {
55
+ lib_handle = (void*)0x1;
56
+ return false;
57
+ }
58
+
59
+ using dl_binding_utils::resolve;
60
+ fgds_open_fn = resolve<decltype(fgds_open_fn)>(lib_handle, "fgds_open");
61
+ fgds_close_fn = resolve<decltype(fgds_close_fn)>(lib_handle, "fgds_close");
62
+ fgds_regmem_fn = resolve<decltype(fgds_regmem_fn)>(lib_handle, "fgds_regmem");
63
+ fgds_deregmem_fn = resolve<decltype(fgds_deregmem_fn)>(lib_handle, "fgds_deregmem");
64
+ fgds_read_fn = resolve<decltype(fgds_read_fn)>(lib_handle, "fgds_read");
65
+ fgds_write_fn = resolve<decltype(fgds_write_fn)>(lib_handle, "fgds_write");
66
+ fgds_do_xfer_addr_fn = resolve<decltype(fgds_do_xfer_addr_fn)>(lib_handle, "fgds_do_xfer_addr");
67
+
68
+ return true;
69
+ }
70
+
71
+ inline bool is_initialized() {
72
+ return lib_handle != nullptr && lib_handle != (void*)0x1;
73
+ }
74
+
75
+ inline int fgds_open(int device_id) {
76
+ return fgds_open_fn(device_id);
77
+ }
78
+ inline int fgds_close(int device_id) {
79
+ return fgds_close_fn(device_id);
80
+ }
81
+ inline int fgds_regmem(int device_id, const void* addr, size_t size, void** target_addr) {
82
+ return fgds_regmem_fn(device_id, addr, size, target_addr);
83
+ }
84
+ inline int fgds_deregmem(int device_id, const void* addr, size_t size) {
85
+ return fgds_deregmem_fn(device_id, addr, size);
86
+ }
87
+ inline ssize_t fgds_read(fgds_fileid_t fid, void* bufPtr_base,
88
+ off_t buf_offset, ssize_t nbyte, off_t file_offset) {
89
+ return fgds_read_fn(fid, bufPtr_base, buf_offset, nbyte, file_offset);
90
+ }
91
+ inline ssize_t fgds_write(fgds_fileid_t fid, void* bufPtr_base,
92
+ off_t buf_offset, ssize_t nbyte, off_t file_offset) {
93
+ return fgds_write_fn(fid, bufPtr_base, buf_offset, nbyte, file_offset);
94
+ }
95
+ inline struct fgds_xfer_addr* fgds_do_xfer_addr(int device_id, const void* buf,
96
+ off_t buf_offset, size_t nbyte) {
97
+ return fgds_do_xfer_addr_fn(device_id, buf, buf_offset, nbyte);
98
+ }
99
+
100
+ } // namespace fgds_binding
101
+ } // namespace instanttensor
@@ -29,6 +29,13 @@ inline ncclResult_t (*ncclCommUserRank_fn)(const ncclComm_t comm, int* rank) = n
29
29
  inline ncclResult_t (*ncclCommCount_fn)(const ncclComm_t comm, int* count) = nullptr;
30
30
  inline const char* (*ncclGetErrorString_fn)(ncclResult_t result) = nullptr;
31
31
 
32
+ template <typename T>
33
+ inline T resolve_nccl(const std::string& name) {
34
+ // Preserve NCCL wrappers that may own the communicator supplied by PyTorch.
35
+ T symbol = dl_binding_utils::resolve_global<T>(name);
36
+ return symbol ? symbol : dl_binding_utils::resolve_required<T>(lib_handle, name);
37
+ }
38
+
32
39
  inline bool init() {
33
40
  if (lib_handle != nullptr) {
34
41
  if (lib_handle == (void*)0x1) return false;
@@ -51,12 +58,11 @@ inline bool init() {
51
58
  return false;
52
59
  }
53
60
 
54
- using dl_binding_utils::resolve;
55
61
  // RCCL provides NCCL-compatible API (same function names and signatures), thus we don't need things like "rcclAllGather"
56
- ncclAllGather_fn = resolve<decltype(ncclAllGather_fn)>(lib_handle, "ncclAllGather");
57
- ncclCommUserRank_fn = resolve<decltype(ncclCommUserRank_fn)>(lib_handle, "ncclCommUserRank");
58
- ncclCommCount_fn = resolve<decltype(ncclCommCount_fn)>(lib_handle, "ncclCommCount");
59
- ncclGetErrorString_fn = resolve<decltype(ncclGetErrorString_fn)>(lib_handle, "ncclGetErrorString");
62
+ ncclAllGather_fn = resolve_nccl<decltype(ncclAllGather_fn)>("ncclAllGather");
63
+ ncclCommUserRank_fn = resolve_nccl<decltype(ncclCommUserRank_fn)>("ncclCommUserRank");
64
+ ncclCommCount_fn = resolve_nccl<decltype(ncclCommCount_fn)>("ncclCommCount");
65
+ ncclGetErrorString_fn = resolve_nccl<decltype(ncclGetErrorString_fn)>("ncclGetErrorString");
60
66
 
61
67
  return true;
62
68
  }
@@ -18,7 +18,11 @@ public:
18
18
  bool use_internal_memory_register = false;
19
19
  bool need_host_buffer = false;
20
20
  bool need_worker_threads = false;
21
- void *device_buffer = nullptr;
21
+ void *device_buffer = nullptr; // page-aligned pointer for tensor storage
22
+ void *device_buffer_raw = nullptr; // raw cudaMalloc pointer (for cudaFree)
23
+ void *device_staging_buffer = nullptr; // page-aligned device staging for FGDS
24
+ void *device_staging_buffer_raw = nullptr; // raw cudaMalloc pointer for staging
25
+ size_t device_staging_buffer_size = 0;
22
26
  void* host_buffer = nullptr; // rank-local staging windows
23
27
  HostBufferCacheEntry host_buffer_entry = {nullptr, 0, nullptr};
24
28
  vector<TensorMetadate> tensors;
@@ -148,6 +152,17 @@ public:
148
152
  IORequest post_read_chunk_uring(const ChunkIOParams &p);
149
153
  IOSubmitStatus submit_read_uring(chunk_id_t id);
150
154
  void poll_uring(std::vector<IOCompletion> &completed);
155
+
156
+ // fgds path (loader_io_fgds.cpp)
157
+ static bool fgds_available();
158
+ void open_file_fgds(FileInfo &f); // open fd with O_DIRECT, fgds_open
159
+ void close_file_fgds(FileInfo &f); // close fd
160
+ void register_device_buffer_fgds(); // fgds_regmem
161
+ void deregister_device_buffer_fgds(); // fgds_deregmem
162
+ IORequest post_read_chunk_fgds(const ChunkIOParams &p);
163
+
164
+ // fgds state
165
+ void *fgds_target_addr = nullptr; // registered device buffer target addr
151
166
  };
152
167
 
153
168
  void run_loader(unique_ptr<SPSCQueue<RPCRequest>> input_queue, std::shared_ptr<SPSCQueue<RPCResponse>> output_queue);
@@ -49,6 +49,7 @@ enum Backend {
49
49
  URING_BUFFERED,
50
50
  CUFILE,
51
51
  MMAP,
52
+ FGDS,
52
53
  };
53
54
 
54
55
  struct BackendStatus {
@@ -58,7 +59,7 @@ struct BackendStatus {
58
59
  };
59
60
 
60
61
  inline bool is_valid_backend(Backend backend) {
61
- return backend >= Backend::AIO && backend <= Backend::MMAP;
62
+ return backend >= Backend::AIO && backend <= Backend::FGDS;
62
63
  }
63
64
 
64
65
  inline string backend_to_string(Backend backend) {
@@ -69,6 +70,7 @@ inline string backend_to_string(Backend backend) {
69
70
  case Backend::URING_BUFFERED: return "URING_BUFFERED";
70
71
  case Backend::CUFILE: return "CUFILE";
71
72
  case Backend::MMAP: return "MMAP";
73
+ case Backend::FGDS: return "FGDS";
72
74
  }
73
75
  return "UNKNOWN";
74
76
  }
@@ -34,6 +34,8 @@ void Loader::open_file() {
34
34
  this->open_file_inmem(f);
35
35
  } else if (this->backend == Backend::CUFILE) {
36
36
  this->open_file_cufile(f);
37
+ } else if (this->backend == Backend::FGDS) {
38
+ this->open_file_fgds(f);
37
39
  } else if (this->backend == Backend::URING || this->backend == Backend::URING_BUFFERED) {
38
40
  this->open_file_uring(f);
39
41
  } else if (this->backend == Backend::AIO || this->backend == Backend::AIO_BUFFERED) {
@@ -55,6 +57,8 @@ void Loader::close_file() {
55
57
  this->close_file_inmem(f);
56
58
  } else if (this->backend == Backend::CUFILE) {
57
59
  this->close_file_cufile(f);
60
+ } else if (this->backend == Backend::FGDS) {
61
+ this->close_file_fgds(f);
58
62
  } else if (this->backend == Backend::URING || this->backend == Backend::URING_BUFFERED) {
59
63
  this->close_file_uring(f);
60
64
  } else if (this->backend == Backend::AIO || this->backend == Backend::AIO_BUFFERED) {
@@ -67,6 +71,9 @@ void Loader::close_file() {
67
71
  if(this->backend == Backend::URING || this->backend == Backend::URING_BUFFERED) {
68
72
  this->destroy_uring_context();
69
73
  }
74
+ if(this->backend == Backend::FGDS) {
75
+ fgds_close(this->device_idx);
76
+ }
70
77
  }
71
78
 
72
79
  void Loader::init_buffer() {
@@ -89,10 +96,34 @@ void Loader::init_buffer() {
89
96
  // For three tensors, these paddings exist at most 3 times
90
97
  size_t padded_size = 3 * (this->first_tensor_alignment + this->rank_alignment + this->world_chunk_alignment); // can be any value that >= 0
91
98
  this->buffer_size += padded_size;
92
- CUDA_CHECK(cudaMalloc(&this->device_buffer, this->buffer_size));
99
+
100
+ // Allocate page-aligned device buffer: over-allocate by (PAGE_SIZE-1) and adjust pointer
101
+ size_t alloc_size = this->buffer_size + PAGE_SIZE - 1;
102
+ CUDA_CHECK(cudaMalloc(&this->device_buffer_raw, alloc_size));
103
+ uintptr_t raw_addr = reinterpret_cast<uintptr_t>(this->device_buffer_raw);
104
+ uintptr_t aligned_addr = ROUND_UP(raw_addr, (uintptr_t)PAGE_SIZE);
105
+ this->device_buffer = reinterpret_cast<void*>(aligned_addr);
106
+ debug_log("device_buffer_raw=%p, aligned device_buffer=%p, buffer_size=%zu",
107
+ this->device_buffer_raw, this->device_buffer, this->buffer_size);
108
+
109
+ // FGDS needs a page-aligned device staging buffer for DIRECT_IO reads
110
+ // because chunk_device_buffer_offset is only aligned to first_tensor_alignment (16 bytes),
111
+ // not PAGE_SIZE. We stage each rank's page-aligned IO here then D2D copy to the final location.
112
+ if (this->backend == Backend::FGDS) {
113
+ this->device_staging_buffer_size = this->io_depth * ROUND_UP(this->rank_chunk_size, PAGE_SIZE);
114
+ size_t staging_alloc_size = this->device_staging_buffer_size + PAGE_SIZE - 1;
115
+ CUDA_CHECK(cudaMalloc(&this->device_staging_buffer_raw, staging_alloc_size));
116
+ uintptr_t staging_raw = reinterpret_cast<uintptr_t>(this->device_staging_buffer_raw);
117
+ uintptr_t staging_aligned = ROUND_UP(staging_raw, (uintptr_t)PAGE_SIZE);
118
+ this->device_staging_buffer = reinterpret_cast<void*>(staging_aligned);
119
+ debug_log("FGDS device_staging_buffer=%p, size=%zu",
120
+ this->device_staging_buffer, this->device_staging_buffer_size);
121
+ }
93
122
 
94
123
  if (this->backend == Backend::CUFILE) {
95
124
  this->register_device_buffer_cufile();
125
+ } else if (this->backend == Backend::FGDS) {
126
+ this->register_device_buffer_fgds();
96
127
  }
97
128
 
98
129
  if (this->need_host_buffer) {
@@ -127,8 +158,22 @@ void Loader::destroy_buffer() {
127
158
  if (this->backend == Backend::CUFILE) {
128
159
  this->deregister_device_buffer_cufile();
129
160
  }
161
+ if (this->backend == Backend::FGDS) {
162
+ this->deregister_device_buffer_fgds();
163
+ }
130
164
 
131
- CUDA_CHECK(cudaFree(this->device_buffer));
165
+ // Free the raw cudaMalloc'd pointers (device_buffer/device_staging_buffer are
166
+ // aligned offsets into these raw allocations and must not be passed to cudaFree).
167
+ if (this->device_buffer_raw) {
168
+ CUDA_CHECK(cudaFree(this->device_buffer_raw));
169
+ this->device_buffer_raw = nullptr;
170
+ this->device_buffer = nullptr;
171
+ }
172
+ if (this->device_staging_buffer_raw) {
173
+ CUDA_CHECK(cudaFree(this->device_staging_buffer_raw));
174
+ this->device_staging_buffer_raw = nullptr;
175
+ this->device_staging_buffer = nullptr;
176
+ }
132
177
 
133
178
  if (this->need_host_buffer) {
134
179
  // Buffer registration belongs to this loader's ring and must not outlive it.
@@ -472,7 +517,8 @@ void Loader::open(OpenArgs args) {
472
517
  " bytes after page alignment"));
473
518
  }
474
519
  if(this->concurrency == 0 &&
475
- (this->backend == Backend::MMAP || this->backend == Backend::CUFILE)) {
520
+ (this->backend == Backend::MMAP || this->backend == Backend::CUFILE ||
521
+ this->backend == Backend::FGDS)) {
476
522
  print_and_throw(std::invalid_argument("concurrency must be greater than zero"));
477
523
  }
478
524
  if(this->io_depth == 0 || this->io_depth > MAX_IO_DEPTH) {
@@ -593,6 +639,8 @@ void Loader::post_read_chunk() {
593
639
  io_request = this->post_read_chunk_inmem(params);
594
640
  } else if (this->backend == Backend::CUFILE) {
595
641
  io_request = this->post_read_chunk_cufile(params);
642
+ } else if (this->backend == Backend::FGDS) {
643
+ io_request = this->post_read_chunk_fgds(params);
596
644
  } else if (this->backend == Backend::URING || this->backend == Backend::URING_BUFFERED) {
597
645
  io_request = this->post_read_chunk_uring(params);
598
646
  } else if (this->backend == Backend::AIO || this->backend == Backend::AIO_BUFFERED) {