Post v13.5 (#470)

This commit is contained in:
Dheemanth
2026-11-04 12:48:54 -08:00
committed by GitHub
parent 5443602d89
commit 0ec046d5e9
53 changed files with 1750 additions and 183 deletions

View File

@@ -95,9 +95,9 @@ def check_ipc_support(device) -> bool:
return True
def child_worker(q_in, q_out, n_elements, parent_seed, child_seed):
def child_worker(q_in, q_out, n_elements, parent_seed, child_seed, device_id):
"""Runs in a separate process. Verifies and modifies the shared buffer."""
device = Device(0)
device = Device(device_id)
device.set_current()
pid = mp.current_process().pid
@@ -188,7 +188,7 @@ def main() -> int:
q_from_child = mp.Queue()
child = mp.Process(
target=child_worker,
args=(q_to_child, q_from_child, N, parent_seed, child_seed),
args=(q_to_child, q_from_child, N, parent_seed, child_seed, args.device),
)
child.start()
q_to_child.put(buffer)