Error occurs when linking MAT file using CUDA Nsight eclipse version on Mac OSX

1 view (last 30 days)
system:Mac OS 10.8.2 64bit
IDE: NVIDIA Nsight Eclipse version.(used for CUDA developing)
Problem description:
I tried to use Matlab C++ interface in CUDA code. I included the extern/include directory(using -I/${MATLAB}/extern/include), and linked the bin/maci64 and sys/os/maci64. And here is the problem.
I can use Matlab Engine in CUDA code. It starts well, works well. I can execute commands properly. Everything is just fine untill I tried to use .mat file interface. The error is the canonical "Undefined symbols:__mxCreateDoubleMatrix__730 " I tried every thing but no effect at all. And the most interesting thing is that I can use gcc to compile the same matlab code with exactly the same settings. So I'm pretty sure it is the nvcc compiler's problem.
Could anyone give any advice about it? The CUDA and Matlab combination is really cool and I really want to use them together.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!