CUDA device compute capability. More...
#include <ComputeCapability.h>
Public Member Functions | |
constexpr | ComputeCapability (int major, int minor) |
Construct a new ComputeCapability object. More... | |
operator std::string () const | |
Public Attributes | |
int | major |
Major compute version. | |
int | minor |
Minor compute version. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, ComputeCapability cc) |
constexpr bool | operator== (ComputeCapability lhs, ComputeCapability rhs) noexcept |
constexpr bool | operator!= (ComputeCapability lhs, ComputeCapability rhs) noexcept |
constexpr bool | operator< (ComputeCapability lhs, ComputeCapability rhs) noexcept |
constexpr bool | operator> (ComputeCapability lhs, ComputeCapability rhs) noexcept |
constexpr bool | operator<= (ComputeCapability lhs, ComputeCapability rhs) noexcept |
constexpr bool | operator>= (ComputeCapability lhs, ComputeCapability rhs) noexcept |
CUDA device compute capability.
ComputeCapability identifies a CUDA device's architecture generation and feature compatibility.
|
inline |
Construct a new ComputeCapability object.
[in] | major | Major compute version |
[in] | minor | Minor compute version |