Explorar o código

Add more informative message for CUDA error

nagadomi %!s(int64=9) %!d(string=hai) anos
pai
achega
958dcfaeb8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = {}