aicomm-benchmark 0.5.1__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 (298) hide show
  1. aicomm_benchmark-0.5.1/MANIFEST.in +5 -0
  2. aicomm_benchmark-0.5.1/PKG-INFO +288 -0
  3. aicomm_benchmark-0.5.1/README.md +246 -0
  4. aicomm_benchmark-0.5.1/aicomm/__init__.py +39 -0
  5. aicomm_benchmark-0.5.1/aicomm/__main__.py +2 -0
  6. aicomm_benchmark-0.5.1/aicomm/aicomm_main.py +3 -0
  7. aicomm_benchmark-0.5.1/aicomm_benchmark/__init__.py +11 -0
  8. aicomm_benchmark-0.5.1/aicomm_benchmark/__main__.py +4 -0
  9. aicomm_benchmark-0.5.1/aicomm_benchmark/aicomm_main.py +1055 -0
  10. aicomm_benchmark-0.5.1/aicomm_benchmark/analysis/__init__.py +35 -0
  11. aicomm_benchmark-0.5.1/aicomm_benchmark/analysis/bandwidth.py +379 -0
  12. aicomm_benchmark-0.5.1/aicomm_benchmark/analysis/bottleneck.py +253 -0
  13. aicomm_benchmark-0.5.1/aicomm_benchmark/analysis/ccl_parser.py +318 -0
  14. aicomm_benchmark-0.5.1/aicomm_benchmark/analysis/compare_layers.py +147 -0
  15. aicomm_benchmark-0.5.1/aicomm_benchmark/analysis/correctness.py +610 -0
  16. aicomm_benchmark-0.5.1/aicomm_benchmark/analysis/parse_fabric.py +271 -0
  17. aicomm_benchmark-0.5.1/aicomm_benchmark/analysis/parse_layers.py +166 -0
  18. aicomm_benchmark-0.5.1/aicomm_benchmark/analysis/results.py +206 -0
  19. aicomm_benchmark-0.5.1/aicomm_benchmark/ccl/ccl_bench.cpp +580 -0
  20. aicomm_benchmark-0.5.1/aicomm_benchmark/ccl/ccl_correctness.hpp +92 -0
  21. aicomm_benchmark-0.5.1/aicomm_benchmark/ccl/tests/test_ccl_correctness.cpp +92 -0
  22. aicomm_benchmark-0.5.1/aicomm_benchmark/ccl/tests/test_ccl_integration.py +47 -0
  23. aicomm_benchmark-0.5.1/aicomm_benchmark/comm/__init__.py +8 -0
  24. aicomm_benchmark-0.5.1/aicomm_benchmark/comm/collectives.py +436 -0
  25. aicomm_benchmark-0.5.1/aicomm_benchmark/comm/comm_setup.py +299 -0
  26. aicomm_benchmark-0.5.1/aicomm_benchmark/comm/torchcomms_backend.py +851 -0
  27. aicomm_benchmark-0.5.1/aicomm_benchmark/config/__init__.py +17 -0
  28. aicomm_benchmark-0.5.1/aicomm_benchmark/config/config.yaml +34 -0
  29. aicomm_benchmark-0.5.1/aicomm_benchmark/config/config_spec.json +113 -0
  30. aicomm_benchmark-0.5.1/aicomm_benchmark/config/mpi_utils.py +57 -0
  31. aicomm_benchmark-0.5.1/aicomm_benchmark/config/setup_algorithms.py +200 -0
  32. aicomm_benchmark-0.5.1/aicomm_benchmark/config/system_info.py +203 -0
  33. aicomm_benchmark-0.5.1/aicomm_benchmark/config/topology.py +168 -0
  34. aicomm_benchmark-0.5.1/aicomm_benchmark/config/validation.py +411 -0
  35. aicomm_benchmark-0.5.1/aicomm_benchmark/osu/__init__.py +32 -0
  36. aicomm_benchmark-0.5.1/aicomm_benchmark/osu/compare.py +112 -0
  37. aicomm_benchmark-0.5.1/aicomm_benchmark/osu/runner.py +277 -0
  38. aicomm_benchmark-0.5.1/aicomm_benchmark/timer/__init__.py +1 -0
  39. aicomm_benchmark-0.5.1/aicomm_benchmark/timer/timer.py +276 -0
  40. aicomm_benchmark-0.5.1/aicomm_benchmark/transfer/__init__.py +16 -0
  41. aicomm_benchmark-0.5.1/aicomm_benchmark/transfer/h2d.py +208 -0
  42. aicomm_benchmark-0.5.1/aicomm_benchmark/transfer/nixl_remote.py +560 -0
  43. aicomm_benchmark-0.5.1/aicomm_benchmark/transfer/nixl_transfer.py +413 -0
  44. aicomm_benchmark-0.5.1/aicomm_benchmark/transfer/pci_fixed.cpp +181 -0
  45. aicomm_benchmark-0.5.1/aicomm_benchmark/transfer/pci_fixed_cuda.cu +725 -0
  46. aicomm_benchmark-0.5.1/aicomm_benchmark/utils/__init__.py +0 -0
  47. aicomm_benchmark-0.5.1/aicomm_benchmark/utils/utility.py +165 -0
  48. aicomm_benchmark-0.5.1/aicomm_benchmark/verify/__init__.py +33 -0
  49. aicomm_benchmark-0.5.1/aicomm_benchmark/verify/failures.py +83 -0
  50. aicomm_benchmark-0.5.1/aicomm_benchmark/verify/payload.py +209 -0
  51. aicomm_benchmark-0.5.1/aicomm_benchmark.egg-info/PKG-INFO +288 -0
  52. aicomm_benchmark-0.5.1/aicomm_benchmark.egg-info/SOURCES.txt +296 -0
  53. aicomm_benchmark-0.5.1/aicomm_benchmark.egg-info/dependency_links.txt +1 -0
  54. aicomm_benchmark-0.5.1/aicomm_benchmark.egg-info/entry_points.txt +4 -0
  55. aicomm_benchmark-0.5.1/aicomm_benchmark.egg-info/requires.txt +17 -0
  56. aicomm_benchmark-0.5.1/aicomm_benchmark.egg-info/top_level.txt +3 -0
  57. aicomm_benchmark-0.5.1/dl_comm/__init__.py +39 -0
  58. aicomm_benchmark-0.5.1/dl_comm/__main__.py +3 -0
  59. aicomm_benchmark-0.5.1/dl_comm/dl_comm_main.py +3 -0
  60. aicomm_benchmark-0.5.1/docs/COMMITS.md +447 -0
  61. aicomm_benchmark-0.5.1/docs/INDEX.md +54 -0
  62. aicomm_benchmark-0.5.1/docs/MIGRATING_TO_AICOMM.md +23 -0
  63. aicomm_benchmark-0.5.1/docs/findings/01-allgather-degradation.md +92 -0
  64. aicomm_benchmark-0.5.1/docs/findings/02-alltoall-node-boundary.md +97 -0
  65. aicomm_benchmark-0.5.1/docs/findings/03-busbw-convention-vs-reference.md +68 -0
  66. aicomm_benchmark-0.5.1/docs/findings/04-torchcomms-measured.md +128 -0
  67. aicomm_benchmark-0.5.1/docs/findings/05-torchcomms-standard-vs-c10d.md +78 -0
  68. aicomm_benchmark-0.5.1/docs/findings/06-allgather-busbw-harness-disagreement.md +83 -0
  69. aicomm_benchmark-0.5.1/docs/fixes/01-rank-dependent-verification.md +114 -0
  70. aicomm_benchmark-0.5.1/docs/fixes/02-bandwidth-group-size.md +82 -0
  71. aicomm_benchmark-0.5.1/docs/fixes/03-rank-topology-validation.md +83 -0
  72. aicomm_benchmark-0.5.1/docs/fixes/04-fail-loudly.md +69 -0
  73. aicomm_benchmark-0.5.1/docs/fixes/05-timing-and-statistics.md +87 -0
  74. aicomm_benchmark-0.5.1/docs/fixes/06-packaging.md +66 -0
  75. aicomm_benchmark-0.5.1/docs/fixes/07-log-dir-fallback.md +50 -0
  76. aicomm_benchmark-0.5.1/docs/fixes/08-conditional-ccl-import.md +70 -0
  77. aicomm_benchmark-0.5.1/docs/fixes/09-teardown-exit-status.md +80 -0
  78. aicomm_benchmark-0.5.1/docs/fixes/10-p2p-and-vector-collectives.md +97 -0
  79. aicomm_benchmark-0.5.1/docs/fixes/11-verdict-barrier-timeout.md +71 -0
  80. aicomm_benchmark-0.5.1/docs/fixes/12-hang-watchdog.md +89 -0
  81. aicomm_benchmark-0.5.1/docs/fixes/13-mpi-buffer-api.md +104 -0
  82. aicomm_benchmark-0.5.1/docs/fixes/14-enabled-flag.md +85 -0
  83. aicomm_benchmark-0.5.1/docs/fixes/15-isend-ordering-deadlock.md +75 -0
  84. aicomm_benchmark-0.5.1/docs/fixes/17-torchcomms-backend.md +165 -0
  85. aicomm_benchmark-0.5.1/docs/fixes/18-osu-integration.md +149 -0
  86. aicomm_benchmark-0.5.1/docs/fixes/20-h2d-transfer.md +104 -0
  87. aicomm_benchmark-0.5.1/docs/fixes/21-cpp-ccl-layer.md +132 -0
  88. aicomm_benchmark-0.5.1/docs/fixes/22-transfer-fill-timeout.md +60 -0
  89. aicomm_benchmark-0.5.1/docs/fixes/23-pals-no-global-size.md +109 -0
  90. aicomm_benchmark-0.5.1/docs/fixes/24-pals-env-pmi-clobber.md +93 -0
  91. aicomm_benchmark-0.5.1/docs/fixes/25-torch-dist-pmix-and-alltoall-divisibility.md +77 -0
  92. aicomm_benchmark-0.5.1/docs/fixes/26-torchcomms-abi-pairing-and-stub-backend.md +127 -0
  93. aicomm_benchmark-0.5.1/docs/torchcomms-stack.md +165 -0
  94. aicomm_benchmark-0.5.1/examples/10_ulyss/10_ulyss_nccl.yaml +46 -0
  95. aicomm_benchmark-0.5.1/examples/10_ulyss/10_ulyss_xccl.yaml +46 -0
  96. aicomm_benchmark-0.5.1/examples/10_ulyss/jobscript_ulyss_nccl.sh +77 -0
  97. aicomm_benchmark-0.5.1/examples/10_ulyss/jobscript_ulyss_xccl.sh +76 -0
  98. aicomm_benchmark-0.5.1/examples/11_sp/11_sp_nccl.yaml +65 -0
  99. aicomm_benchmark-0.5.1/examples/11_sp/11_sp_xccl.yaml +65 -0
  100. aicomm_benchmark-0.5.1/examples/11_sp/jobscript_sp_nccl.sh +77 -0
  101. aicomm_benchmark-0.5.1/examples/11_sp/jobscript_sp_xccl.sh +76 -0
  102. aicomm_benchmark-0.5.1/examples/12_custom_dev/config.yaml +67 -0
  103. aicomm_benchmark-0.5.1/examples/12_custom_dev/config_nccl.yaml +66 -0
  104. aicomm_benchmark-0.5.1/examples/12_custom_dev/config_xccl.yaml +66 -0
  105. aicomm_benchmark-0.5.1/examples/12_custom_dev/jobscript_nccl.sh +74 -0
  106. aicomm_benchmark-0.5.1/examples/12_custom_dev/jobscript_xccl.sh +68 -0
  107. aicomm_benchmark-0.5.1/examples/13_for_paper/A_nodes_2/jobscript_xccl.sh +75 -0
  108. aicomm_benchmark-0.5.1/examples/13_for_paper/A_nodes_2/xccl.yaml +198 -0
  109. aicomm_benchmark-0.5.1/examples/13_for_paper/B_nodes_1024/jobscript_xccl.sh +75 -0
  110. aicomm_benchmark-0.5.1/examples/13_for_paper/B_nodes_1024/xccl.yaml +198 -0
  111. aicomm_benchmark-0.5.1/examples/13_for_paper/C_nodes_8192/jobscript_xccl.sh +75 -0
  112. aicomm_benchmark-0.5.1/examples/13_for_paper/C_nodes_8192/xccl.yaml +198 -0
  113. aicomm_benchmark-0.5.1/examples/13_for_paper/D_all_machine_nodes512_gpus4/jobscript_nccl.sh +76 -0
  114. aicomm_benchmark-0.5.1/examples/13_for_paper/D_all_machine_nodes512_gpus4/jobscript_rccl.sh +54 -0
  115. aicomm_benchmark-0.5.1/examples/13_for_paper/D_all_machine_nodes512_gpus4/jobscript_xccl.sh +75 -0
  116. aicomm_benchmark-0.5.1/examples/13_for_paper/D_all_machine_nodes512_gpus4/nccl.yaml +198 -0
  117. aicomm_benchmark-0.5.1/examples/13_for_paper/D_all_machine_nodes512_gpus4/rccl.yaml +198 -0
  118. aicomm_benchmark-0.5.1/examples/13_for_paper/D_all_machine_nodes512_gpus4/xccl.yaml +198 -0
  119. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/0ReadMe.md +1 -0
  120. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/jobscript_nccl.sh +76 -0
  121. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/jobscript_rccl.sh +54 -0
  122. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/jobscript_xccl.sh +75 -0
  123. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/nccl_100KB.yaml +198 -0
  124. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/nccl_100MB.yaml +198 -0
  125. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/nccl_1KB.yaml +198 -0
  126. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/nccl_1MB.yaml +198 -0
  127. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/rccl_100KB.yaml +198 -0
  128. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/rccl_100MB.yaml +198 -0
  129. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/rccl_1KB.yaml +198 -0
  130. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/rccl_1MB.yaml +198 -0
  131. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/xccl_100KB.yaml +198 -0
  132. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/xccl_100MB.yaml +198 -0
  133. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/xccl_1KB.yaml +198 -0
  134. aicomm_benchmark-0.5.1/examples/13_for_paper/E_allmachines_nodes_512_gpus4_different_buffers/xccl_1MB.yaml +198 -0
  135. aicomm_benchmark-0.5.1/examples/13_for_paper/F_scale_out_algorithms_nodes1024/algorithms.yaml +578 -0
  136. aicomm_benchmark-0.5.1/examples/13_for_paper/F_scale_out_algorithms_nodes1024/jobscript_algorithms.sh +75 -0
  137. aicomm_benchmark-0.5.1/examples/14_p2p_and_vector/14_p2p_and_vector_xccl.yaml +82 -0
  138. aicomm_benchmark-0.5.1/examples/14_p2p_and_vector/README.md +44 -0
  139. aicomm_benchmark-0.5.1/examples/14_p2p_and_vector/jobscript_p2p_and_vector_xccl.sh +86 -0
  140. aicomm_benchmark-0.5.1/examples/15_transfer_h2d_d2h_d2d/README.md +53 -0
  141. aicomm_benchmark-0.5.1/examples/15_transfer_h2d_d2h_d2d/jobscript_transfer.sh +101 -0
  142. aicomm_benchmark-0.5.1/examples/16_all_layers_comparison/README.md +123 -0
  143. aicomm_benchmark-0.5.1/examples/16_all_layers_comparison/TARA.md +78 -0
  144. aicomm_benchmark-0.5.1/examples/16_all_layers_comparison/TARA_DEEP_VALIDATION.md +54 -0
  145. aicomm_benchmark-0.5.1/examples/16_all_layers_comparison/jobscript_all_layers.sh +51 -0
  146. aicomm_benchmark-0.5.1/examples/16_all_layers_comparison/tara_nccl_env.sh +8 -0
  147. aicomm_benchmark-0.5.1/examples/17_torchcomms/17_torchcomms_xccl.yaml +124 -0
  148. aicomm_benchmark-0.5.1/examples/17_torchcomms/17_torchcomms_xccl_2node.yaml +122 -0
  149. aicomm_benchmark-0.5.1/examples/17_torchcomms/README.md +67 -0
  150. aicomm_benchmark-0.5.1/examples/17_torchcomms/jobscript_torchcomms.sh +151 -0
  151. aicomm_benchmark-0.5.1/examples/18_nixl_transfer/README.md +129 -0
  152. aicomm_benchmark-0.5.1/examples/18_nixl_transfer/jobscript_nixl_transfer.sh +84 -0
  153. aicomm_benchmark-0.5.1/examples/18_nixl_transfer/run_nixl_transfer.py +153 -0
  154. aicomm_benchmark-0.5.1/examples/18_nixl_transfer/run_torchcomms_check.py +102 -0
  155. aicomm_benchmark-0.5.1/examples/18_nixl_transfer/test_nixl_transfer.py +95 -0
  156. aicomm_benchmark-0.5.1/examples/19_nixl_remote_rdma/README.md +216 -0
  157. aicomm_benchmark-0.5.1/examples/19_nixl_remote_rdma/jobscript_nixl_remote.sh +329 -0
  158. aicomm_benchmark-0.5.1/examples/19_nixl_remote_rdma/mpi_fabric_baseline.py +64 -0
  159. aicomm_benchmark-0.5.1/examples/19_nixl_remote_rdma/run_nixl_remote.py +198 -0
  160. aicomm_benchmark-0.5.1/examples/19_nixl_remote_rdma/test_nixl_remote.py +204 -0
  161. aicomm_benchmark-0.5.1/examples/1_simple_flat/1_simple_flat_nccl.yaml +33 -0
  162. aicomm_benchmark-0.5.1/examples/1_simple_flat/1_simple_flat_xccl.yaml +33 -0
  163. aicomm_benchmark-0.5.1/examples/1_simple_flat/jobscript_simple_flat_nccl.sh +76 -0
  164. aicomm_benchmark-0.5.1/examples/1_simple_flat/jobscript_simple_flat_xccl.sh +77 -0
  165. aicomm_benchmark-0.5.1/examples/20_fabric_layers/README.md +127 -0
  166. aicomm_benchmark-0.5.1/examples/20_fabric_layers/jobscript_fabric_layers.sh +102 -0
  167. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/README.md +165 -0
  168. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/jobscript_sweep_1node.sh +44 -0
  169. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/jobscript_sweep_2node.sh +41 -0
  170. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/layer_ladder.sh +189 -0
  171. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/layer_profile.py +417 -0
  172. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/README.md +107 -0
  173. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/build_nccl_instr.sh +146 -0
  174. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/build_ofi_only.sh +134 -0
  175. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/gap_report.py +149 -0
  176. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/ladder_cxi_compare.py +87 -0
  177. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/layer_gap_table.py +201 -0
  178. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/layer_ladder.sh +274 -0
  179. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/lifecycle_report.py +252 -0
  180. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/lifecycle_torch.py +114 -0
  181. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/mpi_bisect.sh +74 -0
  182. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/mpi_gpu_probe.sh +72 -0
  183. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/nccl_ab.sh +130 -0
  184. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/nccl_bisect.sh +92 -0
  185. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/nccl_gap.sh +190 -0
  186. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/nccl_lifecycle.sh +190 -0
  187. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/nccl_oob.sh +89 -0
  188. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/nccl_oob2.sh +99 -0
  189. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/nccl_prof.sh +74 -0
  190. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/nccl_prof_ladder.sh +75 -0
  191. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/nccl_trace_stats.py +88 -0
  192. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/nccl_variance.sh +95 -0
  193. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/parse_ab.py +90 -0
  194. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/sweep_cxi.sh +148 -0
  195. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/tamper_test.py +58 -0
  196. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/tamper_test_lifecycle.py +97 -0
  197. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/torch_allreduce.py +108 -0
  198. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/variance_stats.py +128 -0
  199. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/verify_final_report.py +358 -0
  200. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nccl_instrumented/verify_lifecycle_report.py +230 -0
  201. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nixl_modes_bench.py +621 -0
  202. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/nixl_putget_bench.py +456 -0
  203. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/pals_nccl_env.sh +22 -0
  204. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/pals_nixl_env.sh +39 -0
  205. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/pals_osu_env.sh +20 -0
  206. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/pals_torch_env.sh +24 -0
  207. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/sweep_layers_cuda.sh +702 -0
  208. aicomm_benchmark-0.5.1/examples/21_cuda_layer_sweeps/torch_dist_bench.py +229 -0
  209. aicomm_benchmark-0.5.1/examples/2_multimode/2_multimode_nccl.yaml +46 -0
  210. aicomm_benchmark-0.5.1/examples/2_multimode/2_multimode_xccl.yaml +46 -0
  211. aicomm_benchmark-0.5.1/examples/2_multimode/jobscript_multimode_nccl.sh +78 -0
  212. aicomm_benchmark-0.5.1/examples/2_multimode/jobscript_multimode_xccl.sh +76 -0
  213. aicomm_benchmark-0.5.1/examples/3_cpu/3_cpu.yaml +198 -0
  214. aicomm_benchmark-0.5.1/examples/3_cpu/jobscript_cpu_xccl.sh +76 -0
  215. aicomm_benchmark-0.5.1/examples/5_all_collectives/5_all_collectives_nccl.yaml +198 -0
  216. aicomm_benchmark-0.5.1/examples/5_all_collectives/5_all_collectives_xccl.yaml +198 -0
  217. aicomm_benchmark-0.5.1/examples/5_all_collectives/jobscript_all_collectives_nccl.sh +77 -0
  218. aicomm_benchmark-0.5.1/examples/5_all_collectives/jobscript_all_collectives_xccl.sh +75 -0
  219. aicomm_benchmark-0.5.1/examples/6_all_collectives_scale/6_all_collectives_scale_nccl.yaml +198 -0
  220. aicomm_benchmark-0.5.1/examples/6_all_collectives_scale/6_all_collectives_scale_xccl.yaml +198 -0
  221. aicomm_benchmark-0.5.1/examples/6_all_collectives_scale/jobscript_all_collectives_scale_nccl.sh +82 -0
  222. aicomm_benchmark-0.5.1/examples/6_all_collectives_scale/jobscript_all_collectives_scale_xccl.sh +75 -0
  223. aicomm_benchmark-0.5.1/examples/7_nccl_across_node/7_nccl_across_node.yaml +198 -0
  224. aicomm_benchmark-0.5.1/examples/7_nccl_across_node/jobscript_nccl_across_nccl.sh +72 -0
  225. aicomm_benchmark-0.5.1/examples/8_rccl_pytorch/8_rccl_pytorch.yaml +198 -0
  226. aicomm_benchmark-0.5.1/examples/8_rccl_pytorch/jobscript_all_collectives_scale_rccl.sh +54 -0
  227. aicomm_benchmark-0.5.1/examples/8_rccl_pytorch/test/allreduce_example.py +33 -0
  228. aicomm_benchmark-0.5.1/examples/8_rccl_pytorch/test/jobscript_allreduce.sh +37 -0
  229. aicomm_benchmark-0.5.1/examples/9_rccl_jax/9_rccl_jax.yaml +49 -0
  230. aicomm_benchmark-0.5.1/examples/9_rccl_jax/README.md +8 -0
  231. aicomm_benchmark-0.5.1/examples/9_rccl_jax/jobscript_all_collectives_scale_rccl.sh +72 -0
  232. aicomm_benchmark-0.5.1/examples/9_rccl_jax/test/example.py +58 -0
  233. aicomm_benchmark-0.5.1/examples/9_rccl_jax/test/example.sh +28 -0
  234. aicomm_benchmark-0.5.1/pyproject.toml +77 -0
  235. aicomm_benchmark-0.5.1/setup.cfg +4 -0
  236. aicomm_benchmark-0.5.1/tests/test_aicomm_migration.py +81 -0
  237. aicomm_benchmark-0.5.1/tests/test_bandwidth.py +132 -0
  238. aicomm_benchmark-0.5.1/tests/test_barrier_correctness.py +212 -0
  239. aicomm_benchmark-0.5.1/tests/test_bottleneck.py +176 -0
  240. aicomm_benchmark-0.5.1/tests/test_config_spec_matches_registry.py +95 -0
  241. aicomm_benchmark-0.5.1/tests/test_correctness_detects_breakage.py +146 -0
  242. aicomm_benchmark-0.5.1/tests/test_correctness_torchcomms_group.py +143 -0
  243. aicomm_benchmark-0.5.1/tests/test_failures_and_results.py +121 -0
  244. aicomm_benchmark-0.5.1/tests/test_h2d_transfer.py +126 -0
  245. aicomm_benchmark-0.5.1/tests/test_layer_profile.py +83 -0
  246. aicomm_benchmark-0.5.1/tests/test_mxm_unitrace.py +32 -0
  247. aicomm_benchmark-0.5.1/tests/test_nixl_cxi_build_tools.py +114 -0
  248. aicomm_benchmark-0.5.1/tests/test_nixl_depth_documented.py +107 -0
  249. aicomm_benchmark-0.5.1/tests/test_nixl_putget_rendezvous.py +511 -0
  250. aicomm_benchmark-0.5.1/tests/test_nodefile_ordering.py +91 -0
  251. aicomm_benchmark-0.5.1/tests/test_osu_compare.py +96 -0
  252. aicomm_benchmark-0.5.1/tests/test_osu_integration.py +148 -0
  253. aicomm_benchmark-0.5.1/tests/test_p1_regressions.py +439 -0
  254. aicomm_benchmark-0.5.1/tests/test_parse_fabric.py +275 -0
  255. aicomm_benchmark-0.5.1/tests/test_parse_fabric_failure_dominance.py +66 -0
  256. aicomm_benchmark-0.5.1/tests/test_parse_layers.py +252 -0
  257. aicomm_benchmark-0.5.1/tests/test_payload.py +127 -0
  258. aicomm_benchmark-0.5.1/tests/test_pci_fixed_cuda_sizes.py +432 -0
  259. aicomm_benchmark-0.5.1/tests/test_profile_layer_cells.py +76 -0
  260. aicomm_benchmark-0.5.1/tests/test_reducescatter_divisibility.py +101 -0
  261. aicomm_benchmark-0.5.1/tests/test_report_correctness_gates.py +146 -0
  262. aicomm_benchmark-0.5.1/tests/test_sweep_layers.py +729 -0
  263. aicomm_benchmark-0.5.1/tests/test_tara_nccl_profile.py +18 -0
  264. aicomm_benchmark-0.5.1/tests/test_timer_sync.py +93 -0
  265. aicomm_benchmark-0.5.1/tests/test_topology_validation.py +110 -0
  266. aicomm_benchmark-0.5.1/tests/test_torchcomms_backend.py +328 -0
  267. aicomm_benchmark-0.5.1/tests/test_torchcomms_gather_completion.py +44 -0
  268. aicomm_benchmark-0.5.1/tests/test_torchcomms_op_passthrough.py +143 -0
  269. aicomm_benchmark-0.5.1/tests/test_torchcomms_rank_translation.py +396 -0
  270. aicomm_benchmark-0.5.1/tests/test_torchcomms_reduce_op_mapping.py +133 -0
  271. aicomm_benchmark-0.5.1/tests/test_torchcomms_stack_selection.py +131 -0
  272. aicomm_benchmark-0.5.1/tests/test_torchcomms_transport.py +155 -0
  273. aicomm_benchmark-0.5.1/tests/test_torchcomms_transport_resolution.py +305 -0
  274. aicomm_benchmark-0.5.1/tools/build_report.py +895 -0
  275. aicomm_benchmark-0.5.1/tools/count_cells.sh +32 -0
  276. aicomm_benchmark-0.5.1/tools/examples_dl_scaling/across/across.py +149 -0
  277. aicomm_benchmark-0.5.1/tools/examples_dl_scaling/across/run_across.sh +49 -0
  278. aicomm_benchmark-0.5.1/tools/examples_dl_scaling/combined/combined.py +148 -0
  279. aicomm_benchmark-0.5.1/tools/examples_dl_scaling/combined/run_combined.sh +49 -0
  280. aicomm_benchmark-0.5.1/tools/examples_dl_scaling/within/run_within.sh +28 -0
  281. aicomm_benchmark-0.5.1/tools/examples_dl_scaling/within/within.py +150 -0
  282. aicomm_benchmark-0.5.1/tools/gen_commit_history.py +238 -0
  283. aicomm_benchmark-0.5.1/tools/gen_docs_index.py +153 -0
  284. aicomm_benchmark-0.5.1/tools/logo.py +138 -0
  285. aicomm_benchmark-0.5.1/tools/nixl_cxi_build/build_nixl_cxi.sh +91 -0
  286. aicomm_benchmark-0.5.1/tools/nixl_cxi_build/patch_nixl_cray.py +143 -0
  287. aicomm_benchmark-0.5.1/tools/pals_env.sh +57 -0
  288. aicomm_benchmark-0.5.1/tools/probe_alltoall_algorithm.sh +110 -0
  289. aicomm_benchmark-0.5.1/tools/probe_standard_vs_c10d.py +110 -0
  290. aicomm_benchmark-0.5.1/tools/probe_standard_vs_c10d.sh +55 -0
  291. aicomm_benchmark-0.5.1/tools/probe_tc03.py +268 -0
  292. aicomm_benchmark-0.5.1/tools/profile_section.py +210 -0
  293. aicomm_benchmark-0.5.1/tools/run_all_scales.sh +532 -0
  294. aicomm_benchmark-0.5.1/tools/run_mpi_probe.sh +44 -0
  295. aicomm_benchmark-0.5.1/tools/run_mpi_probe2.sh +83 -0
  296. aicomm_benchmark-0.5.1/tools/test_all_layers_simple.sh +126 -0
  297. aicomm_benchmark-0.5.1/tools/test_distribution.py +37 -0
  298. aicomm_benchmark-0.5.1/tools/verify_nixl_coverage.py +202 -0
