LBANN package: strip hostname on non-LC systems. (#39601)
This commit is contained in:
parent
349ba83bc6
commit
b3433cb872
1 changed files with 2 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue