I have the following code:
cudaStream_t stream .... // How to check status of stream before create cudaStreamCreate(&stream) .... // How to check status o