Skip to content

Commit

Permalink
Fix for the issue ornladios#3646. It looks like the default for macos…
Browse files Browse the repository at this point in the history
… and python 3.8+ "spawn" method does not work on macos, swith to "fork" for all situations. https://bugs.python.org/issue33725
  • Loading branch information
dmitry-ganyushin committed Jun 14, 2023
1 parent fd3cb50 commit 71c1e7f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions testing/adios2/engine/dataman/TestDataMan1D.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# TestDataMan1D.py: test for 1D data transfer by reading in Python
# Created on: March 3, 2023
# Author: Dmitry Ganyushin ganyushindi@ornl.gov
from multiprocessing import Process
import multiprocessing
import unittest
import numpy as np
import adios2
Expand All @@ -28,8 +28,8 @@ def setUp(self):

def test_run(self):

s = Process(target=self.thread_send)
r = Process(target=self.thread_receive)
s = multiprocessing.Process(target=self.thread_send)
r = multiprocessing.Process(target=self.thread_receive)

s.start()
r.start()
Expand Down Expand Up @@ -88,4 +88,5 @@ def thread_receive(self):


if __name__ == '__main__':
multiprocessing.set_start_method("fork")
unittest.main()

0 comments on commit 71c1e7f

Please sign in to comment.