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

src,test: Port away from for_each #294

Closed stotko closed 2 years ago

stotko commented 2 years ago

The trivial thrust::for_each invocations that directly use indexing through thrust::counting_iterator were ported in #281. However, there are still many other non-trivial use cases where a a different type of iterator is used. Port (almost) all of these to the new for_each_index function.

Partially addresses #279

codecov[bot] commented 2 years ago

Codecov Report

Merging #294 (3a7c58d) into master (9fbf49c) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #294   +/-   ##
=======================================
  Coverage   97.44%   97.44%           
=======================================
  Files          31       31           
  Lines        2272     2274    +2     
=======================================
+ Hits         2214     2216    +2     
  Misses         58       58           
Impacted Files Coverage Δ
src/stdgpu/impl/memory_detail.h 98.92% <100.00%> (ø)
src/stdgpu/impl/unordered_base_detail.cuh 96.36% <100.00%> (+0.01%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9fbf49c...3a7c58d. Read the comment docs.