From 958dcfaeb8dfd3c71df65282168b211f745ff970 Mon Sep 17 00:00:00 2001 From: nagadomi Date: Fri, 6 May 2016 21:48:53 +0900 Subject: [PATCH] Add more informative message for CUDA error --- lib/w2nn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/w2nn.lua b/lib/w2nn.lua index d6ea141..3d1043c 100644 --- a/lib/w2nn.lua +++ b/lib/w2nn.lua @@ -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 = {}