buildTree takes a stream argument and does almost everything in this stream
testing:
with the default argument it works as before
I haven't tested with a custom stream yet (I have problems running the tests in this repo). Also I haven't verified that all the work happens in the stream as intended.
Finally, remains the allocation of the tags vector which happens in the main stream I believe (I don't know how to allocate a thrust::device_vector in a stream)
buildTree takes a stream argument and does almost everything in this stream
testing: with the default argument it works as before I haven't tested with a custom stream yet (I have problems running the tests in this repo). Also I haven't verified that all the work happens in the stream as intended. Finally, remains the allocation of the tags vector which happens in the main stream I believe (I don't know how to allocate a thrust::device_vector in a stream)