Name of compute system.
(lbann)
| 1029 | |
| 1030 | |
| 1031 | def 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. |
no outgoing calls
no test coverage detected