"...composable_kernel_rocm.git" did not exist on "7e9a9d32c7a9259a1bd57b0b461c36d089d26fe8"
utils.cpp 510 Bytes
Newer Older
Paul Fultz II's avatar
Paul Fultz II committed
1
// SPDX-License-Identifier: MIT
arai713's avatar
arai713 committed
2
// Copyright (c) 2018-2024, Advanced Micro Devices, Inc. All rights reserved.
Paul Fultz II's avatar
Paul Fultz II committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#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