Skip to content

Commit

Permalink
updated default multiprocessing as ray... instead tests for operating…
Browse files Browse the repository at this point in the history
… system
  • Loading branch information
AlexisRalli committed Oct 8, 2024
1 parent 6eef95a commit 422a0a7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions symmer/process_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@
from ray import remote, put, get
from multiprocessing import Process, Queue, set_start_method

if sys.platform.lower() in ['linux', 'darwin']:
if sys.platform.lower() in ['linux', 'darwin', 'linux2']:
set_start_method('fork', force = True)
else:
set_start_method('spawn', force = True)

class ProcessHandler:

method = 'ray'
if sys.platform.lower() in ['linux', 'darwin', 'linux2', 'darwin']:
method = 'mp'
else:
method = 'ray'

verbose = False

def __init__(self):
Expand Down

0 comments on commit 422a0a7

Please sign in to comment.