LBANN package: strip hostname on non-LC systems. (#39601)

This commit is contained in:
Brian Van Essen 2023-08-25 14:55:24 -07:00 committed by GitHub
parent 349ba83bc6
commit b3433cb872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -338,9 +338,8 @@ def _get_sys_type(self, spec):
@property
def cache_name(self):
hostname = socket.gethostname()
if "SYS_TYPE" in env:
# Get a hostname that has no node identifier
hostname = hostname.rstrip("1234567890")
# Get a hostname that has no node identifier
hostname = hostname.rstrip("1234567890")
return "LBANN_{0}_{1}-{2}-{3}@{4}.cmake".format(
hostname,
self.spec.version,