Reorganize input parameters for cuda streams and stackbuffers
prettify