(self)
| 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"]) |
no test coverage detected