Function util::compute_capability::checkComputeCapability

Function Documentation

bool util::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 flag MIN_ARCH was not specified, no decision can be made so it is assumed to be successful.


deviceIndex – the index of the device to be checked.


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