瀏覽代碼

Add more informative message for CUDA error

nagadomi 9 年之前
父節點
當前提交
958dcfaeb8
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 = {}