Skip to content

Commit

Permalink
remove exception handling for cunn
Browse files Browse the repository at this point in the history
  • Loading branch information
nagadomi committed Aug 5, 2015
1 parent dcd43b8 commit 2ffa932
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions lib/portable.lua
Original file line number Diff line number Diff line change
@@ -1,16 +1,2 @@
require 'nn'

local function load_cuda()
require 'cunn'
end
if pcall(load_cuda) then
require 'cunn'
else
--[[ TODO: fakecuda does not work.
io.stderr:write("use FakeCUDA; if you have NVIDIA GPU, Please install cutorch and cunn. FakeCuda will be extremely slow.\n")
require 'torch'
require 'nn'
require('fakecuda').init(true)
--]]
end
require 'cunn'

0 comments on commit 2ffa932

Please sign in to comment.