Repository navigation
Add ReverseIterator to cuda.parallel - #4291
Conversation
🟩 CI finished in 1h 11m: Pass: 100%/1 | Total: 1h 11m | Avg: 1h 11m | Max: 1h 11m
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 1)
| # | Runner |
|---|---|
| 1 | linux-amd64-gpu-rtx2080-latest-1 |
🟩 CI finished in 1h 06m: Pass: 100%/1 | Total: 1h 06m | Avg: 1h 06m | Max: 1h 06m
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 1)
| # | Runner |
|---|---|
| 1 | linux-amd64-gpu-rtx2080-latest-1 |
rwgk
left a comment
There was a problem hiding this comment.
What you have looks correct to me, but I'd definitely add unit tests to be sure all of get_last_element_ptr() is covered.
| shape = get_shape(device_array) | ||
| dtype = get_dtype(device_array) | ||
|
|
||
| strides_in_bytes = device_array.__cuda_array_interface__["strides"] |
There was a problem hiding this comment.
I must be confused ... maybe you can help me understand:
Yesterday I convinced myself that device_array.__cuda_array_interface__["strides"] is in elements (not bytes)
IIRC you had code to multiply by itemsize, but I don't see this anymore?
But then again, the tests pass...
There was a problem hiding this comment.
I was mistaken, see https://numba.readthedocs.io/en/stable/cuda/cuda_array_interface.html:
strides: None or (integer, ...)
If strides is not given, or it is None, the array is in C-contiguous layout. Otherwise, a tuple of int (or long) is
explicitly given for representing the number of bytes to skip to access the next element at each dimension.
The tests revealed this issue, sorry for the confusion
There was a problem hiding this comment.
Oh, wow, ChatGPT made this up yesterday!
The link is https://numba.readthedocs.io/en/stable/cuda/cuda_array_interface.html, exactly what you have.
What ChatGPT quotes there was never in the numba documetation! I wanted to be sure, so I systematically looked at all revisions of docs/source/cuda/cuda_array_interface.rst that ever existed, all the way back to 2018-05-08. bytes to skip is consistently there. elements to skip was never there. — My trust in ChatGPT just got a big dent.
My ChatGPT conversation from yesterday: https://chatgpt.com/share/67ed7e3f-3344-8008-b1a5-517728b7246b
There was a problem hiding this comment.
I just updated the link: https://chatgpt.com/share/67ed7e3f-3344-8008-b1a5-517728b7246b
Same URL as before, but there is a bit more now:
I apologize for any confusion caused by my earlier misstatement and appreciate your diligence in pointing out the discrepancy.
There was a problem hiding this comment.
yeah in my experience it hallucinates pretty badly when you ask for sources
🟩 CI finished in 1h 09m: Pass: 100%/1 | Total: 1h 09m | Avg: 1h 09m | Max: 1h 09m
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 1)
| # | Runner |
|---|---|
| 1 | linux-amd64-gpu-rtx2080-latest-1 |
🟩 CI finished in 1h 06m: Pass: 100%/1 | Total: 1h 06m | Avg: 1h 06m | Max: 1h 06m
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 1)
| # | Runner |
|---|---|
| 1 | linux-amd64-gpu-rtx2080-latest-1 |
🟥 CI finished in 13m 55s: Pass: 0%/1 | Total: 13m 55s | Avg: 13m 55s | Max: 13m 55s
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 1)
| # | Runner |
|---|---|
| 1 | linux-amd64-gpu-rtx2080-latest-1 |
🟥 CI finished in 19m 46s: Pass: 0%/1 | Total: 19m 46s | Avg: 19m 46s | Max: 19m 46s
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 1)
| # | Runner |
|---|---|
| 1 | linux-amd64-gpu-rtx2080-latest-1 |
🟩 CI finished in 1h 09m: Pass: 100%/1 | Total: 1h 09m | Avg: 1h 09m | Max: 1h 09m
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| Thrust | |
| CUDA Experimental | |
| stdpar | |
| +/- | python |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 1)
| # | Runner |
|---|---|
| 1 | linux-amd64-gpu-rtx2080-latest-1 |
* Add ReverseIterator implementation and tests * Remove print statements and fix documentation * Refactor get_last_element_ptr and add missing iterator tests * formatting * fix ordering of classes * Undo get_shape change * Address comments * REmove comment * Fix input checking * Get numba dtype when creating iterator
Description
closes #4290
Checklist