Minimum compute capability - Minimum compute capability for code generation - MATLAB (original) (raw)

Main Content

Minimum compute capability for code generation

Description

App Configuration Pane: GPU Code

Configuration Objects: coder.gpuConfig

The Minimum compute capability parameter specifies the minimum compute capability for which CUDA® code is generated. CUDA compute capability is the numerical representation of the capabilities and features provided by a GPU architecture for executing CUDA code. The compute capability version is denoted by a major and minor version number and determines the available hardware features, instruction sets, memory capabilities, and other GPU-specific functionalities that CUDA programs can use. It also affects the compatibility and performance of CUDA code on different GPUs.

For example, a GPU with a compute capability of 7.0 has more features and capabilities than a GPU with a compute capability of 3.2. Newer compute capabilities generally introduce enhancements, improved performance, and additional features. Certain CUDA features may have specific compute capability requirements.

This table lists the CUDA compute capability requirements for code generation.

Target Compute Capability
CUDA MEX See GPU Computing Requirements.
Source code, static or dynamic library, and executables 3.2 or higher.
Deep learning applications in 8-bit integer precision 6.1, 6.3 or higher.
Deep learning applications in half-precision (16-bit floating point) 5.3, 6.0, 6.2 or higher.

Note

If you specify the Custom compute capability parameter, GPU Coder™ ignores this setting and uses the custom compute capability.

Settings

Auto

This setting is the default setting.

Uses the compute capability of the GPU device that you select for GPU code generation. If no GPU device is available, the code generator uses a compute capability value of 5.0.

3.2 | 3.5 |3.7 | 5.0 |5.2 | 5.3 |6.0 | 6.1 |6.2 | 7.0 |7.2 | 7.5 |8.0 | 8.6 |8.7 | 8.9 |9.0

Uses the specified compute capability.

Programmatic Use

**Property:**ComputeCapability
Values: "Auto" |"3.2" "3.5" "3.7" "5.0" "5.2" "5.3" "6.0" "6.1" "6.2" "7.0" "7.2" "7.5" "8.0" "8.6" "8.7""8.9" "9.0"
Default: "Auto"

Version History

Introduced in R2018a