builtin: minimal fix for _get_host_config_path

This commit is contained in:
Massimiliano Culpo 2024-11-18 13:20:52 +01:00
parent fbcb06e247
commit 16489a6e70
No known key found for this signature in database
GPG Key ID: 3E52BB992233066C
4 changed files with 4 additions and 15 deletions

View File

@ -371,9 +371,7 @@ def _get_host_config_path(self, spec):
# if on llnl systems, we can use the SYS_TYPE
if "SYS_TYPE" in env:
sys_type = env["SYS_TYPE"]
host_config_path = "{0}-{1}-{2}-ascent-{3}.cmake".format(
socket.gethostname(), sys_type, spec.compiler, spec.dag_hash()
)
host_config_path = f"{socket.gethostname()}-{sys_type}-ascent-{spec.dag_hash()}.cmake"
dest_dir = spec.prefix
host_config_path = os.path.abspath(join_path(dest_dir, host_config_path))
return host_config_path

View File

@ -304,9 +304,7 @@ def _get_host_config_path(self, spec):
# if on llnl systems, we can use the SYS_TYPE
if "SYS_TYPE" in env:
sys_type = env["SYS_TYPE"]
host_config_path = "{0}-{1}-{2}-conduit-{3}.cmake".format(
socket.gethostname(), sys_type, spec.compiler, spec.dag_hash()
)
host_config_path = f"{socket.gethostname()}-{sys_type}-conduit-{spec.dag_hash()}.cmake"
dest_dir = self.stage.source_path
host_config_path = os.path.abspath(join_path(dest_dir, host_config_path))

View File

@ -122,12 +122,7 @@ def _get_host_config_path(self, spec):
var = "-".join([var, "cuda"])
hostname = socket.gethostname().rstrip("1234567890")
host_config_path = "%s-%s-%s%s.cmake" % (
hostname,
self._get_sys_type(spec),
spec.compiler,
var,
)
host_config_path = f"{hostname}-{self._get_sys_type(spec)}-{var}.cmake"
dest_dir = self.stage.source_path
host_config_path = os.path.abspath(pjoin(dest_dir, host_config_path))

View File

@ -115,9 +115,7 @@ def _get_host_config_path(self, spec):
# if on llnl systems, we can use the SYS_TYPE
if "SYS_TYPE" in env:
sys_type = env["SYS_TYPE"]
host_config_path = "{0}-{1}-{2}-vtkh-{3}.cmake".format(
socket.gethostname(), sys_type, spec.compiler, spec.dag_hash()
)
host_config_path = f"{socket.gethostname()}-{sys_type}-vtkh-{spec.dag_hash()}.cmake"
dest_dir = spec.prefix
host_config_path = os.path.abspath(join_path(dest_dir, host_config_path))
return host_config_path