onnxruntime/winml/test/api/RawApiTestsGpu.h
Sheil Kumar 671fa60327
Enable direct tensorization and detensorization to many buffers in WinML (#5791)
* switch to work PC

* back with iterable of buffers

* add raw api tests

* tensorization

* last test

* all tests pass!

* small cleanup

* whitespace

* newline

* whitespace

* refactor common code into DisjointBufferHelpers

* remove unused file

* warning

* skip gpu tests when hardware not available

* Add error condition when createreference is invoked

* add null check to cretereference

* uncomment out check

Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
2020-11-16 10:06:22 -08:00

32 lines
1.1 KiB
C

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "test.h"
struct RawApiTestsGpuApi
{
SetupClass RawApiTestsGpuApiTestsClassSetup;
VoidTest CreateDirectXDevice;
VoidTest CreateD3D11DeviceDevice;
VoidTest CreateD3D12CommandQueueDevice;
VoidTest CreateDirectXHighPerformanceDevice;
VoidTest CreateDirectXMinPowerDevice;
VoidTest Evaluate;
VoidTest EvaluateNoInputCopy;
VoidTest EvaluateManyBuffers;
};
const RawApiTestsGpuApi& getapi();
WINML_TEST_CLASS_BEGIN(RawApiTestsGpu)
WINML_TEST_CLASS_SETUP_CLASS(RawApiTestsGpuApiTestsClassSetup)
WINML_TEST_CLASS_BEGIN_TESTS
WINML_TEST(RawApiTestsGpu, CreateDirectXDevice)
WINML_TEST(RawApiTestsGpu, CreateD3D11DeviceDevice)
WINML_TEST(RawApiTestsGpu, CreateD3D12CommandQueueDevice)
WINML_TEST(RawApiTestsGpu, CreateDirectXHighPerformanceDevice)
WINML_TEST(RawApiTestsGpu, CreateDirectXMinPowerDevice)
WINML_TEST(RawApiTestsGpu, Evaluate)
WINML_TEST(RawApiTestsGpu, EvaluateNoInputCopy)
WINML_TEST(RawApiTestsGpu, EvaluateManyBuffers)
WINML_TEST_CLASS_END()