Usage of GPU with MATLAB
2021/05/21 Created
GPU (NVIDIA TESLA V100 GPU) is equipped with csgs2 system. Computation using it is available.
How to compute using GPU with MATLAB is as follows.
Parallel Computing Toolbox
Parallel Computing Toolbox
GPU can be used with Parallel Computing Toolbox, one of MATLAB Toolboxes.
For example, data is sent on GPU by using gpuArray() function as follows.
N = 6;
M = magic(N);
G = gpuArray(M);
Executing function of G enables computation using GPU. Please refer to the following for a list of available functions.
In addition, please refer to the following for how to use GPU with Parallel Computing Toolbox.