Compiling CUDA files with mex -v mexGPUExample.cu
Ältere Kommentare anzeigen
Im trying to compile CUDA files into mex.
Matlab ships with an example CUDA file located in matlabfolder\toolbox\distcomp\gpu\extern\src\mex, but when I try to compile it by typing:
mex -v mexGPUExample.cu
I get:
Error using mex
Creating library mexGPUExample.lib and object mexGPUExample.exp
MSVCRT.lib(atonexit.obj) : error LNK2019: unresolved external
symbol __imp_EncodePointer referenced in function __atonexitinit
MSVCRT.lib(crtdll.obj) : error LNK2001: unresolved external symbol
__imp_EncodePointer
MSVCRT.lib(atonexit.obj) : error LNK2019: unresolved external
symbol __imp_DecodePointer referenced in function _onexit
MSVCRT.lib(crtdll.obj) : error LNK2001: unresolved external symbol
__imp_DecodePointer
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external
symbol __imp_QueryPerformanceCounter referenced in function
__security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external
symbol __imp_GetCurrentProcessId referenced in function
__security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external
symbol __imp_GetCurrentThreadId referenced in function
__security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external
symbol __imp_GetSystemTimeAsFileTime referenced in function
__security_init_cookie
MSVCRT.lib(dllmain.obj) : error LNK2019: unresolved external symbol
__imp_DisableThreadLi
braryCalls referenced in function DllMain
mexGPUExample.mexw64 : fatal error LNK1120: 7 unresolved externals
Im using the VS2013 cuda7.5 and Windows SDK 8.1A ,why have this problem?
Antworten (1)
Joss Knight
am 6 Sep. 2017
0 Stimmen
2 Kommentare
weller
am 6 Sep. 2017
Joss Knight
am 8 Sep. 2017
No, because that compiler isn't supported by the CUDA compiler. Can you give me the verbose output from mexcuda? I need to see why it's not picking up your Visual Studio installation.
Kategorien
Mehr zu 颜色图 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!