Re: [eigen] Help to compile/run unit tests for next 3.3.5 release

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


I finally noticed that cmake was using the 32-bit cross compiler for 64-bit for some reason even though I explicitly started the x64 Native Tools Command Prompt. And then it looked like even using /MP4 didn't actually parallelize the build because we're mostly building just 1 file per test executable.

Instead of trying to figure out how to get ctest to invoke msbuild with the right parallelization option, I just went with the ninja generator instead. eg.
- Ensure ninja.exe is in the PATH (https://ninja-build.org/)
- cd eigen-3.3
- mkdir build
- cd build
- cmake -G Ninja ..
- ctest -D Experimental -j

That built in a few minutes(!) whereas before, I never managed to finish building the tests in over 7 hours. The Ninja generator detected to use the native x64 compiler (in the same command prompt window).

It's now been running about 2.5 hours and I'm test 285/772 now. So hopefully it'll finish running the benchmark in another few hours.

-Edward

On 12/16/2017 7:15 PM, Bill Greene wrote:
I am also running the tests on 64-bit VS2017. My system is significantly slower than yours and it took
over 16 hours to complete the tests.

On Sat, Dec 16, 2017 at 4:21 PM, Edward Lam <edward@xxxxxxxxxx <mailto:edward@xxxxxxxxxx>> wrote:

    It's doesn't seem to be work for me on VS2017 though. I let it run for over
    7 hours and it still hasn't finished on my i7-6850K 4.6 GHz with 64 MB of
    RAM, 6 cores, 12 threads on Windows 7. I've attached my build log, which was
    invoked from the native 64-bit VS2017 cmd shell and generated using the
    windows versino of cmake 3.7.2.

    -Edward

    On 12/15/2017 11:59 AM, Gael Guennebaud wrote:



        On Fri, Dec 15, 2017 at 9:54 AM, Gael Guennebaud
        <gael.guennebaud@xxxxxxxxx <mailto:gael.guennebaud@xxxxxxxxx>
        <mailto:gael.guennebaud@xxxxxxxxx <mailto:gael.guennebaud@xxxxxxxxx>>>
        wrote:

             [...]
             ctest -C Release -D Experimental


        there is small issue, the last line should be:

        ctest -D Experimental

        For the record, the build is green for msvc 11 (2012), it would still be
        welcome to get feedback for MSVC 2015 and 2017.

        gael







Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/