RMM  23.12
RAPIDS Memory Manager
Public Types | Public Member Functions | List of all members
rmm::cuda_device_id Struct Reference

Strong type for a CUDA device identifier. More...

#include <cuda_device.hpp>

Public Types

using value_type = int
 Integer type used for device identifier.
 

Public Member Functions

constexpr cuda_device_id (value_type dev_id) noexcept
 Construct a cuda_device_id from the specified integer value. More...
 
constexpr value_type value () const noexcept
 The wrapped integer value. More...
 

Detailed Description

Strong type for a CUDA device identifier.

Constructor & Destructor Documentation

◆ cuda_device_id()

constexpr rmm::cuda_device_id::cuda_device_id ( value_type  dev_id)
inlineexplicitconstexprnoexcept

Construct a cuda_device_id from the specified integer value.

Parameters
dev_idThe device's integer identifier

Member Function Documentation

◆ value()

constexpr value_type rmm::cuda_device_id::value ( ) const
inlineconstexprnoexcept

The wrapped integer value.

Returns
The wrapped integer value

The documentation for this struct was generated from the following file: