"gpu/mxGPUArray.h" Not Found

3 次查看(过去 30 天)
Jordan
Jordan 2014-7-14
Attempting to compile a cuda file using the command:
>> nvmex -f nvmexopts64.bat mexex.cu -IC:\cuda\include -LC:\cuda\lib -lcudart
The error log is:
Warning: cudart specified with -l option not found on -L path
This is mex, Copyright 1984-2007 The MathWorks, Inc.
-> Options file specified on command line
----------------------------------------------------------------
-> Options file = nvmexopts64.bat
MATLAB = C:\PROGRA~1\MATLAB\R2014a
-> COMPILER = nvcc
-> Compiler flags:
COMPFLAGS = -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_35,code=compute_35 -gencode=arch=compute_35,code=compute_35 -gencode=arch=compute_35,code=compute_35 -c -Xcompiler "/c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD"
OPTIMFLAGS = -Xcompiler "/O2 /Oy- /DNDEBUG"
DEBUGFLAGS = -Xcompiler "/Zi /Fd"mexex.mexw64.pdb""
arguments = -IC:\cuda\include
Name switch =
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
LINKFLAGS = /dll /export:mexFunction /MAP /LIBPATH:"C:\PROGRA~1\MATLAB\R2014a\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib /implib:C:\Users\JORDAN~1\AppData\Local\Temp\mex_jwxqce\templib.x /MACHINE:X64 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
LINKDEBUGFLAGS = /DEBUG /PDB:"mexex.mexw64.pdb"
LINKFLAGSPOST =
Name directive = /out:"mexex.mexw64"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler = rc /fo "mexversion.res"
-> Resource Linker =
----------------------------------------------------------------
--> nvcc -IC:\cuda\include -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_35,code=compute_35 -gencode=arch=compute_35,code=compute_35 -gencode=arch=compute_35,code=compute_35 -c -Xcompiler "/c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD" -IC:\PROGRA~1\MATLAB\R2014a\extern\include -IC:\PROGRA~1\MATLAB\R2014a\simulink\include -Xcompiler "/O2 /Oy- /DNDEBUG" -DMX_COMPAT_32 "C:\Users\Jordan Bonilla\Desktop\My Project\GPU_MATLAB\mexex.cu"
C:/Users/Jordan Bonilla/Desktop/My Project/GPU_MATLAB/mexex.cu(10) : fatal error C1083: Cannot open include file: 'gpu/mxGPUArray.h': No such file or directory
mexex.cu
C:\PROGRA~1\MATLAB\R2014A\BIN\NVMEX.PL: Error: Compile of 'mexex.cu' failed.
Error using nvmex (line 206)
Unable to complete successfully.
>>
Can someone offer a solution or send me the header so I can just put it in the same folder? (I could not find this header anywhere on my hard drive. Many thanks.
I'm using MATLAB 2014a and Microsoft SDK 7.1 on Windows 7 64 bit
  3 个评论
Priyanka Bharadwaj
Priyanka Bharadwaj 2019-10-30
hi I am using ubuntu and I found mxGPUArray file under
/usr/local/MATLAB/R2019b/toolbox/parallel/gpu/extern/include/gpu
But I get an error as
/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"
Could you please suggest me a work around for this.
Mohamed Hassan
Mohamed Hassan 2019-12-28
you can make a symbolic link from parallel to distcomp

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Just for fun 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by