Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/soumith/cudnn.torch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Zagoruyko <zagoruyko2@gmail.com>2016-03-30 23:39:25 +0300
committerSergey Zagoruyko <zagoruyko2@gmail.com>2016-03-30 23:39:25 +0300
commitbb2adfe9986b5e3cc0e30a21f27146a9f5a9cdc0 (patch)
tree448df4d0d7d5d2663de776d93ed409a7ebb3e6e6
parentc1b9af7efa559607c1801f24e83b7f1c27c31533 (diff)
print function called on error
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 4105e34..a4755f2 100644
--- a/init.lua
+++ b/init.lua
@@ -55,7 +55,7 @@ local errcheck = function(f, ...)
local status = C[f](...)
if status ~= ffi.C.CUDNN_STATUS_SUCCESS then
local str = ffi.string(C.cudnnGetErrorString(status))
- error('Error in CuDNN: ' .. str)
+ error('Error in CuDNN: ' .. str .. ' ('..f..')')
end
end
cudnn.errcheck = errcheck