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

github.com/torch/cunn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Köpf <andreas.koepf@xamla.com>2015-12-17 12:25:30 +0300
committersoumith <soumith@gmail.com>2015-12-30 00:41:20 +0300
commit71ca3385f5767ff65bb59f2b08eec281deb3a6d8 (patch)
tree3e1cc9a50f283416b3a0d32572e2173d6df7ccb9 /THCUNN.lua
parentece0d546b41dd3f2cb89b776cba444dc1ffe9319 (diff)
Remove special handing for OSX search path
Diffstat (limited to 'THCUNN.lua')
-rw-r--r--THCUNN.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/THCUNN.lua b/THCUNN.lua
index 2e48e8b..942dec0 100644
--- a/THCUNN.lua
+++ b/THCUNN.lua
@@ -4,9 +4,7 @@ local THNN = require 'nn.THNN'
local THCUNN = {}
-- load libTHCUNN
-local cpath = package.cpath
-if ffi.os == 'OSX' then cpath = string.gsub(package.cpath, '%?%.so;', '?.dylib;') end
-THCUNN.C = ffi.load(package.searchpath('libTHCUNN', cpath))
+THCUNN.C = ffi.load(package.searchpath('libTHCUNN', package.cpath))
local THCState_ptr = ffi.typeof('THCState*')