"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "eb4f81240c9c627e5cc0b2213fb4ac2c205a0709"
utils.cpp 510 Bytes
Newer Older
Paul's avatar
Format  
Paul committed
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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;
}

Paul's avatar
Format  
Paul committed
14
15
16
17
18
19
const std::unordered_set<std::string>& get_xdlop_archs()
{
    static std::unordered_set<std::string> supported_archs{"gfx90a", "gfx908", "gfx940", "gfx942"};
    return supported_archs;
}

Paul's avatar
Format  
Paul committed
20
21
} // namespace host
} // namespace ck