Skip to content

Commit

Permalink
spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
jalencato committed Jan 16, 2025
1 parent 7d3dd1e commit 9e58a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/graphstorm/gconstruct/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
PICKLE_CROSS_PROCESS_STORAGE = "pickle"
EXT_MEMORY_STORAGE = "ext_memory"

multiprocessing.set_start_method("spawn", force=True)

def _is_numeric(arr):
""" Check if the input array has the numeric data type.
Expand Down Expand Up @@ -223,6 +222,7 @@ def worker_fn(worker_id, task_queue, res_queue, user_parser, ext_mem_workspace):
logging.warning("There are more than 1 processes are attachd to GPU %d.", gpu)
try:
i = 0
multiprocessing.set_start_method("spawn", force=True)
while True:
# If the queue is empty, it will raise the Empty exception.
i, in_file = task_queue.get_nowait()
Expand Down

0 comments on commit 9e58a2b

Please sign in to comment.