Question on GPU Computing

I'm running a low end ASUS GeForce GT 710 graphics card as a secondary card (I have a higher end AMD card that is not supported on MATLAB's platform). I wanted to know if there is any way to completely dedicate this card solely for GPU computing. My sense is that I get CUDA_ERROR_LAUNCH_FAILED and other TDR errors because the operating system wants to dedicate some of the card's resources for displays (although no display is connected to the card). I tried running the parallel computing demo and reached this error:
An unexpected error occurred during CUDA execution. The CUDA
error was:
unspecified launch failure
Error in parallel.internal.gpu.timeit
Error in gputimeit (line 66)
t = parallel.internal.gpu.timeit(f, num_outputs);
Error in paralleldemo_gpu_benchmark (line 170)
mmTimesGPU(ii) = gputimeit(@() A*B);

Answers (1)

Matt J
Matt J on 20 Sep 2020
Edited: Matt J on 20 Sep 2020
Make sure you have updated drivers and make sure you restart your computer after their installation. Then use gpuDevice() to select the card you want Matlab to use.

3 Comments

Had everything to do with the video card settings and nothing to do with MATLAB. I'm actually glad that I have an AMD main card that operates independent of NVIDIA/CUDA settings, because its TDR settings remain unchanged after my slight modification. For others that have a similar issue, you need to download the Nsight program from NVIDIA. Once that is installed, you alter the graphics card by opening Nsight as an administratror (you right click on the program's icon in a folder, not the start tray in windows) and turn off the TDR so that the GPU driver never restarts. It'ssafe to do this if you are dedicating your card to computations and it is not used for actual graphics, although it might be safe otherwise.
Matt J
Matt J on 21 Sep 2020
Edited: Matt J on 21 Sep 2020
I'm not sure why you would need Nsight to do that. The TDR parameters can be set through the Windows registry.
I think you are right, but alas I am not sure how to do this. I suppose expediency played a role here. I feel a little more secure knowing that the NVIDIA options don't affect my AMD card, or at least that's what I tell myself...

Sign in to comment.

Categories

Find more on Get Started with GPU Coder in Help Center and File Exchange

Asked:

on 20 Sep 2020

Commented:

on 21 Sep 2020

Community Treasure Hunt

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

Start Hunting!