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

memory: Use calls to allocator_traits in all functions #363

Closed stotko closed 1 year ago

stotko commented 1 year ago

With #362, we now have a uniform pattern to allocate uninitialized and filled arrays using arbitrary allocators and execution policies. Use this API in all creation and deletion functions in memory.

In the future, when all containers also follow this pattern, several internal functions can be cleaned up to further streamline the module.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.02 :warning:

Comparison is base (40efa15) 97.24% compared to head (fc9f960) 97.22%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #363 +/- ## ========================================== - Coverage 97.24% 97.22% -0.02% ========================================== Files 31 31 Lines 2430 2414 -16 ========================================== - Hits 2363 2347 -16 Misses 67 67 ``` | [Impacted Files](https://app.codecov.io/gh/stotko/stdgpu/pull/363?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko) | Coverage Δ | | |---|---|---| | [src/stdgpu/impl/memory\_detail.h](https://app.codecov.io/gh/stotko/stdgpu/pull/363?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Patrick+Stotko#diff-c3JjL3N0ZGdwdS9pbXBsL21lbW9yeV9kZXRhaWwuaA==) | `99.14% <100.00%> (-0.06%)` | :arrow_down: |

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