cpu.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2023-2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #pragma once
8 
9 namespace raft_proto {
10 namespace detail {
11 template <>
13  using value_type = int;
14  device_id() : id_{value_type{}} {};
15  device_id(value_type dev_id) : id_{dev_id} {};
16 
17  auto value() const noexcept { return id_; }
18 
19  private:
20  value_type id_;
21 };
22 } // namespace detail
23 } // namespace raft_proto
Definition: buffer.hpp:24
device_type
Definition: device_type.hpp:7
auto value() const noexcept
Definition: cpu.hpp:17
device_id(value_type dev_id)
Definition: cpu.hpp:15
Definition: base.hpp:11
int value_type
Definition: base.hpp:12