cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

JiaweiOu
Journeyman III

Can I bind one buffer to two or more contexts at the same time?

Is it possible to bind one buffer to two or more contexts at the same time? I am working on a multi-GPU program.

0 Likes
1 Reply
rick_weber
Adept II

By bind, do you mean mapping the resources to the parameters before you call the kernel, or do you mean allocating the resource?

If the contexts are on multiple devices, it in theory would depend on how they're allocated. Obviously, a local resource allocated on GPU1 cannot be used by GPU2. However, if you declare the resource as remote, you allocate the same resource on multiple devices, according to the API. From what I've read in the forums however, this is broken and numDevices must be 1.

0 Likes