Closed sunhmy closed 3 years ago
Looks like terminate() is called because your main() is not handling the exception. This is according to the C++ standard.
The cause for the exception is an error that cudnnSetStream() returns: CUDNN_STATUS_MAPPING_ERROR. There may be multiple reasons for this.
The cause for the exception is an error that cudnnSetStream() returns: CUDNN_STATUS_MAPPING_ERROR. There may be multiple reasons for this.
Thanks for the reply. Any suggestion for how to overcome this error?
I would suggest first to check error code from cudaCreateStream() to see that it did not fail and you are feeding a valid stream. Also, make sure you read this
Thank you for the suggestion. I see what's going on finally. I didn't realize that the CUDA Stream is device specific, so that I have to set device properly before using those streams on another devices. Now it's working for me and I'm closing this issue.
Discussed in https://github.com/microsoft/onnxruntime/discussions/8460