Skip to content

Commit d45b4f7

Browse files
committed
bug: remove -- from command
Signed-off-by: vsoch <[email protected]>
1 parent 0e4dfbd commit d45b4f7

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

examples/shape/corona/shape-l3cache-gpu-local.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# within that GPU's local NUMA domain.
33
default:
44
type: l3cache
5-
bind: gpu-remote
5+
bind: gpu-local

fluxbind/bind/bind.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def set_flags(self, cmd):
188188
Set command flags.
189189
"""
190190
# CPU and GPU affinity MUST stay off
191-
cmd += ['-o', 'cpu-affinity=off', '-o', 'gpu-affinity=off']
191+
cmd += ["-o", "cpu-affinity=off", "-o", "gpu-affinity=off"]
192192
if self.tasks is not None:
193193
cmd += ["-n", str(self.tasks)]
194194
if self.cpu_affinity is not None:
@@ -266,6 +266,8 @@ def execute(self, script):
266266
cmd += self.command
267267
print(f"Executing: {shlex.join(cmd)}")
268268

269+
# Get rid of separator
270+
cmd = [x for x in cmd if x != "--"]
269271
try:
270272
return_code, raw_output = stream(cmd)
271273
except Exception as e:

fluxbind/shape/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def get_object_in_set(self, cpuset: str, obj_type: str, index: int) -> str:
9595
"""
9696
list_cmd = f"{self.name} '{cpuset}' --intersect {obj_type}"
9797
all_indices_str = self.run(list_cmd, shell=True)
98-
98+
9999
# Special case asking for all.
100100
if index == "all":
101101
return all_indices_str

0 commit comments

Comments
 (0)