Skip to content

Can many indexes share one instance of StandardGpuResources? #1572

Answered by wickedfoo
chenqingguo asked this question in Q&A
Discussion options

You must be logged in to vote

The constraint is one StandardGpuResources object per CPU thread. You can use a StandardGpuResources object for multiple indices on the same or multiple GPUs but the constraint is that you cannot run them concurrently from different CPU threads; only a single index + single GPU can be run at one time on a single thread if they share a StandardGpuResources object.

IndexShards and IndexReplicas use multiple threads, so if they are used with GPU indices they require a StandardGpuResources object for each thread / index.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by beauby
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1572 on December 25, 2020 11:20.