mxGPUArray.h file not found
이전 댓글 표시
Hello everyone,
I am running Maverick MAC OS X 64bits and Matlab 2013a/CUDA Toolkit 5.5 and GeForce650M card. I am sure that the CUDA installation was successful by trying several CUDA-C examples included in the toolkit installation.
Now I'm trying to perform mex compilation by following the procedure in http://www.mathworks.com.au/help/distcomp/run-mex-functions-containing-cuda-code.html#btrgje7.
with CUDA .cu file as provided in http://www.mathworks.com.au/help/distcomp/rmvd_matlablink__1da2f7c6e005a9643f6a92a0546e436a.html
And this command failed with an error:
>> mex mexGPUExample.cu
mexGPUExample.cu:10:10: fatal error: 'gpu/mxGPUArray.h' file not found
#include "gpu/mxGPUArray.h"
^
1 error generated.
mex: compile of ' "mexGPUExample.cu"' failed.
Error using mex (line 206)
Unable to complete successfully.
Where can I find the mxGPUArray.h file? Why is it not on my search path?
댓글 수: 4
Jill Reese
2014년 1월 7일
Did you follow the instructions to set up the gpu mex options file? The instructions are right above the text pointed to by your first link.
Joss Knight
2014년 1월 14일
Also, please try
>> mex -v mexGPUExample.cu
and post the resulting text - this will print out verbose text which will help us see why the compiler isn't finding that header file.
Note that if you don't have a mexopts.bat or mex_CUDA_maci64.xml file in the same directory as your .cu file, this will be the source of the problem.
Khoa Tran
2014년 1월 20일
Priyanka Bharadwaj
2019년 10월 30일
편집: Priyanka Bharadwaj
2019년 10월 30일
Was this issue resolved. I have the similar error. Please let me the way around for this.
/matconvnet-1.0-beta24/matlab/src/bits/datamex.hpp:19:28: fatal error: gpu/mxGPUArray.h: No such file or directory
#include "gpu/mxGPUArray.h"
However I found that file under /usr/local/MATLAB/R2019b/toolbox/parallel/gpu/extern/include/gpu
Can you please let me know how to redirect to the right path while compiling?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 GPU Computing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!