rm MPI test; too painful to maintain

This commit is contained in:
Radovan Bast
2015-11-04 19:43:54 +01:00
parent b64341684a
commit bc2d767342
5 changed files with 0 additions and 74 deletions

View File

@ -1,18 +0,0 @@
[project]
name: example
min_cmake_version: 2.8
[fc]
source: ../../../modules/fc.cmake
[mpi]
source: ../../../modules/mpi.cmake
[default_build_paths]
source: ../../../modules/default_build_paths.cmake
[src]
source: ../../../modules/src.cmake
[definitions]
source: ../../../modules/definitions.cmake

View File

@ -1,6 +0,0 @@
if(MPI_FOUND)
add_executable(example example.F90)
target_link_libraries(example ${MPI_LIBRARIES})
else()
message(FATAL_ERROR "MPI not found")
endif()

View File

@ -1,24 +0,0 @@
program example
implicit none
#include "mpif.h"
integer :: ierr, rank, num_ranks
logical :: test_ok
call MPI_Init(ierr)
call MPI_COMM_RANK(MPI_COMM_WORLD, rank, ierr)
call MPI_COMM_SIZE(MPI_COMM_WORLD, num_ranks, ierr)
test_ok = (num_ranks == 2 .and. (rank == 0 .or. rank == 1))
if (test_ok) then
if (rank == 0) print *, 'PASSED'
else
stop "FAILED"
endif
call MPI_Finalize(ierr)
end program

View File

@ -113,15 +113,6 @@ def test_fc_int64():
configure_build_and_exe('fc_int64', 'python setup --fc=gfortran --int64')
@skip_on_windows
def test_fc_mpi():
if sys.platform == 'win32':
setup_line = 'python setup --mpi --fc=gfortran --extra-fc-flags="-D_WIN64 -D INT_PTR_KIND()=8 -fno-range-check"'
else:
setup_line = 'python setup --mpi --fc=mpif90'
configure_build_and_exe('fc_mpi', setup_line, 'mpiexec -np 2')
@skip_on_osx
def test_fc_omp():
os.environ['OMP_NUM_THREADS'] = '2'