mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-12 17:26:00 +00:00
* Format * Format * Format * Remove const * Use the right template * Format * Format * add row/col instances * Add missing file * fixed * Format * Updates * Format * fixed rrr layout * Format * Update test and embed modules * Restore older version * Update year * Set -fPIC * Format * Use double for isnan * rename host folder to codegen + minor fix * add codegen CI test * add option to build components without building CK * fix the groovy syntax * fix typo * use the correct function for the codegen stage --------- Co-authored-by: Jing Zhang <jizha@amd.com> Co-authored-by: Illia Silin <98187287+illsilin@users.noreply.github.com> Co-authored-by: illsilin <Illia.Silin@amd.com>
22 lines
510 B
C++
22 lines
510 B
C++
// SPDX-License-Identifier: MIT
|
|
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
|
|
|
|
#include "ck/host/utils.hpp"
|
|
|
|
namespace ck {
|
|
namespace host {
|
|
|
|
std::size_t integer_divide_ceil(std::size_t x, std::size_t y)
|
|
{
|
|
return (x + y - std::size_t{1}) / y;
|
|
}
|
|
|
|
const std::unordered_set<std::string>& get_xdlop_archs()
|
|
{
|
|
static std::unordered_set<std::string> supported_archs{"gfx90a", "gfx908", "gfx940", "gfx942"};
|
|
return supported_archs;
|
|
}
|
|
|
|
} // namespace host
|
|
} // namespace ck
|