How to have multiple matlab instances access MEX function files
이전 댓글 표시
I am using C/C++ based MEX files to accelerate some matlab functions. However, a problem is that my codes are ultimately meant to run in parallel with multiple matlab instances on shared networks. In particular, my codes need to be run many times but with different input parameters, so the same MEX file needs to be loaded with each MATLAB instance. With this, I encounter the following type of error:
Error using mex
LINK : fatal error LNK1104: cannot open file 'biharmonicPaddedC2.mexw64'
So the problem is that multiple MATLAB instances are not allowed to access the same mex file. The only way I can think of getting around this is by making separate identical C source files, but with different file names, for each matlab instance. Is there an easier way??
I am using Windows 10 and R2018a, although I would need a solution that would also work on linux systems.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!