Skip to content

Commit

Permalink
remove debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibelp committed Apr 3, 2024
1 parent d33bc90 commit a5941a0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions modifiers/allocation/modifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@ def defined_allocation_options(expander):
"""For each possible allocation option, check if it was filled in by
Ramble: in that case it will be an integer.
"""
test = [
"n_ranks_per_node",
"n_cores_per_task",
"n_threads",
]
for x in test:
print(f"Expanded ({x}): " + expander.expand_var(f"{{{x}}}" + " " + expander.expand_var(expander.expansion_str(f"{{{x}}}"))))
print(" " + expander.expand_var(expander.expansion_str(f"{x}")))

defined = {}
for alloc_opt in AllocOpt:
var_def = expander.expand_var(f"{{{alloc_opt.name.lower()}}}")
Expand Down Expand Up @@ -91,7 +82,6 @@ def determine_allocation(self, var_defs):

if not v.n_ranks:
if v.n_ranks_per_node and v.n_nodes:
print(f"{str(v.n_nodes)} {type(v.n_nodes)} {str(v.n_ranks_per_node)} {type(v.n_ranks_per_node)}")
v.n_ranks = v.n_nodes * v.n_ranks_per_node

if not v.n_nodes:
Expand All @@ -110,7 +100,4 @@ def determine_allocation(self, var_defs):
for alloc_opt in AllocOpt:
local_val = getattr(v, alloc_opt.name.lower(), None)
if (alloc_opt not in var_defs) and local_val:
print(f"Setting {str(alloc_opt)} to {local_val}")
var_defs[alloc_opt] = local_val
else:
print(f"Not setting {str(alloc_opt)}/{var_defs.get(alloc_opt, None)}/{local_val}")

0 comments on commit a5941a0

Please sign in to comment.