PtxVersion#

Overloads#

PtxVersion(ptx_version, device)#

inline cudaError_t cub::PtxVersion(int &ptx_version, int device)

Retrieves the PTX virtual architecture that will be used on device (major * 100 + minor * 10).

If CUDA_ARCH_LIST is defined, this value is one of CUDA_ARCH_LIST.

Note

This function may cache the result internally.

Note

This function is thread safe.

PtxVersion(ptx_version)#

inline cudaError_t cub::PtxVersion(int &ptx_version)

Retrieves the PTX virtual architecture that will be used on the current device (major * 100 + minor * 10).

Note

This function may cache the result internally.

Note

This function is thread safe.