MEX Files still open in Matlab

조회 수: 14 (최근 30일)
Matt
Matt 2012년 1월 26일
댓글: xingxingcui 2020년 9월 29일
Hello,
I'm actually compiling CUDA mex files in Matlab by first using the system command nvcc (which is Nvidia's compiler for CUDA C code) to compile my .cu code into .cpp code, and then using the mex command to compile that into mex code. It will work out fine until I try to make some changes and then recompile. When I do , I get the Link: fatal error LNK1104 error where it says that it can't open the target mex file. Even when I try to delete the existing .mexw64 file, it says that the file is still open in Matlab. Once I restart Matlab, I can recompile. How can I remedy this error?
Thanks, Matt

채택된 답변

Walter Roberson
Walter Roberson 2012년 1월 26일
Before recompiling, at the MATLAB command line, command
clear functions
  댓글 수: 5
Raja Subramani
Raja Subramani 2019년 2월 1일
tnq so much for u r answer....
xingxingcui
xingxingcui 2020년 9월 29일
thanks,it works!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Matt
Matt 2012년 1월 27일
thank you very much. This works!

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by