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

Matlab crashes when calling mex_gpuNUFFT_precomp_f() #70

Open
lukasbrnst opened this issue May 17, 2019 · 2 comments
Open

Matlab crashes when calling mex_gpuNUFFT_precomp_f() #70

lukasbrnst opened this issue May 17, 2019 · 2 comments

Comments

@lukasbrnst
Copy link

lukasbrnst commented May 17, 2019

Hi!
I just used cmake to set up the .mex files as instructed in the read.me. But unfortunaltely I have issues using gpuNUFFT as Matlab crashes every time.
Once I try to execute the demo script cgsense_brain32ch_recon_2D.m it starts executing the code so I guess the compiling process was successful, but Matlab crashes very rapidly without seeing any errors when executing mex_gpuNUFFT_precomp_f(...) which gets called within the function gpuNUFFT(...).
It happens with any data, also with the demo script.
When observing the behaviour of my machine in the task manager, I see no rise in ram or anything else.
My machine uses 16GB ram, a Cuda 10, and Matlab 2018a.
I experience the same problem using cloud computing, so I dont think its the limitations of my machine.

Can anybody help me?

Thank you
Lukas

@andyschwarzl
Copy link
Owner

Hi,

it looks like any kind of mex kernel call causes the crash on your system. Unfortunately, these errors are hard to debug. Are you working on a Windows or Linux machine? And, what GPU do you utilize?

Maybe you will see some error messages if you start the Matlab process from the command line.

A further approach would be to also build the library tests with the CMake option (-DGEN_TESTS=ON). This requires the gtest framework to be installed, but lets you perform a quick check if the basic CUDA kernels work correctly.

Best,
Andy

@DBermudez0
Copy link

I am also having the same problem. MATLAB 2018b is crashing when calling the mex_gpuNUFFT_precomp_f(...) within the function gpuNUFFT(...). This is when I try to run demos scripts cgsense_brain32ch_recon_2D.m and cgsense_phantom_recon.m. I also try what you suggested to run the script from the terminal to see if it have me error messages on how to debug the problem, but it did not.

Thank you for your time,
Dalton

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

3 participants