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