필터 지우기
필터 지우기

Matlab Production Server and parfor loops

조회 수: 5 (최근 30일)
Robert Vullings
Robert Vullings 2016년 9월 5일
댓글: Robert Vullings 2018년 5월 3일
Hi all,
I have a question regarding parallel programming and the MPS. I know that the with a single MPS license, the MPS can run 24 workers which can be called upon request by a client application. On a multi-core system, multiple request can be handled by the MPS through different workers, and hence by different cores (if available). You can manually break-up a single request in multiple sub-requests and send them to the MPS to gain a performance difference. My question however: would it be possible to implement a parfor loop in the code? In my first tests with the MPS, I see that a single request only uses up to 50% of the CPU power (on a four-core system), leaving the rest of the CPU power idle.
This would simplify the code on the client-side (not having to deal with breaking up the client's request), while gaining a performance boost. Any experiences on this subject are welcome!
Thanks in advance,
Robert

답변 (1개)

wangpenghn wang
wangpenghn wang 2018년 4월 27일
hello, do you have any progress on this question? if have, could you please share it?
thank you so much
  댓글 수: 1
Robert Vullings
Robert Vullings 2018년 5월 3일
In the end I optimized the code such that any parallel computing was not necessary anymore. I haven't tried compiling the CTF with the parfor loop. I would figure that setting up the parallel pool might even make the computation time longer. In my case the request only took about 10 secs, which I wanted to bring down a bit more.

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

카테고리

Help CenterFile Exchange에서 Deployable Archive Creation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by