Should I try to use as many queues as possible?

前端 未结 4 1913
余生分开走
余生分开走 2020-12-29 23:40

On my machine I have two queue families, one that supports everything and one that only supports transfer.

The queue family that supports everything has a queueCount

4条回答
  •  余生分开走
    2020-12-30 00:10

    Since you can submit multiple independent workload in the same queue, and it doesn't seem there is any implicit ordering guarantee among them, you don't really need more than one queue to saturate the queue family. So I guess the sole purpose of multiple queues is to allow for different priorities among the queues, as specified during device creation.

    I know this answer is in direct contradiction to the accepted answer, but that answer fails to address the issue that you don't need more queues to send more parallel work to the device.

提交回复
热议问题