Skip to content

Commit 5057789

Browse files
committed
squelch warning about loading so, on Mac
1 parent dd2625e commit 5057789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nnWrapper.jinja2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ lua_State *luaInit() {
3535
// cout << "luaInit" << endl;
3636
void *hdl = dlopen("libPyTorchLua.so", RTLD_NOW | RTLD_GLOBAL);
3737
if(hdl == 0) {
38-
cout << "Failed to load libPyTorchLua.so, trying dylib..." << endl;
38+
//cout << "Failed to load libPyTorchLua.so, trying dylib..." << endl;
3939
hdl = dlopen("libPyTorchLua.dylib", RTLD_NOW | RTLD_GLOBAL);
4040
}
4141
if(hdl == 0) {
42-
cout << "Failed to load libPyTorchLua.dylib, fatal" << endl;
42+
cout << "Failed to load both libPyTorchLua.so and libPyTorchLua.dylib, fatal" << endl;
4343
cout << dlerror() << endl;
4444
throw runtime_error(string("Couldnt load liblua5.1.so or liblua.dylib") + dlerror());
4545
} else {

0 commit comments

Comments
 (0)