Main Content

cuBLAS

Enable use of cuBLAS library

Since R2020b

Model Configuration Pane: Code Generation / GPU Code

Description

The cuBLAS parameter specifies whether to replace math function calls with NVIDIA® cuBLAS library (Linear Algebra) calls.

Dependencies

  • This parameter requires a GPU Coder™ license.

  • To enable this parameter, select Generate GPU code on the Code Generation pane.

Settings

on (default) | off
On

Allows GPU Coder to replace appropriate math function calls with calls to the cuBLAS library. For functions that have no replacements in CUDA®, GPU Coder uses portable MATLAB® functions and attempts to map them to the GPU.

Off

Disable the use of the cuBLAS library in the generated code.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: GPUcuBLAS
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Version History

Introduced in R2020b