フィルターのクリア

Parfor issue at recording some log information

1 回表示 (過去 30 日間)
wonjoong cheon
wonjoong cheon 2022 年 6 月 9 日
回答済み: Pratyush 2023 年 10 月 23 日
Dear all.
I faced up the parfor issue at the variable "summary"
summary was used to record log information
I attached my code for lowlevel anonymization.
Thanks for all kindness.
Best regards
  1 件のコメント
Raymond Norris
Raymond Norris 2022 年 6 月 9 日
I don't see any code/attachments. Can you repost more information on what you're looking for (not working? errors? performance?).

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

回答 (1 件)

Pratyush
Pratyush 2023 年 10 月 23 日
Hi wonjoong,
I understand that you are encountering an issue with the variable "summary" within a "parfor" loop, it is likely because the variable is not properly sliced or indexed. To resolve this issue, you can try the following steps:
  1. Make sure the variable "summary" is properly initialized before the "parfor" loop begins.
  2. Ensure that each iteration of the "parfor" loop updates a different portion of the "summary" variable. This can be achieved by indexing or slicing the variable appropriately.
  3. Avoid any operations that require updating the entire "summary" variable within the "parfor" loop. Instead, try to break down the computations into smaller parts that can be updated independently.
Hope this helps.

カテゴリ

Help Center および File ExchangeParallel for-Loops (parfor) についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by