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

Use properly imported MatDescriptor for cupy dispatch registration #7868

Merged
merged 1 commit into from
May 30, 2023

Conversation

charlesbluca
Copy link
Member

@charlesbluca charlesbluca commented May 30, 2023

Looks like we missed one remaining appearance of cusparse in CuPy's dispatch registration, which was relocated in cupy=12.

Noting that from #7836 (comment) this code seems to be a workaround for an issue in cupy<8?

This MatDescriptor serialization code was a workaround for a CuPy pre-8.0.0 issue ( cupy/cupy#3061 ). It was fixed in PR ( cupy/cupy#3157 ).

Maybe for newer CuPy's we skip this workaround. Alternatively we could just drop this workaround and request users have at least CuPy >=8.0.0 installed.

So we may be able to remove this in the near future; for now this should unblock GPU CI

cc @jrbourbeau @wence-

Closes #7866
xref: rapidsai/dask-cuda#1174

  • Tests added / passed
  • Passes pre-commit run --all-files

@jrbourbeau
Copy link
Member

rerun tests

@charlesbluca
Copy link
Member Author

Looks like the initial UCX failures were unrelated? Unable to reproduce locally

@jrbourbeau
Copy link
Member

Probably #5229 (known flaky test)

Copy link
Member

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

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

Thanks @charlesbluca

@jrbourbeau jrbourbeau changed the title Use properly imported MatDescriptor for cupy dispatch registration Use properly imported MatDescriptor for cupy dispatch registration May 30, 2023
@jrbourbeau jrbourbeau merged commit 3286d2f into dask:main May 30, 2023
23 of 26 checks passed
@jakirkham
Copy link
Member

jakirkham commented May 30, 2023

Thanks Charles & James! 🙏

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.

AttributeError: module 'cupy' has no attribute 'cusparse'
3 participants