NifTK / NiftyNet

[unmaintained] An open-source convolutional neural networks platform for research in medical image analysis and image-guided therapy
http://niftynet.io
Apache License 2.0
1.36k stars 404 forks source link

Handle SimpleITK's lack of thread safety #476

Open bcdarwin opened 4 years ago

bcdarwin commented 4 years ago

E.g., setting num_threads to 8 and using loader = simpleitk to read MINC2 files reliably causes a segfault somewhere in HDF5, while num_threads = 1 is fine.

The easiest thing would be to detect multithreaded SimpleITK usage and print a warning that it might lead to problems, although I'd be happy to be able to actually use this configuration.

I'm willing to implement something, just looking to see what people would want.