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

test: Port away from sort and count_if #292

Closed stotko closed 2 years ago

stotko commented 2 years ago

The sort and count_if functions are only used in the unit tests and are already surrounded by code where both a device and host version of the involved data arrays are allocated. Port away from both of these functions by utilizing the host versions instead.

Partially addresses #279

codecov[bot] commented 2 years ago

Codecov Report

Merging #292 (a449957) into master (ff806c6) will decrease coverage by 0.00%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #292      +/-   ##
==========================================
- Coverage   97.45%   97.44%   -0.01%     
==========================================
  Files          31       31              
  Lines        2276     2272       -4     
==========================================
- Hits         2218     2214       -4     
  Misses         58       58              
Impacted Files Coverage Δ
src/stdgpu/impl/iterator_detail.h 94.93% <0.00%> (-0.25%) :arrow_down:

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 ff806c6...a449957. Read the comment docs.