1
0
Fork 0
mirror of synced 2024-06-27 02:30:34 +12:00

Add more informative message for CUDA error

This commit is contained in:
nagadomi 2016-05-06 21:48:53 +09:00
parent 5bfe504de1
commit 958dcfaeb8

View file

@ -15,7 +15,7 @@ if w2nn then
else
local state, ret = pcall(load_cunn)
if not state then
error("Failed to load CUDA modules. Please check the CUDA Settings.")
error("Failed to load CUDA modules. Please check the CUDA Settings.\n---\n" .. ret)
end
pcall(load_cudnn)
w2nn = {}