Monday, October 31, 2016

UETorch and the moving target that is Machine Learning platforms

LeCun's group released UETorch, an Unreal Egine plugin, as virtual learning platform which will play a role in our investigations as well. However, as it usually happens the world changed in between, with Ubuntu 16.04, Cuda 8 and even mono repackaged. Some magic was required:

1) added #define LUA_PATHSEP ";" to paths.c - yes, unbelievable
2) added set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES") to the CMakeLists.txt files of cutorch, cunn and cunnx
3) sudo apt-get install mono-reference-assemblies-4.0 mono-devel
Then edit the file that is inside the directory:
Delete the line that mentions 'libmono-corlib4.0-cil', and then rerun the normal at the root of the folder.

Still, some .h files seemed to be missing in the source tree, which I located and copied on my system:
cd UnrealEngine/Engine/Plugins/ScriptPlugin/Source/ScriptPlugin/Private
cp /torch/exe/luajit-rocks/lua-5.2/src/lua.h .
locate luaconf.h
cp /moai-dev/3rdparty/lua-5.2.2/src/luaconf.h .
locate lauxlib.h
cp /torch/exe/luajit-rocks/lua-5.2/src/lauxlib.h .
cp /home/zat/torch/exe/luajit-rocks/lua-5.2/src/lualib.h .

No comments:

Post a Comment