BTNC / distro-win

Torch installation in a self-contained folder for windows with msvc, and most changes have already been merged to torch/distro. However since torch is decommissioned in favor of pytorch, this repository is no longer maintained.
BSD 3-Clause "New" or "Revised" License
24 stars 4 forks source link

extreme slow to build #3

Open howard0su opened 8 years ago

howard0su commented 8 years ago

since nmake doesn't support parallel build, build is very slow especial building cuda projects.

One possible solution is integrating Ninja which has built-in support for parallel build in all platforms. this will also help reduce the needs to have the rockspec file explicit to specify cmake command in order to support parallel build. We can make luarocks to detect Ninja if it is there, we can -G "Ninja" instead. thoughts?

BTNC commented 8 years ago

Does Ninja work with nvcc? I do not see any announcement that it supports nvcc. IncrediBuild and FASTBuild support nvcc. I prefer not to use it if Ninja does not support nvcc. There could be an option to use the faster build system if found. I may not have time to investigate more about this. Please feel free to send your improvements.

howard0su commented 8 years ago

Actually ninja doesn't care. CMake will generate the command to do that. in short, i tested yesterday with cutorch, seems it works fine. but the change need happen inside luarocks. and there are more problems in torch's packaging system i'd like to address.

BTNC commented 8 years ago

👍 Cool, please feel free to detail problems or send PRs.