Skip to content

5150 fixes integration error reading stdout visible devices#5154

Merged
wyli merged 1 commit intoProject-MONAI:devfrom
wyli:fixes-5150
Sep 15, 2022
Merged

5150 fixes integration error reading stdout visible devices#5154
wyli merged 1 commit intoProject-MONAI:devfrom
wyli:fixes-5150

Conversation

@wyli
Copy link
Copy Markdown
Contributor

@wyli wyli commented Sep 15, 2022

Signed-off-by: Wenqi Li [email protected]

Fixes #5150

Description

python -m tests.utils may print additional contents from 3rd party packages,
only the last line for the stdout should be used

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: Wenqi Li <[email protected]>
@wyli wyli marked this pull request as ready for review September 15, 2022 08:56
@wyli
Copy link
Copy Markdown
Contributor Author

wyli commented Sep 15, 2022

/build

1 similar comment
@wyli
Copy link
Copy Markdown
Contributor Author

wyli commented Sep 15, 2022

/build

Copy link
Copy Markdown
Member

@ericspod ericspod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with this as a quick fix if that's needed right now. I would suggest for the future having a separate script file in tests that does this for us without importing anything extra, something like this or something calling nvidia-smi:

if __name__ == "__main__":
    import torch
    print(",".join(map(str,range(torch.cuda.device_count()))))

@wyli wyli merged commit d844caf into Project-MONAI:dev Sep 15, 2022
@wyli wyli deleted the fixes-5150 branch September 15, 2022 13:37
KumoLiu pushed a commit that referenced this pull request Nov 2, 2022
Signed-off-by: Wenqi Li <[email protected]>

Fixes #5150

### Description
`python -m tests.utils` may print additional contents from 3rd party
packages,
only the last line for the stdout should be used

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [x] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [x] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: KumoLiu <[email protected]>
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.

transformer 4.22.0 causes integration issues

3 participants