Clear Filters
Clear Filters

How to solve following CUDA error "matconvnet"?

1 view (last 30 days)
cnn_train_dag_dcgan: resetting GPU
Error using gpuDevice (line 26)
An unexpected error occurred during CUDA execution. The CUDA error was:
CUDA_ERROR_UNKNOWN
Error in cnn_train_dag_dcgan>prepareGPUs (line 516)
gpuDevice(opts.gpus)
Error in cnn_train_dag_dcgan (line 90
prepareGPUs(opts, epoch == start+1) ;
Error in get_train_DCGAN (line 130)
[net, info] = cnn_train_dag_dcgan(net, imdb, @getBatchHdd, opts.train, ...
Error in main_start_dcgan (line 57)
get_train_DCGAN(opts.train);

Answers (1)

Joss Knight
Joss Knight on 14 Mar 2018
Unknown CUDA errors like this are nearly always due to a kernel timeout. If you have a graphics card that is driving your display, and are on Windows, you should disable kernel timeouts by setting the TdrLevel registry key to 0. See https://docs.microsoft.com/en-us/windows-hardware/drivers/display/tdr-registry-keys

Tags

Community Treasure Hunt

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

Start Hunting!