Skip to content

Commit d79d70c

Browse files
authored
Merge branch 'master' into add-hpclinux-installer
2 parents 4998bd6 + 12c5d5f commit d79d70c

File tree

3 files changed

+223
-61
lines changed

3 files changed

+223
-61
lines changed

CMakeLists.txt

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ set_property ( CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYP
99
# Add option and check environment to determine if developer tests should be run
1010
if($ENV{OPENCOARRAYS_DEVELOPER})
1111
option(CAF_RUN_DEVELOPER_TESTS "Run tests intended only for developers" ON)
12-
message( STATUS "OpenCoarrays developer tests turned on")
1312
else()
1413
option(CAF_RUN_DEVELOPER_TESTS "Run tests intended only for developers" OFF)
1514
endif()
@@ -528,24 +527,21 @@ set(tests_root ${CMAKE_CURRENT_BINARY_DIR}/src/tests)
528527

529528

530529
if(opencoarrays_aware_compiler)
530+
if (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER})
531+
message ( STATUS "Running Developer tests is enabled." )
532+
endif()
531533
# Unit tests targeting each libcaf_mpi function, argument, and branch of code
532534
add_mpi_test(initialize_mpi 2 ${tests_root}/unit/init_register/initialize_mpi)
533535
add_mpi_test(register 2 ${tests_root}/unit/init_register/register)
534536
add_mpi_test(register_vector 2 ${tests_root}/unit/init_register/register_vector)
535537
add_mpi_test(register_alloc_vector 2 ${tests_root}/unit/init_register/register_alloc_vector)
536538
add_mpi_test(allocate_as_barrier 2 ${tests_root}/unit/init_register/allocate_as_barrier)
537-
add_mpi_test(allocate_as_barrier_proc 32 ${tests_root}/unit/init_register/allocate_as_barrier_proc)
539+
add_mpi_test(allocate_as_barrier_proc 8 ${tests_root}/unit/init_register/allocate_as_barrier_proc)
538540
if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7))
539541
add_mpi_test(register_alloc_comp_1 2 ${tests_root}/unit/init_register/register_alloc_comp_1)
540542
add_mpi_test(register_alloc_comp_2 2 ${tests_root}/unit/init_register/register_alloc_comp_2)
541543
add_mpi_test(register_alloc_comp_3 2 ${tests_root}/unit/init_register/register_alloc_comp_3)
542-
if (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER})
543-
message ( STATUS "Running Developer tests is enabled." )
544-
add_mpi_test(async_comp_alloc 6 ${tests_root}/unit/init_register/async_comp_alloc)
545-
# Timeout async_comp_alloc test after 3 seconds to progess past the known failure
546-
set_property(TEST async_comp_alloc PROPERTY TIMEOUT_AFTER_MATCH 3 "known failure")
547-
set_property(TEST async_comp_alloc PROPERTY TIMEOUT 6) # in the event old CMake is being used
548-
endif()
544+
add_mpi_test(async_comp_alloc 6 ${tests_root}/unit/init_register/async_comp_alloc)
549545
endif()
550546
add_mpi_test(get_array 2 ${tests_root}/unit/send-get/get_array)
551547
add_mpi_test(get_self 2 ${tests_root}/unit/send-get/get_self)
@@ -558,16 +554,16 @@ if(opencoarrays_aware_compiler)
558554
add_mpi_test(co_broadcast 4 ${tests_root}/unit/collectives/co_broadcast_test)
559555
add_mpi_test(co_min 4 ${tests_root}/unit/collectives/co_min_test)
560556
add_mpi_test(co_max 4 ${tests_root}/unit/collectives/co_max_test)
561-
add_mpi_test(syncall 32 ${tests_root}/unit/sync/syncall)
562-
add_mpi_test(syncimages 32 ${tests_root}/unit/sync/syncimages)
563-
add_mpi_test(syncimages2 32 ${tests_root}/unit/sync/syncimages2)
557+
add_mpi_test(syncall 8 ${tests_root}/unit/sync/syncall)
558+
add_mpi_test(syncimages 8 ${tests_root}/unit/sync/syncimages)
559+
add_mpi_test(syncimages2 8 ${tests_root}/unit/sync/syncimages2)
564560
add_mpi_test(duplicate_syncimages 8 ${tests_root}/unit/sync/duplicate_syncimages)
565561
add_mpi_test(co_reduce 4 ${tests_root}/unit/collectives/co_reduce_test)
566562
add_mpi_test(co_reduce_res_im 4 ${tests_root}/unit/collectives/co_reduce_res_im)
567-
add_mpi_test(syncimages_status 32 ${tests_root}/unit/sync/syncimages_status)
563+
add_mpi_test(syncimages_status 8 ${tests_root}/unit/sync/syncimages_status)
568564
add_mpi_test(sync_ring_abort_np3 3 ${tests_root}/unit/sync/sync_image_ring_abort_on_stopped_image)
569565
add_mpi_test(sync_ring_abort_np7 7 ${tests_root}/unit/sync/sync_image_ring_abort_on_stopped_image)
570-
add_mpi_test(simpleatomics 32 ${tests_root}/unit/simple/atomics)
566+
add_mpi_test(simpleatomics 8 ${tests_root}/unit/simple/atomics)
571567
# possible logic error in the following test
572568
# add_mpi_test(increment_my_neighbor 32 ${tests_root}/unit/simple/increment_my_neighbor)
573569

0 commit comments

Comments
 (0)