aicomm-benchmark 0.5.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aicomm/__init__.py +39 -0
- aicomm/__main__.py +2 -0
- aicomm/aicomm_main.py +3 -0
- aicomm_benchmark/__init__.py +11 -0
- aicomm_benchmark/__main__.py +4 -0
- aicomm_benchmark/aicomm_main.py +1055 -0
- aicomm_benchmark/analysis/__init__.py +35 -0
- aicomm_benchmark/analysis/bandwidth.py +379 -0
- aicomm_benchmark/analysis/bottleneck.py +253 -0
- aicomm_benchmark/analysis/ccl_parser.py +318 -0
- aicomm_benchmark/analysis/compare_layers.py +147 -0
- aicomm_benchmark/analysis/correctness.py +610 -0
- aicomm_benchmark/analysis/parse_fabric.py +271 -0
- aicomm_benchmark/analysis/parse_layers.py +166 -0
- aicomm_benchmark/analysis/results.py +206 -0
- aicomm_benchmark/ccl/ccl_bench.cpp +580 -0
- aicomm_benchmark/ccl/ccl_correctness.hpp +92 -0
- aicomm_benchmark/ccl/tests/test_ccl_correctness.cpp +92 -0
- aicomm_benchmark/ccl/tests/test_ccl_integration.py +47 -0
- aicomm_benchmark/comm/__init__.py +8 -0
- aicomm_benchmark/comm/collectives.py +436 -0
- aicomm_benchmark/comm/comm_setup.py +299 -0
- aicomm_benchmark/comm/torchcomms_backend.py +851 -0
- aicomm_benchmark/config/__init__.py +17 -0
- aicomm_benchmark/config/config.yaml +34 -0
- aicomm_benchmark/config/config_spec.json +113 -0
- aicomm_benchmark/config/mpi_utils.py +57 -0
- aicomm_benchmark/config/setup_algorithms.py +200 -0
- aicomm_benchmark/config/system_info.py +203 -0
- aicomm_benchmark/config/topology.py +168 -0
- aicomm_benchmark/config/validation.py +411 -0
- aicomm_benchmark/osu/__init__.py +32 -0
- aicomm_benchmark/osu/compare.py +112 -0
- aicomm_benchmark/osu/runner.py +277 -0
- aicomm_benchmark/timer/__init__.py +1 -0
- aicomm_benchmark/timer/timer.py +276 -0
- aicomm_benchmark/transfer/__init__.py +16 -0
- aicomm_benchmark/transfer/h2d.py +208 -0
- aicomm_benchmark/transfer/nixl_remote.py +560 -0
- aicomm_benchmark/transfer/nixl_transfer.py +413 -0
- aicomm_benchmark/transfer/pci_fixed.cpp +181 -0
- aicomm_benchmark/transfer/pci_fixed_cuda.cu +725 -0
- aicomm_benchmark/utils/__init__.py +0 -0
- aicomm_benchmark/utils/utility.py +165 -0
- aicomm_benchmark/verify/__init__.py +33 -0
- aicomm_benchmark/verify/failures.py +83 -0
- aicomm_benchmark/verify/payload.py +209 -0
- aicomm_benchmark-0.5.1.dist-info/METADATA +288 -0
- aicomm_benchmark-0.5.1.dist-info/RECORD +55 -0
- aicomm_benchmark-0.5.1.dist-info/WHEEL +5 -0
- aicomm_benchmark-0.5.1.dist-info/entry_points.txt +4 -0
- aicomm_benchmark-0.5.1.dist-info/top_level.txt +3 -0
- dl_comm/__init__.py +39 -0
- dl_comm/__main__.py +3 -0
- dl_comm/dl_comm_main.py +3 -0
aicomm/__init__.py
ADDED
|
@@ -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()
|
aicomm/__main__.py
ADDED
aicomm/aicomm_main.py
ADDED
|
@@ -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)
|