Matlab Freezes when changing gpu using gpuDevice
Show older comments
For the past few days I've been struggling to get Matlab to work with my GPU. As soon as I switch to Tesla K80 GPU from GTX 970, Matlab freezes completely. I would have to force-shut it down. This happened after Windows 10 updated a few days ago. Everything was working fine before that.
I had Matlab 2015b, which worked until a few days ago. Now, I have Matlab 2016b, and the latest updates of GPU drivers. It still doesn't work.
Can someone help please?
MQ
1 Comment
Joss Knight
on 3 Oct 2016
What platform are you running on? Where is your K80 located? What is the output of nvidia-smi on the command line?
Answers (1)
Cliff
on 27 Jul 2017
I encountered a similar issue. Issuing the command gpuDevice keeps Matlab freezing. The Task Manager shows Matlab is running. My system is Windows 10 on Asus Z270-A with i7-7700K 32GB ram, using Matlab 2015a and 2017a. I have an nvidia K40 located on the first slot of the pci-e. Display uses the GPU of i7-7700K.
My nvidia-smi listing is as follow:
_
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 376.51 Driver Version: 376.51 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla K40m TCC | 0000:01:00.0 Off | 0 |
| N/A 30C P8 20W / 235W | 1MiB / 11447MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 6820 C ... Files\MATLAB\R2017a\bin\win64\MATLAB.exe 1MiB |
+-----------------------------------------------------------------------------+
P.S.: The Matlab can run the K40m okay if I switch the operating system to Ubuntu 16.06.
Categories
Find more on GPU Computing in MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!