cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
cuda::device::compute_architecture_t Struct Reference

A numeric designator of an architectural generation of CUDA devices. More...

#include <device_properties.hpp>

Public Member Functions

const char * name () const
 
constexpr bool is_valid () const noexcept
 

Public Attributes

unsigned major
 A compute_capability_t has a "major" and a "minor" number, with "major" indicating the architecture; so this struct only has a "major" number.
 

Detailed Description

A numeric designator of an architectural generation of CUDA devices.

Note
See this listing of nVIDIA GPU microarchitectures; cf. compute_capability_t .

Member Function Documentation

◆ is_valid()

constexpr bool cuda::device::compute_architecture_t::is_valid ( ) const
noexcept
Returns
true if major is indeed a number of a known/recognized NVIDIA GPU microarchitecture.

◆ name()

const char* cuda::device::compute_architecture_t::name ( ) const
Returns
the name NVIDIA has given this microarchitecture
Note
NVIDIA names their microarchitecture after famous scientists like "Tesla", "Pascal" etc.

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