-
Notifications
You must be signed in to change notification settings - Fork 161
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
base: branch-25.06
Are you sure you want to change the base?
Adopt Python 3.12 #2184
Conversation
…rpheus into david-25.02-x-25.02
…avid-25.02-x-25.02
…avid-rapids-25.02
…avid-rapids-25.02
…avid-rapids-25.02
…mount for apt, pip and conda
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
22a24dc
to
1579ee6
Compare
/ok to test |
1 similar comment
/ok to test |
2fcacaf
to
52c41c8
Compare
/ok to test |
52c41c8
to
114e147
Compare
/ok to test |
Signed-off-by: Will Killian <[email protected]>
114e147
to
123a585
Compare
/ok to test |
Signed-off-by: Will Killian <[email protected]>
/ok to test |
1 similar comment
/ok to test |
Signed-off-by: Will Killian <[email protected]>
bb09517
to
2ca4c64
Compare
/ok to test |
Signed-off-by: Will Killian <[email protected]>
/ok to test |
Signed-off-by: Will Killian <[email protected]>
/ok to test |
Signed-off-by: David Gardner <[email protected]>
/ok to test |
Signed-off-by: Will Killian <[email protected]>
/ok to test |
Signed-off-by: Will Killian <[email protected]>
/ok to test |
Signed-off-by: Will Killian <[email protected]>
/ok to test |
There was a problem hiding this 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") |
There was a problem hiding this comment.
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''' |
There was a problem hiding this comment.
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=" |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
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}") |
There was a problem hiding this comment.
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
Description
ImportError
-derived)faiss-cpu
on aarch64 target uses deprecated numpy API #2190 & upstream issuefaiss
fails to import on python==3.12 because of deprecatednumpy.distutils
facebookresearch/faiss#3936Closes #2181
By Submitting this PR I confirm: