필터 지우기
필터 지우기

can parfor in compiled code access a local worker pool?

조회 수: 2 (최근 30일)
emmenlau
emmenlau 2015년 7월 20일
댓글: Dasharath Gulvady 2015년 7월 24일
I run on a dedicated multi-code computer very often mcc-compiled matlab programs, in which I execute parfor. Each program has a relatively slow startup time, I think because it is create the parallel worker pool. For my application, it would be more efficient if the pool could remain open all the time in the background, for example from a headless matlab session. Is something like that possible, or are there other solutions?

답변 (1개)

Dasharath Gulvady
Dasharath Gulvady 2015년 7월 22일
편집: Dasharath Gulvady 2015년 7월 22일
It is definitely possible for a compiled MATLAB code to utilize profiles created using Parallel Computing Toolbox. The below documentation page explains the same:
  댓글 수: 4
emmenlau
emmenlau 2015년 7월 23일
편집: emmenlau 2015년 7월 23일
Thats strange, because when I open Matlab twice interactively, and create a parpool in both (using the same profile), Matlab will tell me that there is a second pool already open, and that I can fetch and delete jobs on the existing pool! Did you try that? It seems they could in principle share the pool, just I don't understand how it would work.
Dasharath Gulvady
Dasharath Gulvady 2015년 7월 24일
Which version of MATLAB are you using? The expected behavior is not to share any workers between the MATLAB sessions. In the second MATLAB session, if you execute
>>p = gcp('nocreate');
What is the value of p? Note that, you should execute the above command without creating a pool beforehand.

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

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by