parallel computing and mex interface

This project aims to provide an easy to used extendable C++ interface between OpenSim and Matlab®.
POST REPLY
User avatar
Kaiwen Yang
Posts: 45
Joined: Mon Sep 03, 2018 11:25 am

parallel computing and mex interface

Post by Kaiwen Yang » Sun Sep 06, 2020 6:22 pm

the following setup results in a straight error when I tried to use parallel computing in Matlab, any ideas?

obj=matlab_engine();
obj=setup('hopper.osim');

parfor i=1:100
% iterative work involving using obj
end

Matlab gives Error: "Invalid id 2049871008. Did you create?"

Is there any work around?

POST REPLY