Files
composable_kernel/include/ck/utility/loop_scheduler.hpp
2025-12-05 16:14:41 +00:00

23 lines
568 B
C++

// Copyright (c) Advanced Micro Devices, Inc., or its affiliates.
// SPDX-License-Identifier: MIT
#pragma once
#include "ck/utility/common_header.hpp"
#include "ck/utility/scheduler_enum.hpp"
namespace ck {
/// @brief Helper function to get default loop scheduler
/// @details Returns the default loop scheduler based on compile-time configuration.
constexpr LoopScheduler make_default_loop_scheduler()
{
#if CK_EXPERIMENTAL_DEFAULT_TO_INTER_WAVE_SCHEDULING
return LoopScheduler::Interwave;
#else
return LoopScheduler::Default;
#endif
}
} // namespace ck