SmVersion#

inline cudaError_t cub::SmVersion(
int &sm_version,
int device = CurrentDevice(),
)#

Retrieves the SM version (i.e.

compute capability) of device (major * 100 + minor * 10).

Note

This function may cache the result internally.

Note

This function is thread safe.