mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Add Missing Test File (#13607)
I built a new test infra for CUDA EP in #13016 but forgot adding the test to onnxruntime_test_all. Here is the missing file. Now, the `TestAll` function is really called in CI.
This commit is contained in:
parent
31cb3cb254
commit
cd85a6333a
2 changed files with 25 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ struct ProviderInfo_CUDA_Impl : ProviderInfo_CUDA {
|
|||
|
||||
// TODO(wechi): brings disabled tests in onnxruntime/test/providers/cuda/*
|
||||
// back alive here.
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
} g_info;
|
||||
|
|
|
|||
24
onnxruntime/test/providers/cuda/cuda_provider_test.cc
Normal file
24
onnxruntime/test/providers/cuda/cuda_provider_test.cc
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include "gtest/gtest.h"
|
||||
#include "core/common/status.h"
|
||||
#include "core/providers/cuda/cuda_provider_factory.h"
|
||||
#include <iostream>
|
||||
namespace onnxruntime {
|
||||
|
||||
ProviderInfo_CUDA& GetProviderInfo_CUDA();
|
||||
|
||||
namespace test {
|
||||
namespace cuda {
|
||||
TEST(CUDAEPTEST, ALL) {
|
||||
onnxruntime::ProviderInfo_CUDA& ep = onnxruntime::GetProviderInfo_CUDA();
|
||||
ASSERT_TRUE(ep.TestAll());
|
||||
}
|
||||
|
||||
} // namespace test
|
||||
} // namespace cuda
|
||||
} // namespace onnxruntime
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue