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

vector: Add support for custom execution policies #372

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 vector 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 (a6a6d10) 97.29% compared to head (bb34686) 97.30%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #372 +/- ## ========================================== + Coverage 97.29% 97.30% +0.01% ========================================== Files 31 31 Lines 2475 2487 +12 ========================================== + Hits 2408 2420 +12 Misses 67 67 ``` | [Impacted Files](https://app.codecov.io/gh/stotko/stdgpu/pull/372?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko) | Coverage Δ | | |---|---|---| | [src/stdgpu/vector.cuh](https://app.codecov.io/gh/stotko/stdgpu/pull/372?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko#diff-c3JjL3N0ZGdwdS92ZWN0b3IuY3Vo) | `100.00% <ø> (ø)` | | | [src/stdgpu/impl/unordered\_base\_detail.cuh](https://app.codecov.io/gh/stotko/stdgpu/pull/372?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko#diff-c3JjL3N0ZGdwdS9pbXBsL3Vub3JkZXJlZF9iYXNlX2RldGFpbC5jdWg=) | `96.11% <100.00%> (ø)` | | | [src/stdgpu/impl/vector\_detail.cuh](https://app.codecov.io/gh/stotko/stdgpu/pull/372?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko#diff-c3JjL3N0ZGdwdS9pbXBsL3ZlY3Rvcl9kZXRhaWwuY3Vo) | `94.59% <100.00%> (+0.30%)` | :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.