Skip to main content

cuestSetComputeCapabilityTarget

Function cuestSetComputeCapabilityTarget 

Source
pub unsafe fn cuestSetComputeCapabilityTarget(
    handle: cuestHandle_t,
    targetMajorVersion: u32,
    targetMinorVersion: u32,
) -> cuestStatus_t
Expand description

@brief Sets the compute capability used in heuristics to determine the most performant code path. @ingroup Context

@param[in,out] handle Opaque cuEST handle (must not be NULL). @param[in] targetMajorVersion Compute capability target major version. @param[in] targetMinorVersion Compute capability target minor version.

Notes:

  • Manually setting the compute capability target is not recommended for production calculations. This option is intended only to compare numerical performance of the same algorithm on different architectures.
  • Not all algorithms may be available on all architectures. Changing the compute capability target may result in exceptions during subsequent calls to cuEST.
  • The compute capability target only affects heuristics. It does not affect kernel execution or JIT compilation.

@return

  • \c CUEST_STATUS_SUCCESS on success,
  • \c CUEST_STATUS_INVALID_HANDLE if handle is NULL,
  • \c CUEST_STATUS_INVALID_TYPE if handle is not of the \c cuestHandle_t type,
  • \c CUEST_STATUS_EXCEPTION or \c CUEST_STATUS_UNKNOWN_ERROR otherwise.