[cmake-developers] Broken progress output with make -jXX (aka parallel make)

Adam Strzelecki ono at java.pl
Fri Jun 27 16:32:13 EDT 2014


Excuse me if it was discussed already, reported, etc. Even it doesn't affect me anyway since I use Ninja, but some of my colleagues still use Make and do parallel builds and fancy output is produced: (now some HTML format ;P)

[  5%] [ 15%] [ 21%] [ 26%] [ 26%] Building CXX object CMakeFiles/2d_xy_reconstruction.dir/src/2d_xy/reconstruction_cmd.cpp.o
[ 31%] Building CXX object CMakeFiles/2d_strip_phantom.dir/src/util/cmdline_hooks.cpp.o
Building CXX object CMakeFiles/2d_strip_phantom.dir/src/util/png_writer.cpp.o
Building CXX object CMakeFiles/2d_xy_reconstruction.dir/src/util/png_writer.cpp.o
Building CXX object CMakeFiles/2d_strip_phantom.dir/src/2d_strip/phantom_cmd.cpp.o
[ 42%] [ 42%] [ 47%] Building CXX object CMakeFiles/2d_xy_reconstruction.dir/src/util/cmdline_hooks.cpp.o
Building NVCC (Device) object CMakeFiles/cuda_compile.dir/src/2d_strip/cuda/./cuda_compile_generated_reconstruction_strip_gpu.cu.o
Building NVCC (Device) object CMakeFiles/cuda_compile.dir/src/2d_xy/cuda/./cuda_compile_generated_phantom_kernel.cu.o
Building NVCC (Device) object CMakeFiles/cuda_compile.dir/src/2d_xy/cuda/./cuda_compile_generated_matrix_kernel.cu.o
Linking CXX executable 2d_xy_reconstruction

As you probably notice percentage is decoupled by rest of status line.

This is probably due percentage output is done by separate echo command and it gets mixed with other threads. I presume emitting percents and rest of status line would fix that.

--Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140627/8d304ad3/attachment.html>


More information about the cmake-developers mailing list