Function flamegpu::detail::compute_capability::minimumCompiledComputeCapability

Function Documentation

int flamegpu::detail::compute_capability::minimumCompiledComputeCapability()

Get the minimum compute capability which this file was compiled for.

Extracts the first element from __CUDA_ARCH_LIST__ which is an ordered list of integer architectures passed to nvcc, with the 0th value being the lowest.

CUDA_ARCH_LIST values are 3 or 4 digits long, with SM_80 becoming 800, or SM_103 becoming 1030, so they are scaled back down to match SM_ notation.

Returns:

the minimum compute capability from CUDA_ARCH_LIST as a 2+ digit integer, i.e. 80 for SM_80, or 0 if CUDA_ARCH_LIST was undefined