Effacer les filtres
Effacer les filtres

MEX Files still open in Matlab

22 vues (au cours des 30 derniers jours)
Matt
Matt le 26 Jan 2012
Commenté : cui,xingxing le 29 Sep 2020
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

Réponse acceptée

Walter Roberson
Walter Roberson le 26 Jan 2012
Before recompiling, at the MATLAB command line, command
clear functions
  5 commentaires
Raja Subramani
Raja Subramani le 1 Fév 2019
tnq so much for u r answer....
cui,xingxing
cui,xingxing le 29 Sep 2020
thanks,it works!

Connectez-vous pour commenter.

Plus de réponses (1)

Matt
Matt le 27 Jan 2012
thank you very much. This works!

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by