Skip to content

Enable auto3dseg maximize gpu utils#5733

Merged
wyli merged 132 commits intoProject-MONAI:devfrom
dongyang0122:auto3dseg_maximize_gpu_utils
Dec 15, 2022
Merged

Enable auto3dseg maximize gpu utils#5733
wyli merged 132 commits intoProject-MONAI:devfrom
dongyang0122:auto3dseg_maximize_gpu_utils

Conversation

@dongyang0122
Copy link
Copy Markdown
Collaborator

@dongyang0122 dongyang0122 commented Dec 14, 2022

Description

Enable auto3dseg maximize gpu utilization based on gpus in higher API levels.

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.

Dong Yang and others added 30 commits August 8, 2022 20:09
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: dongy <[email protected]>
Signed-off-by: dongy <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
Signed-off-by: Dong Yang <[email protected]>
@mingxin-zheng
Copy link
Copy Markdown
Contributor

mingxin-zheng commented Dec 14, 2022

One thing to note is this feature is not available on the SegResNet algorithm template. If it is not difficult to add, should be consider adding the support of SegResNet too? @dongyang0122 @myron

Also, @dongyang0122 I made some minor comments
#5733 (comment)
#5733 (comment)

None of those comments is critical and feel free to pass them. If you are updating the PR, it would be nice to consider those changes.

@mingxin-zheng mingxin-zheng mentioned this pull request Dec 14, 2022
7 tasks
dongy added 3 commits December 14, 2022 11:43
Signed-off-by: dongy <[email protected]>
Signed-off-by: dongy <[email protected]>
Signed-off-by: dongy <[email protected]>
Signed-off-by: dongy <[email protected]>
@mingxin-zheng
Copy link
Copy Markdown
Contributor

@wyli I saw the following unrelated error. It seems some downloading fails in other unit tests

======================================================================
ERROR: test_grad (tests.test_warp.TestWarp)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/MONAI/MONAI/tests/test_warp.py", line 102, in setUp
    download_url_or_skip_test(
  File "/home/runner/work/MONAI/MONAI/tests/utils.py", line 731, in download_url_or_skip_test
    download_url(*args, **kwargs)
  File "/home/runner/work/MONAI/MONAI/monai/apps/utils.py", line 203, in download_url
    _download_with_progress(url, tmp_name, progress=progress)
  File "/home/runner/work/MONAI/MONAI/monai/apps/utils.py", line 114, in _download_with_progress
    raise e
  File "/home/runner/work/MONAI/MONAI/monai/apps/utils.py", line 111, in _download_with_progress
    urlretrieve(url, filepath)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 247, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 563, in error
    result = self._call_chain(*args)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 755, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

dongy added 2 commits December 14, 2022 19:28
Signed-off-by: dongy <[email protected]>
Signed-off-by: dongy <[email protected]>
dongy added 3 commits December 14, 2022 19:46
Signed-off-by: dongy <[email protected]>
Signed-off-by: dongy <[email protected]>
Signed-off-by: dongy <[email protected]>
dongy added 3 commits December 14, 2022 21:10
Signed-off-by: dongy <[email protected]>
Signed-off-by: dongy <[email protected]>
Signed-off-by: dongy <[email protected]>
@wyli
Copy link
Copy Markdown
Contributor

wyli commented Dec 15, 2022

/build

@wyli wyli enabled auto-merge (squash) December 15, 2022 11:16
@wyli wyli merged commit e989dc7 into Project-MONAI:dev Dec 15, 2022
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.

3 participants