Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt Python 3.12 #2184

Open
wants to merge 78 commits into
base: branch-25.06
Choose a base branch
from

Conversation

dagardner-nv
Copy link
Contributor

@dagardner-nv dagardner-nv commented Feb 19, 2025

Description

Closes #2181

By Submitting this PR I confirm:

  • I am familiar with the Contributing Guidelines.
  • When the PR is ready for review, new or existing tests cover these changes.
  • When the PR is ready for review, the documentation is up to date with these changes.

mroeschke and others added 30 commits January 9, 2025 11:59
Cleanup DOCA env vars
Remove redundant calls to `apt update`, remove call to `apt upgrade`.
Fix download location for `doca-host.deb`
Consolidate installing of doca packagwes
@willkill07
Copy link
Member

/ok to test

1 similar comment
@willkill07
Copy link
Member

/ok to test

@willkill07
Copy link
Member

/ok to test

@willkill07
Copy link
Member

/ok to test

@willkill07
Copy link
Member

/ok to test

Signed-off-by: Will Killian <[email protected]>
@willkill07
Copy link
Member

/ok to test

1 similar comment
@willkill07
Copy link
Member

/ok to test

Signed-off-by: Will Killian <[email protected]>
@willkill07
Copy link
Member

/ok to test

@willkill07
Copy link
Member

/ok to test

Signed-off-by: Will Killian <[email protected]>
@willkill07
Copy link
Member

/ok to test

@dagardner-nv
Copy link
Contributor Author

/ok to test

Signed-off-by: Will Killian <[email protected]>
@willkill07
Copy link
Member

/ok to test

@willkill07
Copy link
Member

/ok to test

@willkill07
Copy link
Member

/ok to test

Copy link
Member

@willkill07 willkill07 left a comment

Choose a reason for hiding this comment

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

Here are additional comments to aid in the review of this PR.

@@ -121,7 +121,6 @@ CONDA_ARGS_ARRAY+=("-c" "${CONDA_CHANNEL_ALIAS:+"${CONDA_CHANNEL_ALIAS%/}/"}rapi
CONDA_ARGS_ARRAY+=("-c" "${CONDA_CHANNEL_ALIAS:+"${CONDA_CHANNEL_ALIAS%/}/"}nvidia")
CONDA_ARGS_ARRAY+=("-c" "${CONDA_CHANNEL_ALIAS:+"${CONDA_CHANNEL_ALIAS%/}/"}nvidia/label/dev")
CONDA_ARGS_ARRAY+=("-c" "${CONDA_CHANNEL_ALIAS:+"${CONDA_CHANNEL_ALIAS%/}/"}pytorch")
CONDA_ARGS_ARRAY+=("-c" "${CONDA_CHANNEL_ALIAS:+"${CONDA_CHANNEL_ALIAS%/}/"}defaults")
Copy link
Member

Choose a reason for hiding this comment

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

We shouldn't use defaults, which is why I removed it

@@ -124,7 +124,7 @@
"exhaleExecutesDoxygen":
True,
"exhaleDoxygenStdin":
textwrap.dedent('''
textwrap.dedent(r'''
Copy link
Member

Choose a reason for hiding this comment

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

Had to add the r else the asterisks yielded Check failures

@@ -141,8 +141,7 @@
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = NO
PREDEFINED = "MORPHEUS_EXPORT=" \
"DOXYGEN_SHOULD_SKIP_THIS=1"
PREDEFINED += "MORPHEUS_EXPORT="
Copy link
Member

Choose a reason for hiding this comment

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

We can use += to append to PREDEFINED rather than overwriting it outright

@@ -15,6 +15,8 @@

list(APPEND CMAKE_MESSAGE_CONTEXT "python")

add_compile_definitions("PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF=1")
Copy link
Member

Choose a reason for hiding this comment

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

If we don't include this, then we get lots of assertion failures. This check was only enabled by default on a newer pybind11 (which this PR now has)

@@ -230,7 +230,7 @@ jobs:
matrix:
arch: ["amd64", "arm64"]
include:
- runner: linux-amd64-gpu-v100-latest-1
- runner: linux-amd64-gpu-l4-latest-1
Copy link
Member

Choose a reason for hiding this comment

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

This was updated here because I forgot to do it on a prior PR that updated the runners to no longer use the v100

Comment on lines +124 to +128
except Exception as e:
# if we encounter some exception while loading, then also skip the test
if fail_missing:
raise e
raise pytest.skip.Exception(f"failed to import {modname}: {e}")
Copy link
Member

Choose a reason for hiding this comment

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

This was the code added to handle any type of exception being thrown on import for import_or_skip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change conda-build Enables running the conda-build step on a PR dependencies Pull requests that update a dependency file feature request New feature or request
Projects
Status: Review - Ready for Review
Development

Successfully merging this pull request may close these issues.

[FEA]: Support python 3.12
3 participants