@@ -0,0 +1,5 @@
1
+ include README.md pyproject.toml
2
+ recursive-include aicomm_benchmark *.cpp *.cu *.hpp *.h *.sh
3
+ recursive-include examples *.py *.sh *.md *.yaml *.yml *.json *.cpp *.hpp
4
+ recursive-include tools *.py *.sh
5
+ recursive-include docs *.md
@@ -0,0 +1,288 @@
1
+ Metadata-Version: 2.4
2
+ Name: aicomm-benchmark
3
+ Version: 0.5.1
4
+ Summary: Distributed GPU Communication Benchmarking Framework for Deep Learning
5
+ Author-email: Musa Cim <musaoguzhancim@gmail.com>, Kaushik Velusamy <kaushikvelusamy@gmail.com>
6
+ Project-URL: Homepage, https://github.com/argonne-lcf/aicomm-benchmark
7
+ Project-URL: Documentation, https://github.com/argonne-lcf/aicomm-benchmark
8
+ Project-URL: Repository, https://github.com/argonne-lcf/aicomm-benchmark
9
+ Project-URL: Bug Tracker, https://github.com/argonne-lcf/aicomm-benchmark/issues
10
+ Keywords: deep-learning,gpu,communication,benchmark,mpi,distributed,pytorch,ccl
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Classifier: Topic :: System :: Distributed Computing
23
+ Classifier: Topic :: System :: Benchmark
24
+ Classifier: Operating System :: POSIX :: Linux
25
+ Requires-Python: <3.14,>=3.9
26
+ Description-Content-Type: text/markdown
27
+ Requires-Dist: numpy>=1.23
28
+ Requires-Dist: mpi4py>=3.1.0
29
+ Requires-Dist: hydra-core>=1.1.0
30
+ Requires-Dist: omegaconf>=2.1.0
31
+ Requires-Dist: PyYAML>=5.4
32
+ Requires-Dist: pytz>=2021.1
33
+ Requires-Dist: torch>=1.12.0
34
+ Provides-Extra: intel
35
+ Requires-Dist: intel-extension-for-pytorch; extra == "intel"
36
+ Requires-Dist: oneccl-bindings-for-pytorch; extra == "intel"
37
+ Provides-Extra: dev
38
+ Requires-Dist: pytest>=6.0; extra == "dev"
39
+ Requires-Dist: black>=22.0; extra == "dev"
40
+ Requires-Dist: flake8>=4.0; extra == "dev"
41
+ Requires-Dist: mypy>=0.950; extra == "dev"
42
+
43
+ # AI Communication Benchmark
44
+
45
+ **AIComm** is a communication benchmark designed for Deep Learning and AI workloads. Collective communication performance is often the primary bottleneck in AI training, inference, reasoning, and large-scale applications. AIComm emulates the communication patterns of the latest large language models (LLMs) and AI applications at scale, specifically targeting deployments of 50,000 GPUs and beyond.
46
+
47
+ The benchmark is provided as an executable that can be configured to test various communication patterns within different AI distributed runtime frameworks. It uses a modular design to support all levels of communicator groups across GPUs, with flexible configurations for payload sizes, AI frameworks, and collective communication backends. AIComm enables testing on diverse systems, supports modifying scale-up and scale-out algorithms, and verifies correctness after communication operations.
48
+
49
+ Unlike traditional communication benchmarks, AIComm is built with the philosophy of reflecting real-world communication performance of the application as accurately as possible. It captures the interplay between Python runtimes, AI frameworks, and collective communication libraries (CCL) to provide insights that are directly relevant to actual AI workloads.
50
+
51
+ The figure below illustrates a simple model of how AIComm can form different communication groups across GPUs on multiple compute nodes. It shows how GPUs can be selected within nodes, across nodes, or as a flat group, allowing users to explicitly specify which GPU IDs participate in each collective communication group.
52
+
53
+ <img src="tools/AIComm_modes_readme.png" style="width: 95%;">
54
+ <img src="tools/AIComm_logo.gif" style="width: 25%;">
55
+
56
+ ## Installation and running AICOMM
57
+
58
+ Requires Python 3.9-3.13 (hydra-core 1.3.x does not start on Python 3.14).
59
+
60
+ ```bash
61
+ pip install aicomm-benchmark # latest release from PyPI
62
+ # or the current master:
63
+ pip install git+https://github.com/argonne-lcf/aicomm-benchmark.git
64
+ ```
65
+
66
+ The example configs live in `examples/` in this repository, so clone it to get them.
67
+ `aicomm --help` works with a packaged one-XPU default configuration. Supply an example config for your system and launch geometry. See [migration instructions](docs/MIGRATING_TO_AICOMM.md); `pip install aicomm-benchmark` requires publication of the renamed package, independently of this repository rename.
68
+
69
+ ### ALCF Installation
70
+
71
+ ```bash
72
+ module load frameworks
73
+
74
+ export AICOMM_INSTALL_PATH=/path_to/aicomm-install-dir
75
+
76
+ python -m pip install --target "$AICOMM_INSTALL_PATH" aicomm-benchmark
77
+
78
+ export PYTHONPATH="$AICOMM_INSTALL_PATH${PYTHONPATH:+:$PYTHONPATH}"
79
+ export PATH="$AICOMM_INSTALL_PATH/bin:$PATH"
80
+ ```
81
+
82
+ ## Running the benchmark
83
+
84
+ ## YAML configuration file
85
+
86
+ Workload characteristics for DL COMM are specified by a YAML configuration file. Multiple example configurations are available in the `examples/` directory, organized in numbered folders (e.g., `examples/1_simple_flat/`, `examples/2_multimode/`). Each folder contains complete configuration files and corresponding job scripts.
87
+
88
+ Below is an example configuration file
89
+
90
+ ```yaml
91
+ framework : pytorch
92
+ ccl_backend : ccl # rccl / nccl / xccl (Note: PyTorch 2.7+ users should use 'xccl' instead of 'ccl' for Intel oneCCL)
93
+ extended_logging : off
94
+ barrier : on # on / off - on: adds MPI barrier before timer printing for accurate timing, off: only rank 0 prints
95
+ device_type : gpu
96
+ memory_source : gpu
97
+
98
+ order_of_run: [simple-allreduce]
99
+
100
+ simple-allreduce:
101
+ comm_group: flatview
102
+ num_compute_nodes: 2
103
+ num_devices_per_node: 12
104
+ device_ids_per_node: [0,1,2,3,4,5,6,7,8,9,10,11]
105
+ verify_correctness: on
106
+ collective:
107
+ collective_name: allreduce # allgather / reducescatter / broadcast / allreduce / alltoall
108
+ collective_op: sum # max / min / prod / sum
109
+ scale_up_algorithm: default
110
+ scale_out_algorithm: default
111
+ iterations: 5
112
+ warmup_iterations: 2
113
+ add_mxm_compute: on
114
+ payload:
115
+ dtype: float32 # float64 / int32 / int64 / bfloat16 / float8 / float32
116
+ count:
117
+ buffer_size: 100KB
118
+ ```
119
+
120
+ ### Example 2: Multi-mode Communication
121
+
122
+ The `examples/2_multimode/` directory demonstrates running multiple collective operations with different communication group modes in a single benchmark run. This example shows:
123
+
124
+ - **Sequential Execution**: Two different collectives run in order
125
+ - **Within-node**: AllGather operation across GPUs within the same node
126
+ - **Across-node**: AllReduce operation across GPUs on different nodes
127
+ - **Memory Source**: Host memory instead of GPU memory
128
+ - **Buffer Size**: 512KB for both operations
129
+
130
+ ```yaml
131
+ framework : pytorch
132
+ ccl_backend : ccl
133
+ extended_logging : off
134
+ barrier : on
135
+ device_type : gpu
136
+ memory_source : host
137
+
138
+ order_of_run: [within-node-allgather, across-node-allreduce]
139
+
140
+ within-node-allgather:
141
+ comm_group: within_node
142
+ num_compute_nodes: 2
143
+ num_devices_per_node: 12
144
+ device_ids_per_node: [0,1,2,3,4,5,6,7,8,9,10,11]
145
+ verify_correctness: on
146
+ collective:
147
+ collective_name: allgather
148
+ collective_op: sum
149
+ scale_up_algorithm: default
150
+ scale_out_algorithm: default
151
+ iterations: 5
152
+ warmup_iterations: 2
153
+ add_mxm_compute: on
154
+ payload:
155
+ dtype: float32
156
+ count:
157
+ buffer_size: 512KB
158
+
159
+ across-node-allreduce:
160
+ comm_group: across_node
161
+ num_compute_nodes: 2
162
+ num_devices_per_node: 12
163
+ device_ids_per_node: [0,1,2,3,4,5,6,7,8,9,10,11]
164
+ verify_correctness: on
165
+ collective:
166
+ collective_name: allreduce
167
+ collective_op: sum
168
+ scale_up_algorithm: default
169
+ scale_out_algorithm: default
170
+ iterations: 5
171
+ warmup_iterations: 2
172
+ add_mxm_compute: on
173
+ payload:
174
+ dtype: float32
175
+ count:
176
+ buffer_size: 512KB
177
+ ```
178
+
179
+ ## RCCL and JAX Support
180
+
181
+ ### RCCL with PyTorch
182
+
183
+ AIComm supports AMD's ROCm Collective Communications Library (RCCL) for AMD GPU systems. The `examples/8_rccl_pytorch/` directory demonstrates comprehensive collective communication testing with RCCL backend.
184
+
185
+ **Key Features:**
186
+
187
+ - **All Collective Operations**: Tests 10 different collective operations (allreduce, allgather, reducescatter, broadcast, reduce, alltoall, alltoallsingle, gather, scatter, barrier)
188
+ - **RCCL Backend**: Uses `ccl_backend: nccl` for RCCL integration with PyTorch
189
+ - **AMD GPU Optimized**: Configured for AMD GPU systems with ROCm
190
+
191
+ **Job Script Requirements:**
192
+
193
+ ```bash
194
+ # Environment modules
195
+ module load miniforge3/23.11.0-0
196
+ module load cray-python
197
+ module load rocm/6.2.4
198
+
199
+ # Network configuration for AMD systems
200
+ export NCCL_SOCKET_IFNAME=hsn0
201
+ export MASTER_ADDR=$(ip -4 addr show dev hsn0 | awk '/inet/{print $2}' | cut -d/ -f1)
202
+
203
+ # SLURM execution
204
+ srun --ntasks=16 --export=ALL --cpu-bind=threads \
205
+ python3 -m aicomm_benchmark.aicomm_main \
206
+ --config-path="$SCRIPT_DIR" \
207
+ --config-name=8_rccl_pytorch
208
+ ```
209
+
210
+ ### JAX Support (Experimental)
211
+
212
+ AIComm provides experimental support for JAX framework with limited collective operations. The `examples/9_rccl_jax/` directory demonstrates JAX integration.
213
+
214
+ **Current Limitations:**
215
+
216
+ - **Experimental Status**: JAX support is under active development
217
+ - **Limited Collectives**: Only 2 collective operations currently supported (allreduce, allgather)
218
+ - **Verification Disabled**: Correctness verification is turned off (`verify_correctness: off`)
219
+
220
+ **JAX Configuration:**
221
+
222
+ ```yaml
223
+ framework : jax
224
+ ccl_backend : nccl
225
+ barrier : off
226
+ order_of_run: [allreduce-jax, allgather-jax]
227
+ ```
228
+
229
+ **JAX Job Script Requirements:**
230
+
231
+ ```bash
232
+ # JAX-specific environment setup
233
+ eval "$(/sw/frontier/miniforge3/23.11.0-0/bin/conda shell.bash hook)"
234
+ conda activate jax_env-frontier
235
+
236
+ # JAX platform configuration
237
+ export JAX_PLATFORMS=rocm
238
+ export COORDINATOR_ADDR=$(scontrol show hostname $SLURM_NODELIST | head -n1)
239
+ export COORDINATOR_PORT=1234
240
+
241
+ # SLURM execution with JAX-specific parameters
242
+ srun --ntasks=16 --gpus-per-task=1 --cpus-per-task=1 --export=ALL \
243
+ python3 -m aicomm_benchmark.aicomm_main \
244
+ --config-path="$SCRIPT_DIR" \
245
+ --config-name=9_rccl_jax
246
+ ```
247
+
248
+ **Note**: JAX support is experimental and may have limitations compared to PyTorch. Only allreduce and allgather operations are currently implemented.
249
+
250
+
251
+ ## Correctness Verification
252
+
253
+ AIComm includes built-in correctness verification for all collective operations. When `verify_correctness: on` is set in the configuration:
254
+
255
+ - **Verification Scope**: Correctness is checked on **all iterations** to ensure consistent behavior
256
+ - **Failure-Only Reporting**: Correctness results are **only printed when failures occur** to reduce log noise
257
+ - **Detailed Diagnostics**: Failed verifications include iteration number and specific rank information
258
+ - **Comprehensive Coverage**: All collective operations (AllReduce, AllGather, ReduceScatter, etc.) are validated
259
+
260
+ ## Cross-layer comparison
261
+
262
+ `aicomm_benchmark.analysis.compare_layers` places OSU/MPI, C++ oneCCL, C++ SYCL transfer, torch.distributed and torchcomms side by side for the same operation and message size.
263
+
264
+
265
+ ## How to contribute
266
+
267
+ We welcome contributions from the community to the benchmark code.
268
+ If you would like to contribute, please submit an issue to https://github.com/argonne-lcf/aicomm-benchmark/issues, and contact ALCF AICOMM team, Kaushik Velusamy at kaushik.v@anl.gov , Musa Cim at mtc5693@psu.edu
269
+
270
+ ## Citation and Reference
271
+
272
+ ## Acknowledgments
273
+
274
+ This work used resources of the Argonne Leadership Computing Facility, which is a DOE Office of Science User Facility under Contract DE-AC02-06CH11357 and is supported in part by National Science Foundation under NSF, OCI-1835764 and NSF, CSR-1814872.
275
+
276
+ ## License
277
+
278
+ Apache 2.0 LICENSE
279
+
280
+ Copyright (c) 2025, UChicago Argonne, LLC All Rights Reserved
281
+
282
+ If you have questions about your rights to use or distribute this software, please contact Argonne Intellectual Property Office at partners@anl.gov
283
+
284
+ NOTICE. This Software was developed under funding from the U.S. Department of Energy and the U.S. Government consequently retains certain rights. As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, distribute copies to the public, prepare derivative works, and perform publicly and display publicly, and to permit others to do so.
285
+
286
+ ## Package identity
287
+
288
+ Install with `pip install aicomm-benchmark`; import with `import aicomm_benchmark`; launch with `aicomm-benchmark` or `python -m aicomm_benchmark`. The old `aicomm` import and command are temporary compatibility aliases. Python imports use underscores because hyphens are not valid in import statements.
@@ -0,0 +1,246 @@
1
+ # AI Communication Benchmark
2
+
3
+ **AIComm** is a communication benchmark designed for Deep Learning and AI workloads. Collective communication performance is often the primary bottleneck in AI training, inference, reasoning, and large-scale applications. AIComm emulates the communication patterns of the latest large language models (LLMs) and AI applications at scale, specifically targeting deployments of 50,000 GPUs and beyond.
4
+
5
+ The benchmark is provided as an executable that can be configured to test various communication patterns within different AI distributed runtime frameworks. It uses a modular design to support all levels of communicator groups across GPUs, with flexible configurations for payload sizes, AI frameworks, and collective communication backends. AIComm enables testing on diverse systems, supports modifying scale-up and scale-out algorithms, and verifies correctness after communication operations.
6
+
7
+ Unlike traditional communication benchmarks, AIComm is built with the philosophy of reflecting real-world communication performance of the application as accurately as possible. It captures the interplay between Python runtimes, AI frameworks, and collective communication libraries (CCL) to provide insights that are directly relevant to actual AI workloads.
8
+
9
+ The figure below illustrates a simple model of how AIComm can form different communication groups across GPUs on multiple compute nodes. It shows how GPUs can be selected within nodes, across nodes, or as a flat group, allowing users to explicitly specify which GPU IDs participate in each collective communication group.
10
+
11
+ <img src="tools/AIComm_modes_readme.png" style="width: 95%;">
12
+ <img src="tools/AIComm_logo.gif" style="width: 25%;">
13
+
14
+ ## Installation and running AICOMM
15
+
16
+ Requires Python 3.9-3.13 (hydra-core 1.3.x does not start on Python 3.14).
17
+
18
+ ```bash
19
+ pip install aicomm-benchmark # latest release from PyPI
20
+ # or the current master:
21
+ pip install git+https://github.com/argonne-lcf/aicomm-benchmark.git
22
+ ```
23
+
24
+ The example configs live in `examples/` in this repository, so clone it to get them.
25
+ `aicomm --help` works with a packaged one-XPU default configuration. Supply an example config for your system and launch geometry. See [migration instructions](docs/MIGRATING_TO_AICOMM.md); `pip install aicomm-benchmark` requires publication of the renamed package, independently of this repository rename.
26
+
27
+ ### ALCF Installation
28
+
29
+ ```bash
30
+ module load frameworks
31
+
32
+ export AICOMM_INSTALL_PATH=/path_to/aicomm-install-dir
33
+
34
+ python -m pip install --target "$AICOMM_INSTALL_PATH" aicomm-benchmark
35
+
36
+ export PYTHONPATH="$AICOMM_INSTALL_PATH${PYTHONPATH:+:$PYTHONPATH}"
37
+ export PATH="$AICOMM_INSTALL_PATH/bin:$PATH"
38
+ ```
39
+
40
+ ## Running the benchmark
41
+
42
+ ## YAML configuration file
43
+
44
+ Workload characteristics for DL COMM are specified by a YAML configuration file. Multiple example configurations are available in the `examples/` directory, organized in numbered folders (e.g., `examples/1_simple_flat/`, `examples/2_multimode/`). Each folder contains complete configuration files and corresponding job scripts.
45
+
46
+ Below is an example configuration file
47
+
48
+ ```yaml
49
+ framework : pytorch
50
+ ccl_backend : ccl # rccl / nccl / xccl (Note: PyTorch 2.7+ users should use 'xccl' instead of 'ccl' for Intel oneCCL)
51
+ extended_logging : off
52
+ barrier : on # on / off - on: adds MPI barrier before timer printing for accurate timing, off: only rank 0 prints
53
+ device_type : gpu
54
+ memory_source : gpu
55
+
56
+ order_of_run: [simple-allreduce]
57
+
58
+ simple-allreduce:
59
+ comm_group: flatview
60
+ num_compute_nodes: 2
61
+ num_devices_per_node: 12
62
+ device_ids_per_node: [0,1,2,3,4,5,6,7,8,9,10,11]
63
+ verify_correctness: on
64
+ collective:
65
+ collective_name: allreduce # allgather / reducescatter / broadcast / allreduce / alltoall
66
+ collective_op: sum # max / min / prod / sum
67
+ scale_up_algorithm: default
68
+ scale_out_algorithm: default
69
+ iterations: 5
70
+ warmup_iterations: 2
71
+ add_mxm_compute: on
72
+ payload:
73
+ dtype: float32 # float64 / int32 / int64 / bfloat16 / float8 / float32
74
+ count:
75
+ buffer_size: 100KB
76
+ ```
77
+
78
+ ### Example 2: Multi-mode Communication
79
+
80
+ The `examples/2_multimode/` directory demonstrates running multiple collective operations with different communication group modes in a single benchmark run. This example shows:
81
+
82
+ - **Sequential Execution**: Two different collectives run in order
83
+ - **Within-node**: AllGather operation across GPUs within the same node
84
+ - **Across-node**: AllReduce operation across GPUs on different nodes
85
+ - **Memory Source**: Host memory instead of GPU memory
86
+ - **Buffer Size**: 512KB for both operations
87
+
88
+ ```yaml
89
+ framework : pytorch
90
+ ccl_backend : ccl
91
+ extended_logging : off
92
+ barrier : on
93
+ device_type : gpu
94
+ memory_source : host
95
+
96
+ order_of_run: [within-node-allgather, across-node-allreduce]
97
+
98
+ within-node-allgather:
99
+ comm_group: within_node
100
+ num_compute_nodes: 2
101
+ num_devices_per_node: 12
102
+ device_ids_per_node: [0,1,2,3,4,5,6,7,8,9,10,11]
103
+ verify_correctness: on
104
+ collective:
105
+ collective_name: allgather
106
+ collective_op: sum
107
+ scale_up_algorithm: default
108
+ scale_out_algorithm: default
109
+ iterations: 5
110
+ warmup_iterations: 2
111
+ add_mxm_compute: on
112
+ payload:
113
+ dtype: float32
114
+ count:
115
+ buffer_size: 512KB
116
+
117
+ across-node-allreduce:
118
+ comm_group: across_node
119
+ num_compute_nodes: 2
120
+ num_devices_per_node: 12
121
+ device_ids_per_node: [0,1,2,3,4,5,6,7,8,9,10,11]
122
+ verify_correctness: on
123
+ collective:
124
+ collective_name: allreduce
125
+ collective_op: sum
126
+ scale_up_algorithm: default
127
+ scale_out_algorithm: default
128
+ iterations: 5
129
+ warmup_iterations: 2
130
+ add_mxm_compute: on
131
+ payload:
132
+ dtype: float32
133
+ count:
134
+ buffer_size: 512KB
135
+ ```
136
+
137
+ ## RCCL and JAX Support
138
+
139
+ ### RCCL with PyTorch
140
+
141
+ AIComm supports AMD's ROCm Collective Communications Library (RCCL) for AMD GPU systems. The `examples/8_rccl_pytorch/` directory demonstrates comprehensive collective communication testing with RCCL backend.
142
+
143
+ **Key Features:**
144
+
145
+ - **All Collective Operations**: Tests 10 different collective operations (allreduce, allgather, reducescatter, broadcast, reduce, alltoall, alltoallsingle, gather, scatter, barrier)
146
+ - **RCCL Backend**: Uses `ccl_backend: nccl` for RCCL integration with PyTorch
147
+ - **AMD GPU Optimized**: Configured for AMD GPU systems with ROCm
148
+
149
+ **Job Script Requirements:**
150
+
151
+ ```bash
152
+ # Environment modules
153
+ module load miniforge3/23.11.0-0
154
+ module load cray-python
155
+ module load rocm/6.2.4
156
+
157
+ # Network configuration for AMD systems
158
+ export NCCL_SOCKET_IFNAME=hsn0
159
+ export MASTER_ADDR=$(ip -4 addr show dev hsn0 | awk '/inet/{print $2}' | cut -d/ -f1)
160
+
161
+ # SLURM execution
162
+ srun --ntasks=16 --export=ALL --cpu-bind=threads \
163
+ python3 -m aicomm_benchmark.aicomm_main \
164
+ --config-path="$SCRIPT_DIR" \
165
+ --config-name=8_rccl_pytorch
166
+ ```
167
+
168
+ ### JAX Support (Experimental)
169
+
170
+ AIComm provides experimental support for JAX framework with limited collective operations. The `examples/9_rccl_jax/` directory demonstrates JAX integration.
171
+
172
+ **Current Limitations:**
173
+
174
+ - **Experimental Status**: JAX support is under active development
175
+ - **Limited Collectives**: Only 2 collective operations currently supported (allreduce, allgather)
176
+ - **Verification Disabled**: Correctness verification is turned off (`verify_correctness: off`)
177
+
178
+ **JAX Configuration:**
179
+
180
+ ```yaml
181
+ framework : jax
182
+ ccl_backend : nccl
183
+ barrier : off
184
+ order_of_run: [allreduce-jax, allgather-jax]
185
+ ```
186
+
187
+ **JAX Job Script Requirements:**
188
+
189
+ ```bash
190
+ # JAX-specific environment setup
191
+ eval "$(/sw/frontier/miniforge3/23.11.0-0/bin/conda shell.bash hook)"
192
+ conda activate jax_env-frontier
193
+
194
+ # JAX platform configuration
195
+ export JAX_PLATFORMS=rocm
196
+ export COORDINATOR_ADDR=$(scontrol show hostname $SLURM_NODELIST | head -n1)
197
+ export COORDINATOR_PORT=1234
198
+
199
+ # SLURM execution with JAX-specific parameters
200
+ srun --ntasks=16 --gpus-per-task=1 --cpus-per-task=1 --export=ALL \
201
+ python3 -m aicomm_benchmark.aicomm_main \
202
+ --config-path="$SCRIPT_DIR" \
203
+ --config-name=9_rccl_jax
204
+ ```
205
+
206
+ **Note**: JAX support is experimental and may have limitations compared to PyTorch. Only allreduce and allgather operations are currently implemented.
207
+
208
+
209
+ ## Correctness Verification
210
+
211
+ AIComm includes built-in correctness verification for all collective operations. When `verify_correctness: on` is set in the configuration:
212
+
213
+ - **Verification Scope**: Correctness is checked on **all iterations** to ensure consistent behavior
214
+ - **Failure-Only Reporting**: Correctness results are **only printed when failures occur** to reduce log noise
215
+ - **Detailed Diagnostics**: Failed verifications include iteration number and specific rank information
216
+ - **Comprehensive Coverage**: All collective operations (AllReduce, AllGather, ReduceScatter, etc.) are validated
217
+
218
+ ## Cross-layer comparison
219
+
220
+ `aicomm_benchmark.analysis.compare_layers` places OSU/MPI, C++ oneCCL, C++ SYCL transfer, torch.distributed and torchcomms side by side for the same operation and message size.
221
+
222
+
223
+ ## How to contribute
224
+
225
+ We welcome contributions from the community to the benchmark code.
226
+ If you would like to contribute, please submit an issue to https://github.com/argonne-lcf/aicomm-benchmark/issues, and contact ALCF AICOMM team, Kaushik Velusamy at kaushik.v@anl.gov , Musa Cim at mtc5693@psu.edu
227
+
228
+ ## Citation and Reference
229
+
230
+ ## Acknowledgments
231
+
232
+ This work used resources of the Argonne Leadership Computing Facility, which is a DOE Office of Science User Facility under Contract DE-AC02-06CH11357 and is supported in part by National Science Foundation under NSF, OCI-1835764 and NSF, CSR-1814872.
233
+
234
+ ## License
235
+
236
+ Apache 2.0 LICENSE
237
+
238
+ Copyright (c) 2025, UChicago Argonne, LLC All Rights Reserved
239
+
240
+ If you have questions about your rights to use or distribute this software, please contact Argonne Intellectual Property Office at partners@anl.gov
241
+
242
+ NOTICE. This Software was developed under funding from the U.S. Department of Energy and the U.S. Government consequently retains certain rights. As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, distribute copies to the public, prepare derivative works, and perform publicly and display publicly, and to permit others to do so.
243
+
244
+ ## Package identity
245
+
246
+ Install with `pip install aicomm-benchmark`; import with `import aicomm_benchmark`; launch with `aicomm-benchmark` or `python -m aicomm_benchmark`. The old `aicomm` import and command are temporary compatibility aliases. Python imports use underscores because hyphens are not valid in import statements.
@@ -0,0 +1,39 @@
1
+ """Deprecated AIComm import/command compatibility for the 0.5 transition."""
2
+ import importlib
3
+ import importlib.abc
4
+ import importlib.util
5
+ import sys
6
+ import warnings
7
+ import aicomm_benchmark
8
+ warnings.warn("aicomm is deprecated; use aicomm_benchmark", DeprecationWarning, stacklevel=2)
9
+ __version__ = aicomm_benchmark.__version__
10
+ class _Alias(importlib.abc.MetaPathFinder, importlib.abc.Loader):
11
+ def find_spec(self, fullname, path=None, target=None):
12
+ if fullname in ("aicomm.__main__", "aicomm.dl_comm_main") or not fullname.startswith("aicomm."):
13
+ return None
14
+ name = "aicomm_benchmark." + fullname[len("aicomm."):]
15
+ if name == "aicomm_benchmark.dl_comm_main":
16
+ name = "aicomm_benchmark.aicomm_main"
17
+ spec = importlib.util.find_spec(name)
18
+ if spec is None:
19
+ return None
20
+ result = importlib.util.spec_from_loader(fullname, self, is_package=spec.submodule_search_locations is not None)
21
+ result.loader_state = name
22
+ return result
23
+ def create_module(self, spec):
24
+ module = importlib.import_module(spec.loader_state)
25
+ self._original = (module.__spec__, module.__loader__)
26
+ return module
27
+ def exec_module(self, module):
28
+ module.__spec__, module.__loader__ = self._original
29
+ def get_code(self, fullname):
30
+ name = "aicomm_benchmark." + fullname[len("aicomm."):]
31
+ if name == "aicomm_benchmark.dl_comm_main":
32
+ return compile("from aicomm_benchmark.aicomm_main import main\nmain()\n", "<legacy-entry>", "exec")
33
+ spec = importlib.util.find_spec(name)
34
+ return spec.loader.get_code(name)
35
+ sys.meta_path.insert(0, _Alias())
36
+ def main():
37
+ warnings.warn("aicomm command is deprecated; use aicomm_benchmark", FutureWarning, stacklevel=2)
38
+ from aicomm_benchmark.aicomm_main import main as run
39
+ return run()
@@ -0,0 +1,2 @@
1
+ from aicomm import main
2
+ main()
@@ -0,0 +1,3 @@
1
+ from aicomm_benchmark.aicomm_main import main
2
+ if __name__ == "__main__":
3
+ main()
@@ -0,0 +1,11 @@
1
+ """AIComm communication benchmarks."""
2
+ import os as _os
3
+ import warnings as _warnings
4
+ __version__ = "0.5.1"
5
+ # Legacy environment spellings remain accepted for the transition release.
6
+ for _key, _value in list(_os.environ.items()):
7
+ for _prefix in ("DLCOMM_", "DL_COMM_"):
8
+ if _key.startswith(_prefix):
9
+ _new = "AICOMM_" + _key[len(_prefix):]
10
+ _os.environ.setdefault(_new, _value)
11
+ _warnings.warn(f"{_key} is deprecated; use {_new}", DeprecationWarning, stacklevel=2)
@@ -0,0 +1,4 @@
1
+ from aicomm_benchmark.aicomm_main import main
2
+
3
+ if __name__ == "__main__":
4
+ main()