Does ctest -j <jobs>, or ctest --parallel <jobs> behave differently?
http://www.cmake.org/cmake/help/v3.0/manual/ctest.1.html On Wed, Sep 3, 2014 at 2:31 PM, Michael Jackson <mike.jack...@bluequartz.net> wrote: > I am exploring CTest/CDash with out project and I was trying to figure out > how to have CTest use all my cores for builds. So far no luck with some > snippets from Google. So far I have the following in a file called > CTestConfig.cmake at the top level of my project. > > set(CTEST_PROJECT_NAME "DREAM3D") > set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC") > > set(CTEST_DROP_METHOD "http") > set(CTEST_DROP_SITE "my.cdash.org") > set(CTEST_DROP_LOCATION "/submit.php?project=DREAM3D") > set(CTEST_DROP_SITE_CDASH TRUE) > > # Use multiple CPU cores to build > include(ProcessorCount) > ProcessorCount(N) > if(NOT N EQUAL 0) > if(NOT WIN32) > set(CTEST_BUILD_FLAGS "-j${N}") > endif(NOT WIN32) > set(ctest_test_args ${ctest_test_args} PARALLEL_LEVEL ${N}) > > endif() > > > And then I execute CTest like this from my terminal > > ctest -D Experimental > > > but monitoring my processors says that only a single processor is being used. > > Thanks for any help > > --- > Mike Jackson www.bluequartz.net > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake