ledigchr / MALPEM

MALPEM whole-brain segmentation framework
Other
21 stars 10 forks source link

The current N4 bias correction binary is not deterministic across platforms #8

Closed ledigchr closed 3 years ago

ledigchr commented 3 years ago

This is an important issue reported with suggested fix here: https://github.com/MIRTK/MALPEM/issues/2

ledigchr commented 3 years ago

Some experiments around that seem to confirm what is also discussed in this thread by the N4 developers.

My suggested fix for the MALPEM package is to update malpem-proot and explicitly set ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS. E.g.

'XAUTHORITY=/tmp/.mdmCHXAXX'  \
"${PROOT}" \

-->

'XAUTHORITY=/tmp/.mdmCHXAXX'  \
'ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=32' \
"${PROOT}" \
ledigchr commented 3 years ago

Fixed in malpem-v1.3 by setting 'ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=8' in malpem-proot