2020-05-07 23:25:41 +00:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
|
|
|
|
|
#include "test.h"
|
2023-07-26 04:56:50 +00:00
|
|
|
struct AdapterDmlEpTestApi {
|
2020-05-07 23:25:41 +00:00
|
|
|
SetupTest AdapterDmlEpTestSetup;
|
|
|
|
|
TeardownClass AdapterDmlEpTestTeardown;
|
|
|
|
|
VoidTest DmlExecutionProviderFlushContext;
|
|
|
|
|
VoidTest DmlExecutionProviderReleaseCompletedReferences;
|
|
|
|
|
VoidTest DmlCreateGPUAllocationFromD3DResource;
|
|
|
|
|
VoidTest DmlCreateAndFreeGPUAllocationFromD3DResource;
|
2021-11-13 11:34:54 +00:00
|
|
|
VoidTest GetTensorMemoryInfo;
|
2020-05-07 23:25:41 +00:00
|
|
|
VoidTest ExecutionProviderSync;
|
|
|
|
|
VoidTest DmlCopyTensor;
|
|
|
|
|
VoidTest CreateCustomRegistry;
|
|
|
|
|
VoidTest ValueGetDeviceId;
|
|
|
|
|
VoidTest SessionGetInputRequiredDeviceId;
|
|
|
|
|
};
|
|
|
|
|
const AdapterDmlEpTestApi& getapi();
|
|
|
|
|
|
|
|
|
|
WINML_TEST_CLASS_BEGIN(AdapterDmlEpTest)
|
|
|
|
|
WINML_TEST_CLASS_SETUP_METHOD(AdapterDmlEpTestSetup)
|
|
|
|
|
WINML_TEST_CLASS_TEARDOWN_METHOD(AdapterDmlEpTestTeardown)
|
|
|
|
|
WINML_TEST_CLASS_BEGIN_TESTS
|
|
|
|
|
WINML_TEST(AdapterDmlEpTest, DmlExecutionProviderFlushContext)
|
|
|
|
|
WINML_TEST(AdapterDmlEpTest, DmlExecutionProviderReleaseCompletedReferences)
|
|
|
|
|
WINML_TEST(AdapterDmlEpTest, DmlCreateGPUAllocationFromD3DResource)
|
|
|
|
|
WINML_TEST(AdapterDmlEpTest, DmlCreateAndFreeGPUAllocationFromD3DResource)
|
2021-11-13 11:34:54 +00:00
|
|
|
WINML_TEST(AdapterDmlEpTest, GetTensorMemoryInfo)
|
2020-05-07 23:25:41 +00:00
|
|
|
WINML_TEST(AdapterDmlEpTest, ExecutionProviderSync)
|
|
|
|
|
WINML_TEST(AdapterDmlEpTest, DmlCopyTensor)
|
|
|
|
|
WINML_TEST(AdapterDmlEpTest, CreateCustomRegistry)
|
|
|
|
|
WINML_TEST(AdapterDmlEpTest, ValueGetDeviceId)
|
|
|
|
|
WINML_TEST(AdapterDmlEpTest, SessionGetInputRequiredDeviceId)
|
|
|
|
|
WINML_TEST_CLASS_END()
|