このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
GPU index
GPU device selection in a multi GPU environment
モデル コンフィギュレーション ペイン: Code Generation / GPU Code
Description
Specify the CUDA® device to target.
The GPU index parameter specifies the CUDA device to target in a multi GPU environment such as NVIDIA® Drive.
メモ
GPU index can be used with gpuArray only if gpuDevice and GPU index point to the same GPU. If gpuDevice points to a different GPU, a CUDA_ERROR_INVALID_VALUE runtime error is thrown.
Dependencies
This parameter requires a GPU Coder™ license.
To enable this parameter, select Generate GPU code on the Code Generation pane.
Settings
-1 (既定値) | integer
If the GPU index parameter is set to -1, the software selects the default CUDA device.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter: GPUDeviceID |
| Type: integer |
Value: -1 or a valid user-specified index value |
Default: -1 |
バージョン履歴
R2020b で導入