"gpu/mxGPUArray.h" Not Found

5 ビュー (過去 30 日間)
Jordan
Jordan 2014 年 7 月 14 日
コメント済み: Mohamed Hassan 2019 年 12 月 28 日
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 Center および File ExchangeJust for fun についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by