Skip to content

Check dist.is_initialized before calling dist.get_rank()#194

Open
thanh-lam wants to merge 1 commit intofoundation-model-stack:mainfrom
thanh-lam:thanh-lam/save-val-1aiu
Open

Check dist.is_initialized before calling dist.get_rank()#194
thanh-lam wants to merge 1 commit intofoundation-model-stack:mainfrom
thanh-lam:thanh-lam/save-val-1aiu

Conversation

@thanh-lam
Copy link
Copy Markdown

@thanh-lam thanh-lam commented Mar 20, 2026

This PR fixes the aiu-apps-sw-tracker issue #1688.

When --save_validation_info_outputs is requested, in case of single aiu, calling dist.get_rank() will fail. Therefore, checking dist.is_initialized() is required. Then, just simply set the bool=1.

Signed-off-by: Thanh Lam <thanhlam@us.ibm.com>
@thanh-lam thanh-lam force-pushed the thanh-lam/save-val-1aiu branch from 57fd859 to 9d612ad Compare March 20, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant