Skip to content

Commit

Permalink
Update hnn_core/parallel_backends.py
Browse files Browse the repository at this point in the history
Thanks!

Co-authored-by: Mainak Jas <[email protected]>
  • Loading branch information
gtdang and jasmainak authored Sep 4, 2024
1 parent 31159a7 commit 547cd5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hnn_core/parallel_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,8 @@ def __init__(self, n_procs=None, mpi_cmd='mpiexec'):
'mpi_child.py')

# Split the command into shell arguments for passing to Popen
self.mpi_cmd = shlex.split(self.mpi_cmd, posix=sys.platform != 'win32')
use_posix = True if sys.platform != 'win32' else False
self.mpi_cmd = shlex.split(self.mpi_cmd, posix=use_posix)

def __enter__(self):
global _BACKEND
Expand Down

0 comments on commit 547cd5b

Please sign in to comment.