CudaArch

struct CudaArch

Represent the architecture of a CUDA-capable device. The architecture is represented using two numbers: the major and the minor version. For example, sm_82 has major version “8” and minor version “2”.

Public Functions

inline CudaArch(int major, int minor)

Create new CudaArch object from major and minor version

inline CudaArch(int version)

Create new CudaArch object from compound version number (such as 82)

inline int get() const

Returns the compund version (for example, 82 for version 8.2)

inline int major() const

Return the major version.

inline int minor() const

Return the minor version.