samng Posted August 2, 2013 Report Share Posted August 2, 2013 Hi, We have been experimenting with wrapping SystemC sim with mexFunction so that it can be called within Matlab. What we find is that repeat calling of the mexFunction causes memory leak as if something was not cleaned up even each SystemC object is meticulaously deleted. Does anyone has experience with calling SystemC from Matlab? Was the memory leak issue encountered? Is there a solution? Thanks, Sam Quote Link to comment Share on other sites More sharing options...
ralph.goergen Posted August 5, 2013 Report Share Posted August 5, 2013 Hi Sam. The Accellera implementation of the SystemC simulator is intended to run to completion. At the end of a simulation, the simulation program exits. Thats why there is no total clean-up of the simulation kernel at the end of a simulation. We use SystemC in combination with Simulink, and we observed the same issue when starting a simulation a second time without closing and reopening Matlab/Simulink. Our solution: ignore it and restart Matlab from time to time. The leaks are not that much and we have a lot of memory . Greetings Ralph maehne 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.