@@ -151,7 +151,7 @@ endif()
151151 set (opencoarrays_aware_compiler false )
152152 add_definitions (-DPREFIX_NAME=_caf_extensions_)
153153 endif ()
154- if (gfortran_compiler AND (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 5.4))
154+ if (gfortran_compiler AND (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 5.4.0 ))
155155 # GCC patch to fix issue accepted for 5.4 release
156156 # See https://github.com/sourceryinstitute/opencoarrays/issues/28 and
157157 # https://groups.google.com/forum/#!msg/opencoarrays/RZOwwYTqG80/46S9eL696dgJ
@@ -537,7 +537,12 @@ if(opencoarrays_aware_compiler)
537537 add_mpi_test(register_alloc_vector 2 ${tests_root} /unit/init_register/register_alloc_vector)
538538 add_mpi_test(allocate_as_barrier 2 ${tests_root} /unit/init_register/allocate_as_barrier)
539539 add_mpi_test(allocate_as_barrier_proc 8 ${tests_root} /unit/init_register/allocate_as_barrier_proc)
540- if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7))
540+ if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0) OR (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER} ))
541+ message ( STATUS "Allocatable components of coarray derived types only supported in GFortran >= 7 with OpenCoarrays > 1.8.4" )
542+ message ( STATUS "(but full support not anticipated until OpenCoarrays 2.0 release)" )
543+ if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)
544+ message ( WARNING "Allocatable components of coarray derived type developer tests enabled, despite lack of support in GFortran < 7\n These tests should fail." )
545+ endif ()
541546 add_mpi_test(register_alloc_comp_1 2 ${tests_root} /unit/init_register/register_alloc_comp_1)
542547 add_mpi_test(register_alloc_comp_2 2 ${tests_root} /unit/init_register/register_alloc_comp_2)
543548 add_mpi_test(register_alloc_comp_3 2 ${tests_root} /unit/init_register/register_alloc_comp_3)
@@ -560,6 +565,7 @@ if(opencoarrays_aware_compiler)
560565 add_mpi_test(duplicate_syncimages 8 ${tests_root} /unit/sync/duplicate_syncimages)
561566 add_mpi_test(co_reduce 4 ${tests_root} /unit/collectives/co_reduce_test)
562567 add_mpi_test(co_reduce_res_im 4 ${tests_root} /unit/collectives/co_reduce_res_im)
568+ add_mpi_test(co_reduce_string 4 ${tests_root} /unit/collectives/co_reduce_string)
563569 add_mpi_test(syncimages_status 8 ${tests_root} /unit/sync/syncimages_status)
564570 add_mpi_test(sync_ring_abort_np3 3 ${tests_root} /unit/sync/sync_image_ring_abort_on_stopped_image)
565571 add_mpi_test(sync_ring_abort_np7 7 ${tests_root} /unit/sync/sync_image_ring_abort_on_stopped_image)
@@ -574,21 +580,33 @@ if(opencoarrays_aware_compiler)
574580 add_mpi_test(asynchronous_hello_world 3 ${tests_root} /integration/events/asynchronous_hello_world)
575581
576582 # Regression tests based on reported issues
577- if (gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0))
578- # GFortran PR 78505 only fixed on trunk/gcc 7
583+ if ((gfortran_compiler AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)) OR (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER} ))
584+ if ( CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0 )
585+ message ( WARNING "Developer tests requested and GFortran < 7: test source-alloc-no-sync may fail" )
586+ endif ()
587+ # GFortran PR 78505 only fixed on trunk/gcc 7, issue #243
579588 add_mpi_test(source -alloc-no -sync 8 ${tests_root} /regression/reported/source -alloc-sync)
580589 endif ()
581- if (CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER} )
590+
591+ # Open GCC 7 regressions
592+ if ((CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER} ) OR (gfortran_compiler AND (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)))
582593 add_mpi_test(convert-before-put 3 ${tests_root} /regression/reported/convert-before-put)
594+ add_mpi_test(put-alloc-comp 2 ${tests_root} /regression/reported/issue-422-send)
595+ add_mpi_test(get -put-alloc-comp 3 ${tests_root} /regression/reported/issue-422-send-get )
583596 endif ()
597+
598+ # Fixed GCC 7 regressions, should run on GCC 6 and 7
584599 add_mpi_test(event-post 3 ${tests_root} /regression/reported/event-post)
600+
601+ # These co_reduce (#172, fixed by PR #332, addl discussion in PR
602+ # #331) tests are for bugs not regressions. Should be fixed in all
603+ # version of GCC, I beleive
585604 add_mpi_test(co_reduce-factorial 4 ${tests_root} /regression/reported/co_reduce-factorial)
586605 add_mpi_test(co_reduce-factorial-int8 4 ${tests_root} /regression/reported/co_reduce-factorial-int8)
587606 add_mpi_test(co_reduce-factorial-int64 4 ${tests_root} /regression/reported/co_reduce-factorial-int64)
588- add_mpi_test(co_reduce_string 4 ${tests_root} /unit/collectives/co_reduce_string)
589607
590608 # IMAGE FAIL tests
591- if (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7)
609+ if (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0 )
592610 add_mpi_test(image_status_test_1 4 ${tests_root} /unit/fail_images/image_status_test_1)
593611 if (CAF_ENABLE_FAILED_IMAGES)
594612 # No other way to check that image_fail_test_1 passes.
0 commit comments