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

Properly handle cudaMemHandleTypeNone and cudaErrorInvalidValue in is_export_handle_type_supported #1055

Conversation

gerashegalov
Copy link
Contributor

@gerashegalov gerashegalov commented Jun 1, 2022

  • Intercept cudaErrorInvalidValue returned from cudaDeviceGetAttribute to return false from is_export_handle_type_supported
  • Return true from is_export_handle_type_supported for cudaMemHandleTypeNone

Co-authored-by: @jrhemstad
Co-authored-by: @harrism

Closes #1054

Signed-off-by: Gera Shegalov gera@apache.org

@gerashegalov gerashegalov requested a review from a team as a code owner June 1, 2022 02:12
@github-actions github-actions bot added the cpp Pertains to C++ code label Jun 1, 2022
Signed-off-by: Gera Shegalov <gera@apache.org>
Copy link
Member

@harrism harrism left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@harrism harrism added bug Something isn't working non-breaking Non-breaking change labels Jun 1, 2022
@harrism harrism added this to PR-WIP in v22.08 Release via automation Jun 1, 2022
v22.08 Release automation moved this from PR-WIP to PR-Needs review Jun 1, 2022
Copy link
Member

@harrism harrism left a comment

Choose a reason for hiding this comment

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

Suggesting a more complete fix.

include/rmm/detail/dynamic_load_runtime.hpp Outdated Show resolved Hide resolved
gerashegalov and others added 2 commits June 1, 2022 14:11
@harrism review

Co-authored-by: Mark Harris <mharris@nvidia.com>
Signed-off-by: Gera Shegalov <gera@apache.org>
@gerashegalov gerashegalov changed the title Don't throw on cudaErrorInvalidValue in is_export_handle_type_supported Properly handle cudaMemHandleTypeNone and cudaErrorInvalidValue in is_export_handle_type_supported Jun 1, 2022
@gerashegalov gerashegalov requested a review from harrism June 1, 2022 22:51
v22.08 Release automation moved this from PR-Needs review to PR-Reviewer approved Jun 1, 2022
@harrism
Copy link
Member

harrism commented Jun 1, 2022

@gerashegalov please confirm this fixes #1054 before we merge. Thanks!

@pxLi
Copy link
Member

pxLi commented Jun 2, 2022

may I ask will this be cherry-picked to 22.06?

just saw the internal thread, looks good to target 22.08

gerashegalov added a commit to gerashegalov/cudf that referenced this pull request Jun 2, 2022
Signed-off-by: Gera Shegalov <gera@apache.org>
@gerashegalov
Copy link
Contributor Author

gerashegalov commented Jun 2, 2022

@gerashegalov
Copy link
Contributor Author

@gpucibot merge

@harrism
Copy link
Member

harrism commented Jun 6, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 89713b2 into rapidsai:branch-22.08 Jun 6, 2022
v22.08 Release automation moved this from PR-Reviewer approved to Done Jun 6, 2022
@gerashegalov gerashegalov deleted the gerashegalov/no-throw-cudaErrorInvalidValue branch June 6, 2022 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cpp Pertains to C++ code non-breaking Non-breaking change
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

[BUG] Driver 460.58 => dynamic_load_runtime.hpp:139: cudaErrorInvalidValue invalid argument
4 participants