Skip to content

What's the thread-safe model relationship between ucx & ibverbs? #10028

Closed Answered by gleon99
Yangfisher1 asked this question in Q&A
Discussion options

You must be logged in to vote

I can directly use UCT with UCS_THREAD_MODE_SINGLE flag and share the underlying resources with ib inferaces

No, because of MMIO usage by UCT, which is different from ibverbs.
We recommend using the UCP layer APIs, which ensure MT safety.
In case you need to share UCT resources between threads, use UCS_THREAD_MODE_SERIALIZED and ensure their synchronization.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@gleon99
Comment options

@Yangfisher1
Comment options

@gleon99
Comment options

Answer selected by Yangfisher1
@Yangfisher1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants