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!