How can I view available GPUs and perform GPU benchmark tests in MATLAB?

35 views (last 30 days)
I am using MATLAB and want to know which GPU device on my computer is available for use within MATLAB? I would also like to perform benchmark tests to compare the performance of the GPU device available on my computer with other GPU devices in the market.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 13 Oct 2022
Edited: MathWorks Support Team on 13 Oct 2022
Perform the following steps to identify the GPU devices available on a computer running MATLAB:
1) Execute the following command in the MATLAB Command Window:
>> d = gpuDevice
2) This will return a list of attributes of the GPU device available on the system. An important thing to note is the value of the "ComputeCapability"  attribute.
3) MATLAB (R2019a) supports CUDA-Enabled NVIDIA GPU devices with Compute Capability of 3 and above. For more information about this please visit the following link:
4) In case you have multiple GPU devices available on the system running MATLAB, the following link can help you identify and select a device for use with MATLAB:
In order to perform benchmark tests to compare the performance of the GPU device available on your computer with other GPU devices in the market do the following:
1)  Use the following link to download the GPUBench app:
2) This will download the "GPUBench_v1.11.zip" file on your computer.
3) Unzip the file and execute the "gpuBench.mlappinstall" file. This will install the GPU Bench app in MATLAB.
4) Once installed, execute the following command in the MATLAB Command Window to execute the GPUBench app:
>> gpuBench
5) Alternatively, you can navigate to the "APPS" tab in MATLAB and search for the "gpuBench" app.and click on the "gpuBench" App icon.
6) This will execute benchmark tests and generate a detailed report comparing the performance of the GPU available on the computer with other GPU devices in the market.
NOTE: The GPUBench app requires the Parallel Computing Toolbox and running these benchmarks can take several minutes during which the computer may become unresponsive.

More Answers (0)

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!