필터 지우기
필터 지우기

How do you suppress opening parpool messages?

조회 수: 15 (최근 30일)
jsmith179
jsmith179 2015년 3월 22일
답변: Andrew Rowe 2016년 6월 10일
Is there any way that you can stop parpool displaying messages upon set up and deletion?
i.e.
>> parpool(2);
Starting parallel pool (parpool) using the 'local' profile ... connected to 2 workers.
>> delete(gcp('nocreate'));
Parallel pool using the 'local' profile is shutting down.
I want to stop these updates displaying.
Thanks for your time.
  댓글 수: 1
Darren Aklestad
Darren Aklestad 2015년 10월 26일
I have this same question. Anyone have any ideas?

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

답변 (1개)

Andrew Rowe
Andrew Rowe 2016년 6월 10일
The only way I've found to do this is to execute the command with evalc. For example:
evalc('parpool(2)');
This should supress the output, but it doesn't give the script parser any insight into the code if you're running this in a script or function. For example, take the code:
function y = square(x) y = x^2;
will not raise any flags with the parser if run normally, but if you execute y = x^2 with an evalc call, then the parser will flag the function call and say that it appears the variables y and x are not used. It shouldn't make it not run, it will just provide an annoying warning that you either have to live with or suppress.

카테고리

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