stotko / stdgpu

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

mutex: Add support for custom execution policies #371

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 mutex 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 no project coverage change.

Comparison is base (5e1b929) 97.29% compared to head (24c9b30) 97.29%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #371 +/- ## ======================================= Coverage 97.29% 97.29% ======================================= Files 31 31 Lines 2473 2475 +2 ======================================= + Hits 2406 2408 +2 Misses 67 67 ``` | [Impacted Files](https://app.codecov.io/gh/stotko/stdgpu/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko) | Coverage Δ | | |---|---|---| | [src/stdgpu/mutex.cuh](https://app.codecov.io/gh/stotko/stdgpu/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko#diff-c3JjL3N0ZGdwdS9tdXRleC5jdWg=) | `100.00% <ø> (ø)` | | | [src/stdgpu/impl/mutex\_detail.cuh](https://app.codecov.io/gh/stotko/stdgpu/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko#diff-c3JjL3N0ZGdwdS9pbXBsL211dGV4X2RldGFpbC5jdWg=) | `100.00% <100.00%> (ø)` | |

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