stotko / stdgpu

stdgpu: Efficient STL-like Data Structures on the GPU
https://stotko.github.io/stdgpu/
Apache License 2.0
1.15k stars 81 forks source link

deque: Add support for custom execution policies #373

Closed stotko closed 1 year ago

stotko commented 1 year ago

Whereas the containers operate in a sequential order and, hence, do not need custom execution policies, this lack of support becomes problematic for our GPU counterparts where aspects like controlling kernel synchronization play an important role. Add support for custom execution policies to all host functions of deque running GPU kernels to allow greater control by the user.

Partially addresses https://github.com/stotko/stdgpu/issues/351

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 :tada:

Comparison is base (e1b3f40) 97.30% compared to head (aba05c4) 97.32%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #373 +/- ## ========================================== + Coverage 97.30% 97.32% +0.01% ========================================== Files 31 31 Lines 2487 2505 +18 ========================================== + Hits 2420 2438 +18 Misses 67 67 ``` | [Impacted Files](https://app.codecov.io/gh/stotko/stdgpu/pull/373?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko) | Coverage Δ | | |---|---|---| | [src/stdgpu/deque.cuh](https://app.codecov.io/gh/stotko/stdgpu/pull/373?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko#diff-c3JjL3N0ZGdwdS9kZXF1ZS5jdWg=) | `100.00% <ø> (ø)` | | | [src/stdgpu/impl/deque\_detail.cuh](https://app.codecov.io/gh/stotko/stdgpu/pull/373?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko#diff-c3JjL3N0ZGdwdS9pbXBsL2RlcXVlX2RldGFpbC5jdWg=) | `94.09% <100.00%> (+0.45%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.