Suppress parallel toolbox logs

3 ビュー (過去 30 日間)
Bruno
Bruno 2022 年 11 月 8 日
コメント済み: Bruno 2022 年 11 月 9 日
Is it possible to suppress the display of messages like Parallel pool using the 'local' profile is shutting down.?
I'm doing the following: evalc('pool = gcp()') and evalc('delete(pool)'). The first command successfully suppresses pool creation messages, but the second doesn't do it when running as a standalone application (.exe). It does work (i.e., no message is shown) when running in MATLAB.

回答 (1 件)

Raymond Norris
Raymond Norris 2022 年 11 月 8 日
If you're not already, add a semicolon to suppress the evalc calls.
evalc('pool = gcp();');
evalc('delete(pool)');
Above reason aside, I'm currious why you're wrapping calls into evalc.
  2 件のコメント
Bruno
Bruno 2022 年 11 月 9 日
The use of evalc comes from this topic: https://www.mathworks.com/matlabcentral/answers/175490-how-to-stop-printing-anything-to-command-window. I want to suppress all messages from parallel toolbox when running my standalone application (.exe). I did add semi-colon at the end of those commands, but the message Parallel pool using the 'local' profile is shutting down. is showing up when running the executable.
Bruno
Bruno 2022 年 11 月 9 日
Interestingly, that Parallel pool using... message only appears on the Command Prompt when I run the executable, but does not appear in the log file that gets created (I checked that option in the Application Compiler). So I think I'm OK now, since the log file is persistent, whereas the Command Prompt closes after the execution of the program. But I still find it weird that the parallel toolbox message is displayed in the Command Prompt.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by