Browse Source

Add more informative message for CUDA error

nagadomi 9 years ago
parent
commit
958dcfaeb8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/w2nn.lua

+ 1 - 1
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 = {}