ledatelescope / bifrost

A stream processing framework for high-throughput applications.
BSD 3-Clause "New" or "Revised" License
66 stars 29 forks source link

Make `bifrost.reduce` work with slices #175

Closed jaycedowell closed 1 year ago

jaycedowell commented 2 years ago

This PR addresses #155 where bifrost.reduce() throws a BF_STATUS_DEVICE_ERROR when given a slice. This is done my making sure that the input data/slice is aligned along a vector-size boundary before trying to launch a vectorized kernel. If that is not true then the looped kernel is used instead.