/* * Copyright (c) Advanced Micro Devices, Inc., or its affiliates. * * SPDX-License-Identifier: MIT */ #include #include #include /** * @addtogroup event event * @{ * @ingroup PerformanceTestEvent */ class HipEventDestroyBenchmark : public Benchmark { public: void operator()() { hipEvent_t event; HIP_CHECK(hipEventCreate(&event)); TIMED_SECTION(kTimerTypeCpu) { HIP_CHECK(hipEventDestroy(event)); } } }; /** * Test Description * ------------------------ * - Executes `hipEventDestroy` * Test source * ------------------------ * - performance/api/event/hipEventDestroy.cc * Test requirements * ------------------------ * - HIP_VERSION >= 5.2 */ HIP_TEST_CASE(Performance_hipEventDestroy) { HipEventDestroyBenchmark benchmark; benchmark.Run(); } /** * End doxygen group event. * @} */