MCPcopy Create free account
hub / github.com/ByteDance-Seed/Triton-distributed / run

Method run

python/setup.py:619–639  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

617 subprocess.check_call(["make_maca"] + build_args, cwd=cmake_dir, env=env)
618
619 def run(self):
620 # We creates symbolic links for each file in backend separately. Since the nvshmem bitcode is moved to nvidia/lib,
621 # it needs to be built first.
622 build_shmem()
623 for ext in self.extensions:
624 if isinstance(ext, CMakeExtension):
625 self.build_extension_cmake(ext)
626
627 if _is_maca_platform() and check_env_flag("TRITON_USE_MACA", "OFF"):
628 pymxshmem_ext_dir = get_pymxshmem_project()
629 print(f"build pymxshmem:{pymxshmem_ext_dir}", file=sys.stderr)
630 self.build_pymxshmem_project(ext, pymxshmem_ext_dir)
631
632 pymaca_project = get_pymaca_project()
633 print(f"build pymaca:{pymaca_project}", file=sys.stderr)
634 self.build_pymaca_project(ext, pymaca_project)
635
636 all_extensions = self.extensions
637 self.extensions = [ext for ext in self.extensions if not isinstance(ext, CMakeExtension)]
638 super().run()
639 self.extensions = all_extensions
640
641 def get_pybind11_cmake_args(self):
642 pybind11_sys_path = get_env_with_keys(["PYBIND11_SYSPATH"])

Callers 10

prepareMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
get_modified_filesFunction · 0.45
get_git_tracked_filesFunction · 0.45

Calls 8

build_extension_cmakeMethod · 0.95
build_pymaca_projectMethod · 0.95
get_pymxshmem_projectFunction · 0.90
get_pymaca_projectFunction · 0.90
build_shmemFunction · 0.85
_is_maca_platformFunction · 0.85
check_env_flagFunction · 0.85

Tested by

no test coverage detected