File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments