MatX
MatX copied to clipboard
Refactor to use thrust::reduce on any.
Saw the issue open for this and did this on a whim. I'm not too comfortable deleting code from this repository so for brevity I'll leave things as is. All this does is just use thrust::reduce
instead of the defined kernels
Some clarifying points:
- This PR is likely not complete. I figured it would be better to get feedback earlier on incase I am doing something wrong.
- Tests are seemingly passing on my 3080 WSL2 build but some of them segfault on
main
so I can't replicate a perfect test scenario. - I am leaving the dispatching to thrust. The
Executor
s I didn't spend too much time studying.