MCPcopy Create free account
hub / github.com/LBANN/lbann / system

Function system

ci_test/common_python/tools.py:1031–1040  ·  view source on GitHub ↗

Name of compute system.

(lbann)

Source from the content-addressed store, hash-verified

1029
1030
1031def system(lbann):
1032 """Name of compute system."""
1033 import lbann.contrib
1034 import lbann.contrib.launcher
1035
1036 compute_center = lbann.contrib.launcher.compute_center()
1037 if compute_center != "unknown":
1038 return getattr(lbann.contrib, compute_center).systems.system()
1039 else:
1040 return re.sub(r'\d+', '', socket.gethostname())
1041
1042
1043# Get the number of GPUs per compute node.

Callers 9

mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
extract_samplesFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected