Skip to content

Commit e7d7bcc

Browse files
committed
Merge pull request #195 from sourceryinstitute/bugfix-allocate_as_barrier_proc
Fixes #161 and tweaks test to find it more consistently if a regression is introduced Fixes #42
2 parents f3f6a78 + a433b88 commit e7d7bcc

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ matrix:
7777

7878
before_install:
7979
- |
80+
set -o errexit
8081
if [[ $TRAVIS ]] && [[ "X$TRAVIS_OS_NAME" = "Xosx" ]]; then
8182
export PATH="$PATH:$HOME/Library/Python/2.7/bin"
8283
else
@@ -88,9 +89,11 @@ before_install:
8889
$FC --version
8990
$CC --version
9091
fi
92+
set +o errexit
9193
9294
install:
9395
- |
96+
set -o errexit
9497
if [[ $TRAVIS ]] && [[ "X$TRAVIS_OS_NAME" = "Xosx" ]]; then
9598
brew update > /dev/null
9699
@@ -141,9 +144,11 @@ install:
141144
export FC=mpif90
142145
export CC=mpicc
143146
fi
147+
set +o errexit
144148
145149
script:
146150
- |
151+
set -o errexit
147152
if [[ "X$BUILD_TYPE" = "XInstallScript" ]]; then
148153
export FC=gfortran-5
149154
export CC=gcc-5
@@ -163,6 +168,7 @@ script:
163168
make install
164169
cd ..
165170
fi
171+
set +o errexit
166172
167173
after_success:
168174
- find . -name '*.gcno' -print

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ if(opencoarrays_aware_compiler)
166166
add_mpi_test(register_rename_me 2 ${tests_root}/unit/init_register/register_rename_me)
167167
add_mpi_test(register_rename_me_too 2 ${tests_root}/unit/init_register/register_rename_me_too)
168168
add_mpi_test(allocate_as_barrier 2 ${tests_root}/unit/init_register/allocate_as_barrier)
169-
if (NOT ( APPLE AND ( DEFINED ENV{TRAVIS} ) ) )
170-
add_mpi_test(allocate_as_barrier_proc 2 ${tests_root}/unit/init_register/allocate_as_barrier_proc)
171-
endif ()
169+
add_mpi_test(allocate_as_barrier_proc 32 ${tests_root}/unit/init_register/allocate_as_barrier_proc)
172170
add_mpi_test(get_array 2 ${tests_root}/unit/send-get/get_array)
173171
add_mpi_test(send_array 2 ${tests_root}/unit/send-get/send_array)
174172
add_mpi_test(get_with_offset_1d 2 ${tests_root}/unit/send-get/get_with_offset_1d)

src/mpi/mpi_caf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,9 +533,10 @@ void *
533533
MPI_Win_flush(caf_this_image-1, *p);
534534
# endif // CAF_MPI_LOCK_UNLOCK
535535
free(init_array);
536-
PREFIX(sync_all) (NULL,NULL,0);
537536
}
538537

538+
PREFIX(sync_all) (NULL,NULL,0);
539+
539540
caf_static_t *tmp = malloc (sizeof (caf_static_t));
540541
tmp->prev = caf_tot;
541542
tmp->token = *token;

src/tests/integration/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
if (opencoarrays_aware_compiler)
22
add_subdirectory(coarrayHelloWorld)
3-
if (NOT (DEFINED ENV{TRAVIS}))
3+
if (NOT ("${CMAKE_BUILD_TYPE}" MATCHES "CodeCoverage"))
44
add_subdirectory(dist_transpose )
55
endif()
66
add_subdirectory(pde_solvers)

src/tests/integration/pde_solvers/navier-stokes/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# checking whether the machine is of type 64-bit before proceeding further
2-
if ( ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") AND ("${CMAKE_SYSTEM_NAME}" MATCHES "LINUX") )
2+
if ( ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") AND ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") )
33
# Default to older SSE-instruction-based FFT library
44
if (NOT (DEFINED ENV{TRAVIS}))
55
if (LEGACY_ARCHITECTURE OR (NOT DEFINED(LEGACY_ARCHITECTURE)))

0 commit comments

Comments
 (0)