How to use a mex compiled .mexw64 function in a parfor loop

When I use a mex compiled dll file with the suffix of mexw64 in a parfor loop, the error occurs which says that Undefined function 'Ctfrspwv' for input arguments of type 'double'. 'Ctfrs[wv.mexw64' is my compiled dll function. However, if I change parfor to for coommand, then this error message will not occur. What is the reason? Thank you very much!

답변 (1개)

Edric Ellis
Edric Ellis 2013년 12월 19일

0 개 추천

Which cluster type are you using? If you're not using the 'local' cluster, then you might need to send the MEX file to the workers using addAttachedFiles.

댓글 수: 1

Thank you very much Edric, I use local clusters. I think something has gone wrong on my computer. When I changed the execution to another computer, it works. Thank you for your suggestions. I should learn from you in the future.

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

카테고리

도움말 센터File Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

질문:

2013년 12월 19일

댓글:

2013년 12월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by