On Sunday 17 June 2012, Thomas Sondergaard wrote: > Hi, > > I've tested the new automoc feature and it certainly makes the > developers life simpler and the CMakeLists.txt a lot simpler. Thanks for > that, it is a great improvement. > > On Windows with MSVC 2010 Generator, moc seems to be very slow and it is > a paint to see it run sequentially. Could automoc be taught to do this > in parallel using all the cores on the machine?
is "certainly" good enough as an answer ? ;-) The thing is, for each target there is an accompanying automoc target. So if you have 4 cores, and 4 targets are built in parallel, then also 4 (auto)mocs should be running in parallel. If you have only 1 target, consisting of many files, only 1 automoc target will be executed, processing one moc after the other. Parallelizing this is not obvious. Simply running as many mocs on a machine as it has cores might lead to 16 mocs running on 4 cores (for 4 different targets). So, it is possible, it is some implementation work, and I'm not clear on how to do the logic. Do you have some ideas how to do this in a good way ? Alex
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
