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

Function _is_maca_platform

python/setup.py:77–84  ·  view source on GitHub ↗

Checks if 'mx-smi' is available on the system's PATH.

()

Source from the content-addressed store, hash-verified

75
76
77def _is_maca_platform():
78 """Checks if 'mx-smi' is available on the system's PATH."""
79 if shutil.which("mx-smi"):
80 print("--- MACA platform detected (mx-smi found) ---")
81 return True
82 else:
83 print("--- MACA platform NOT detected ---")
84 return False
85
86
87def _is_ascend_platform():

Callers 6

runMethod · 0.85
build_extension_cmakeMethod · 0.85
setup.pyFile · 0.85
add_link_to_distributedFunction · 0.85
add_linksFunction · 0.85
get_packagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected