-
Notifications
You must be signed in to change notification settings - Fork 2
adding a new episode for cupy #2
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
Conversation
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.
I really liked it. The cupy vs numpy/scipy gotcha section is gold. I only pointed out a couple of minor typos and a doubt I had about one thing, but as soon as the broken examples are fixed (or the reason why they're broken is known) for me it's mergeable!
EDIT: regarding the stream thing, I think it's ok like this. It could be part of a bonus episode maybe. But as things look now, we either assume that people already know about the GPU execution model or they don't care and just want to gpu-ify their code, so they don't want to bother with that level of granularity.
ashwinvis
left a comment
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.
Few more comments, and another general one which applies to many places: try to look for the term cupy. and use backticks so that we recognize it is code and not part of the text.
ashwinvis
left a comment
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.
Some more fixme left.
| (see [CUDA Array Interface](https://numba.readthedocs.io/en/stable/cuda/cuda_array_interface.html) | ||
| for details). It means one can pass CuPy arrays to kernels JITed with Numba. | ||
|
|
||
| ################### FIXME: crashes when launching |
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?
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.
it still crashes for me when I did the test on Tetralith.
I have to make a test on a different cluster
fixed in f22c022 |
|
@ashwinvis @ffrancesco94 all the comments are implemented except one which is the crashing of the numba. I need more time on that. For now I would say I will merge the PR, and later remove the FIXME warning after testing on a different machine. |
ashwinvis
left a comment
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.
Describe CUB
|
Thanks @qianglise, I will merge as it is. |
adding cupy episode related to ENCCS/hpda-python#111