How to get stream index(such as 14) after call cudaStreamCreate funtion?

I don’t believe there is a way to get the stream index programmatically using the CUDA runtime or driver API. It might be possible using one of the profiler APIs. For that, your question may be better suited on one of the profiler forums, and I can move your question there if you like.