floating point exception while running mexcuda file / then Segmentation Vioaltion
Show older comments
Hi,
I have a question regarding running a matlab file that calls mexcuda function.
I have a c code that I compiled as a mexfile in matlab and called in matlab and it ran well. When I tried to convert this file to cuda ,initially by adding the gpuInit() and including the required libraries, it's compiled well with mexcuda code.cu, but when calling it as a function within the matlab code, it causes a run-time error (floating point exception). What could be the problem?
Please note that my cuda compiler is 7.5, and I made sure that some cuda examples ,like mexGPUExample provided in mathworks, works well.
Thank you in advance.
2 Comments
Joss Knight
on 12 Jun 2017
I'm afraid you'll have to show us the code.
zain
on 15 Jun 2017
Answers (1)
Categories
Find more on GPU Computing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!