How to create cuda streams with different priorities?

Adapt the priority function from above, it’s pretty similar in that it returns an integer through an argument.