Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
enable AutoEp test only for Windows
  • Loading branch information
apwojcik committed Jul 24, 2025
commit 8e0c43f2f9b00e08ecf32503ade19c1e86d63c93
4 changes: 4 additions & 0 deletions onnxruntime/test/providers/migraphx/migraphx_basic_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ static bool SessionHasEp(Ort::Session& session, const char* ep_name) {
return has_ep;
}

#if defined(WIN32)
// Tests autoEP feature to automatically select an EP that supports the GPU.
// Currently only works on Windows.
TEST(MIGraphXExecutionProviderTest, AutoEp_PreferGpu) {
PathString model_name = ORT_TSTR("migraphx_basic_test.onnx");

Expand All @@ -227,6 +230,7 @@ TEST(MIGraphXExecutionProviderTest, AutoEp_PreferGpu) {

env.UnregisterExecutionProviderLibrary(kMIGraphXExecutionProvider);
}
#endif

} // namespace test
} // namespace onnxruntime
Loading