Prechádzať zdrojové kódy

Add more informative message for CUDA error

nagadomi 9 rokov pred
rodič
commit
958dcfaeb8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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 = {}