Skip to content

Commit 31f0ccf

Browse files
committed
squelch warning on mac
1 parent 5057789 commit 31f0ccf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nnWrapper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ lua_State *luaInit() {
2929
// cout << "luaInit" << endl;
3030
void *hdl = dlopen("libPyTorchLua.so", RTLD_NOW | RTLD_GLOBAL);
3131
if(hdl == 0) {
32-
cout << "Failed to load libPyTorchLua.so, trying dylib..." << endl;
32+
//cout << "Failed to load libPyTorchLua.so, trying dylib..." << endl;
3333
hdl = dlopen("libPyTorchLua.dylib", RTLD_NOW | RTLD_GLOBAL);
3434
}
3535
if(hdl == 0) {
36-
cout << "Failed to load libPyTorchLua.dylib, fatal" << endl;
36+
cout << "Failed to load both libPyTorchLua.so and libPyTorchLua.dylib, fatal" << endl;
3737
cout << dlerror() << endl;
3838
throw runtime_error(string("Couldnt load liblua5.1.so or liblua.dylib") + dlerror());
3939
} else {
4040
//// cout << "loaded lua library" << endl;
4141
}
42-
dlopen("/home/ubuntu/torch/install/lib/lua/5.1/libpaths.so", RTLD_NOW | RTLD_GLOBAL);
42+
void *err = dlopen("/home/ubuntu/torch/install/lib/lua/5.1/libpaths.so", RTLD_NOW | RTLD_GLOBAL);
4343
// cout << "err " << (long)err << endl;
4444

4545
#endif

0 commit comments

Comments
 (0)