Functional gpu version
Removed streams
Converted to uint32_t