Print

Print


Thanks Paul, I will look into that.

However, it does not explain why I receive the same error on Ubuntu (no WSL)?
Unless I am missing something obvious here?

Thanks in advance for your help.

Yann

> On 22 Aug 2022, at 18:42, paul mccarthy <[log in to unmask]> wrote:
> 
> Hi Yann,
> 
> It looks like some kind of WSL configuration issue - your GPU cannot be accessed from any programs running within your WSL environment. I would not bother trying to get eddy_cuda working until nvidia-smi is working. 
> 
> Microsoft provide some information on setting up access to your GPU here: https://docs.microsoft.com/en-us/windows/ai/directml/gpu-cuda-in-wsl <https://docs.microsoft.com/en-us/windows/ai/directml/gpu-cuda-in-wsl>
> 
> Paul
> 
> On Mon, 22 Aug 2022 at 08:15, Yann Quidé <[log in to unmask] <mailto:[log in to unmask]>> wrote:
> Hi team,
> 
> Bumping this one up.
> I also tried with the latest version of FSL on a different machine running Ubuntu 18.04, and I receive the same error.
> Does anyone know how to fix this?
> 
> Thanks in advance.
> 
> Yann
> 
> > On 18 Aug 2022, at 14:53, Yann Quidé <[log in to unmask] <mailto:[log in to unmask]>> wrote:
> > 
> > Hi team,
> > 
> > I am having issues running eddy. See below command and error. It seems to be associated with cuda?
> > I am using the latest version of FSL on Ubuntu 22.04 LTS WSL (Windows 10); I linked eddy_cuda using: sudo ln -sf ${FSLDIR}/bin/eddy_cuda9.1 ${FSLDIR}/bin/eddy_cuda
> > 
> > eddy_cuda --imain=$(pwd)/INPUTS/dwi.nii.gz --mask=$(pwd)/INPUTS/brainmask.nii.gz --acqp=$(pwd)/INPUTS/acqparams.txt --index=$(pwd)/INPUTS/index.txt --bvecs=$(pwd)/INPUTS/dwi.bvec --bvals=$(pwd)/INPUTS/dwi.bval --topup=$(pwd)/OUTPUTS/topup --out=$(pwd)/eddy_output/eddy_unwarped_images
> > 
> > EDDY:::  EddyCudaHelperFunctions::InitGpu: cudaGetDevice returned an error: cudaError_t = 35, cudaErrorName = cudaErrorInsufficientDriver, cudaErrorString = CUDA driver version is insufficient for CUDA runtime version
> > EDDY:::  cuda/EddyCudaHelperFunctions.cu:::  static void EDDY::EddyCudaHelperFunctions::InitGpu(bool):  Exception thrown
> > EDDY:::  cuda/EddyGpuUtils.cu:::  static std::shared_ptr<EDDY::DWIPredictionMaker> EDDY::EddyGpuUtils::LoadPredictionMaker(const EDDY::EddyCommandLineOptions&, EDDY::ScanType, const EDDY::ECScanManager&, unsigned int, float, NEWIMAGE::volume<float>&, bool):  Exception thrown
> > EDDY:::  eddy.cpp:::  EDDY::ReplacementManager* EDDY::Register(const EDDY::EddyCommandLineOptions&, EDDY::ScanType, unsigned int, const std::vector<float, std::allocator<float> >&, EDDY::SecondLevelECModel, bool, EDDY::ECScanManager&, EDDY::ReplacementManager*, NEWMAT::Matrix&, NEWMAT::Matrix&):  Exception thrown
> > EDDY::: Eddy failed with message EDDY:::  eddy.cpp:::  EDDY::ReplacementManager* EDDY::DoVolumeToVolumeRegistration(const EDDY::EddyCommandLineOptions&, EDDY::ECScanManager&):  Exception thrown
> > 
> > When I checked nvidia-smi on Windows Command Prompt, I can see cuda 11.7 is installed; on Ubuntu Terminal I receive the errors:
> > Failed to initialize NVML: GPU access blocked by the operating system
> > Failed to properly shut down NVML: GPU access blocked by the operating system
> > 
> > If I try to link cuda11.7 to eddy_cuda, I receive this error: -bash: /usr/local/fsl/bin/eddy_cuda: No such file or directory
> >  
> > Not sure what to do here, any ideas or suggestions to solve this issue?
> > 
> > Thanks in advance,
> > 
> > Yann
> > 
> 
> ########################################################################
> 
> To unsubscribe from the FSL list, click the following link:
> https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1 <https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1>
> 
> This message was issued to members of www.jiscmail.ac.uk/FSL <http://www.jiscmail.ac.uk/FSL>, a mailing list hosted by www.jiscmail.ac.uk <http://www.jiscmail.ac.uk/>, terms & conditions are available at https://www.jiscmail.ac.uk/policyandsecurity/ <https://www.jiscmail.ac.uk/policyandsecurity/>
> 
> To unsubscribe from the FSL list, click the following link:
> https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1 <https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1>

########################################################################

To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=FSL&A=1

This message was issued to members of www.jiscmail.ac.uk/FSL, a mailing list hosted by www.jiscmail.ac.uk, terms & conditions are available at https://www.jiscmail.ac.uk/policyandsecurity/