Function flamegpu::detail::compute_capability::checkComputeCapability

Function Documentation

bool flamegpu::detail::compute_capability::checkComputeCapability(int deviceIndex)

Check that the current executable has been built with a low enough compute capability for the current device. This assumes JIT support is enabled for future (major) architectures. If CUDA_ARCH_LIST could not be used to extract a minimum compiled architecture, no decision can be made so it is assumed to be successful. If a or f post-fixed architectures are used, this check may also be insufficient for forwards compatibilty, but this requires an SM >= 100 device to test this on.

Parameters:

deviceIndex – the index of the device to be checked.

Returns:

boolean indicating if the executable can run on the specified device.