Commit 777df341 authored by Doak, Peter W.'s avatar Doak, Peter W.
Browse files

All tests must pass on summit, those that cannot should not be added

parent f4c49893
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,5 +22,5 @@ dca_add_gtest(mpi_concurrency_test
  MPI MPI_NUMPROC 4
  LIBS parallel_mpi_concurrency)
dca_add_gtest(mpi_gather_test
  MPI MPI_NUMPROC 8
  MPI MPI_NUMPROC 6
  LIBS parallel_mpi_concurrency function)
+4 −2
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
//
// This file tests mpi_collective_sum.hpp.
//
// This test only passes for 8 MPI processes.
// This test only passes for 6 MPI processes.

#include "dca/parallel/mpi_concurrency/mpi_gather.hpp"

@@ -43,7 +43,7 @@ TEST(MPIGatherTest, GatherLocalDmn) {
    val2[i] = i;
  Dmn2::set_elements(val2);

  dca::parallel::MPIGang gang(*concurrency, 4);
  dca::parallel::MPIGang gang(*concurrency, 3);

  LocalDmn::initialize(gang);

@@ -76,5 +76,7 @@ int main(int argc, char** argv) {

  result = RUN_ALL_TESTS();
  
  concurrency.reset();

  return result;
}
+8 −1
Original line number Diff line number Diff line
# thread pool unit tests

dca_add_gtest(thread_pool_test GTEST_MAIN LIBS parallel_stdthread)

EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )

# temporary fix, we need some platform and compiler awareness at a highler level in our cmake
# this test also depends on GNU compiler extensions, something like hwloc should be used.
IF(NOT (${ARCHITECTURE} STREQUAL "ppc64le"))
  dca_add_gtest(affinity_test GTEST_MAIN LIBS parallel_stdthread)
ENDIF()