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 copy and fill #297

Closed stotko closed 2 years ago

stotko commented 2 years ago

The fill and copy functions are used in the library itself as well as in the unit tests. Port away from these functions by re-implementing them in terms of for_each_index.

Partially addresses #279

codecov[bot] commented 2 years ago

Codecov Report

Merging #297 (cd589e3) into master (242aa40) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #297      +/-   ##
==========================================
+ Coverage   97.45%   97.46%   +0.01%     
==========================================
  Files          31       31              
  Lines        2278     2292      +14     
==========================================
+ Hits         2220     2234      +14     
  Misses         58       58              
Impacted Files Coverage Δ
src/stdgpu/impl/algorithm_detail.h 100.00% <100.00%> (ø)
src/stdgpu/impl/bitset_detail.cuh 100.00% <100.00%> (ø)
src/stdgpu/impl/unordered_base_detail.cuh 96.36% <100.00%> (ø)

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 242aa40...cd589e3. Read the comment docs.