mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-13 18:08:13 +00:00
disable gpu timeouts in winml (#4604)
Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
This commit is contained in:
parent
48d969f4bf
commit
c361a59cff
1 changed files with 1 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ wgdx::Direct3D11::IDirect3DDevice D3DDeviceCache::GetWinrtDevice() {
|
|||
void D3DDeviceCache::InitializeCommandQueue(ID3D12Device1* device) {
|
||||
D3D12_COMMAND_QUEUE_DESC queueDesc = {};
|
||||
queueDesc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT;
|
||||
queueDesc.Flags = D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT;
|
||||
WINML_THROW_IF_FAILED(device->CreateCommandQueue(&queueDesc, winrt::guid_of<ID3D12CommandQueue>(), command_queue_.put_void()));
|
||||
|
||||
// If possible get the sharing context. If not leave nullptr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue