-
-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
antsBrainExtraction.sh failing on ImageMath #1204
Comments
I'm thinking you have either another version of ANTs, or a shared library, getting mixed up with the container versions. To check there's not another ANTs about, you can try
To look at the libraries, I'd check $LD_LIBRARY_PATH and also
and ensure the container is not mounting a conflicting version. I've used ImageMath's MD function successfully on your image on three systems (CentOS, Ubuntu, Mac OS). I haven't tested your exact version of ANTs but will try that next. I suspect though it's something to do with the container |
Here is what I am getting for those, from one of the cluster's compute nodes: singularity shell -B /scratch/wsp:/scratch/wsp fmriprep-20.2.1.simg
ldd
echo $LD_LIBRARY_PATH
|
I just tried it in fmriprep, on CentOS 7:
Since it looks like we're running the same code, my next guess is that the ANTs was compiled using compiler options that are not supported on your system. |
@walkerped 'cat /proc/cpuinfo' |
cat /proc/cpuinfo
|
Yep, I think that's the cause. I think the container is not fully binary compatible with this older CPU. ANTs will have to be compiled from source with different flags to work |
Looks like this has come up before, I had forgotten about it |
Thank you! |
Describe the problem
I am running fmriprep, which uses antsBrainExtraction.sh for brain extraction. It is crashing on this step, specifically on the following command:
ImageMath 3 tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled_maths.nii.gz MD tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled.nii.gz 2
I get the following error:
Illegal instruction (core dumped)
I noticed while troubleshooting, if I run GD instead, it finished successfully, ie:
ImageMath 3 tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled_maths.nii.gz GD tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled.nii.gz 2
see nipreps/fmriprep#2433 for more context.
To Reproduce
Run
ImageMath 3 tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled_maths.nii.gz MD tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled.nii.gz 2
on:
tpl-OASIS30ANTs_res-01_label-brain_probseg_trans_resampled.nii.gz
System information (please complete the following information)
Many issues are specific to a particular system. Please include all information
about your computing environment.
Running via fmriprep in a singularity container, with the OS of: Ubuntu 16.04.6 LTS
ANTs version information
The text was updated successfully, but these errors were encountered: