// Copyright © Advanced Micro Devices, Inc., or its affiliates. // SPDX-License-Identifier: MIT #include #include #include #include int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); // Initialize test logging infrastructure to forward logs to std::cerr based // on the current environment HIPDNN_LOG_LEVEL value when this function is called. // NOTE: Logs are not routed to the backend as this is an SDK unit test harness. hipdnn_test_sdk::utilities::initializeTestLogRecordingShared(); // Register HipErrorHandler to check and clear HIP errors after each test testing::TestEventListeners& listeners = testing::UnitTest::GetInstance()->listeners(); listeners.Append(new hipdnn_test_sdk::utilities::HipErrorHandler); auto result = RUN_ALL_TESTS(); return result; }