-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
This should reduce the time to complete spine segmentation but it seems Slicer python doesn't support run in parallel.
I tried this:
jobs=[0,1,2,3,4,5,6,7]
if isParallel ==1:
results1 = []
print '--pooling starts now--'
pool = Pool( processes=8 )
r1 = pool.map_async(self.runCroppingAll,jobs, callback=results1.append)
r1.wait() # Wait for the results
print '--pooling completed--'
raw_input("Press Enter to continue...")
but either Slice rcrashes or hang.
Metadata
Metadata
Assignees
Labels
No labels