How to solve following CUDA error "matconvnet"?

1 次查看(过去 30 天)
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);

回答(1 个)

Joss Knight
Joss Knight 2018-3-14
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

类别

Help CenterFile Exchange 中查找有关 GPU Computing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by