message: Test making the build jobs parallel only when not building HIP.
diff: @@ -116,6 +116,13 @@ if(NOT CTEST_MEMORYCHECK_TYPE STREQUAL "Valgrind")
  set(CTEST_MEMORYCHECK_SANITIZER_OPTIONS "verbosity=1")
  endif()
  +
  +ctest_start("${CTEST_TEST_MODEL}")
  +ctest_submit(PARTS Start)
  +
  +if(CTEST_MEMORYCHECK_TYPE STREQUAL "AddressSanitizer" OR CTEST_MEMORYCHECK_TYPE STREQUAL "ThreadSanitizer")
  + set(GINKGO_CONFIGURE_OPTIONS "-DGINKGO_BUILD_REFERENCE=ON;-DGINKGO_BUILD_OMP=ON;-DCMAKE_BUILD_TYPE=${CTEST_BUILD_CONFIGURATION}")
  +
  include(ProcessorCount)
  ProcessorCount(PROC_COUNT)
  if(NOT PROC_COUNT EQUAL 0)
  @@ -126,12 +133,6 @@ if(NOT PROC_COUNT EQUAL 0)
  set(CTEST_BUILD_FLAGS "-j${PROC_COUNT}")
  endif(NOT WIN32)
  endif()
  -
  -ctest_start("${CTEST_TEST_MODEL}")
  -ctest_submit(PARTS Start)
  -
  -if(CTEST_MEMORYCHECK_TYPE STREQUAL "AddressSanitizer" OR CTEST_MEMORYCHECK_TYPE STREQUAL "ThreadSanitizer")
  - set(GINKGO_CONFIGURE_OPTIONS "-DGINKGO_BUILD_REFERENCE=ON;-DGINKGO_BUILD_OMP=ON;-DCMAKE_BUILD_TYPE=${CTEST_BUILD_CONFIGURATION}")
  else()
  set(GINKGO_CONFIGURE_OPTIONS "-DGINKGO_BUILD_REFERENCE=ON;-DGINKGO_BUILD_OMP=ON;-DGINKGO_BUILD_CUDA=ON;-DGINKGO_BUILD_HIP=ON;-DCMAKE_BUILD_TYPE=${CTEST_BUILD_CONFIGURATION}")
  endif()
  @@ -141,9 +142,9 @@ ctest_submit(PARTS Configure)
  ctest_read_custom_files( ${CTEST_BINARY_DIRECTORY} )
  if (DEFINED GINKGO_SONARQUBE_TEST)
  - set(CTEST_BUILD_COMMAND "build-wrapper-linux-x86-64 --out-dir bw-output make -j${PROC_COUNT}")
  + set(CTEST_BUILD_COMMAND "build-wrapper-linux-x86-64 --out-dir bw-output make")
  endif()
  -ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" APPEND QUIET)
  +ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" APPEND CAPTURE_CMAKE_ERROR FIRST_BUILD)
  ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" APPEND)
  ctest_submit(PARTS Build)
  