-
Notifications
You must be signed in to change notification settings - Fork 11
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
Implement CupyArrayContext #251
base: main
Are you sure you want to change the base?
Conversation
ce508df
to
55b4cbf
Compare
Co-authored-by: Kaushik Kulkarni <[email protected]>
55b4cbf
to
7ab5211
Compare
test/test_arraycontext.py
Outdated
if isinstance(actx, CupyArrayContext): | ||
pytest.skip("CupyArrayContext does not support object arrays") | ||
|
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.
@inducer: We had briefly discussed adding support for object arrays via a wrapper (?), but I'm not sure how that should look like.
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.
d = cupy.cuda.runtime.getDeviceProperties(cupy.cuda.Device()) | ||
name = d["name"].decode("utf-8") | ||
return f"<CupyArrayContext> on {cupy.cuda.Device()}:{name}" |
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 is the only part of the code that give me pause for supporting something like cupy-rocm.
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.
cupy-rocm seems to be completely out-of-date, so probably no big deal.
This is ready for a first look @inducer |
256dbdb
to
5f4c4d9
Compare
e9c42dd
to
8fd5488
Compare
This is ready for review @inducer |
Please squash