gpu-allocator icon indicating copy to clipboard operation
gpu-allocator copied to clipboard

Multithreading strategies

Open JMS55 opened this issue 6 months ago • 1 comments

What's the best way to allow threads to independently allocate/deallocate resources?

Sticking Allocator in an Arc<Mutex<Allocator>> means that only one thread can allocate/deallocate a resource at a time.

Does it make sense to use a separate Allocator per thread in a thread-local? How are the underlying descriptor pools managed?

JMS55 avatar Jun 22 '25 17:06 JMS55