Skip to content
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

eddy_cpu #302

Open
jdias001 opened this issue Apr 10, 2023 · 1 comment
Open

eddy_cpu #302

jdias001 opened this issue Apr 10, 2023 · 1 comment

Comments

@jdias001
Copy link

I'm attempting to run Neurodock on my non-CUDA machine. Using the standard processing pipeline, the system will run up to eddy correction, at which point it attempts but fails to run eddy_CUDU and then attempts to run eddy_cpu. At which point it is simply suck there. No error, no output, even after hours have passed. It will simply stay there until I break the operation.

last few lines of code

Command: mrconvert dwi.mif eddy_in.nii -strides -1,+2,+3,+4 -export_grad_fsl bvecs bvals -export_pe_eddy eddy_config.txt eddy_indices.txt
Command: eddy_cuda10.2 --imain=eddy_in.nii --mask=eddy_mask.nii --acqp=eddy_config.txt --index=eddy_indices.txt --bvecs=bvecs --bvals=bvals --repol --data_is_shelled --out=dwi_post_eddy --verbose
dwifslpreproc: CUDA version of 'eddy' was not successful; attempting OpenMP version
Command: eddy_cpu --imain=eddy_in.nii --mask=eddy_mask.nii --acqp=eddy_config.txt --index=eddy_indices.txt --bvecs=bvecs --bvals=bvals --repol --data_is_shelled --out=dwi_post_eddy --verbose

@TheJaeger
Copy link
Collaborator

TheJaeger commented Apr 10, 2023

The OpenMP version of eddy current correction takes incredibly long. It can take up to 4 hours on a 64 direction dataset (3 mm isotropic, 10 b0 volumes, 64 b1000 volumes, and 64 62000 volumes) on an 8 core/16 threads machine. It's not stuck, but is working slowly. You can somewhat speed it up by assigning more CPU cores to the Docker image i.e. allocating all available cores to Docker. This is done within Docker Desktop settings https://pydesigner.readthedocs.io/en/latest/docker/docker_configuration.html#

However, running the GPU version will speed up the process down to 15 minutes. I hope this helps. You can also run pydesigner with the -v, --verbose flag to print to console every step of the way so you see the process through eddy_cpu.

-Sid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants