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 the compile time macro FLAMEGPU_MIN_CUDA_ARCH was not specified or incorrectly detected, no decision can be made so it is assumed to be successful.

Parameters:

deviceIndex – the index of the device to be checked.

Returns:

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