Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable MPI_F08 #687

Merged
merged 3 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/testing-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
-DUSE_MPI=OFF \
-DUSE_OPENMP=ON \
-DUSE_SMM=blas \
-DUSE_MPI_F08=ON \
..

- name: Build
Expand Down
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,9 @@ Intel MPI compiler wrappers. Check the INSTALL.md for more information.")
if (USE_MPI_F08)
if (NOT MPI_Fortran_HAVE_F08_MODULE)
message(
WARNING
"The listed MPI implementation does not provide the required mpi_f08.mod interface. \
The Fortran 90 bindings will be used instead.")
set(USE_MPI_F08 OFF)
FATAL_ERROR
"The listed MPI implementation does not provide the required mpi_f08.mod interface."
)
endif ()
endif ()
if ("${MPI_Fortran_LIBRARY_VERSION_STRING}" MATCHES "Open MPI v2.1"
Expand Down
2 changes: 0 additions & 2 deletions src/mpi/dbcsr_mpiwrap.F
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ MODULE dbcsr_mpiwrap
MPI_WIN_TYPE, PARAMETER :: mp_win_null_handle = MPI_WIN_NULL
MPI_FILE_TYPE, PARAMETER :: mp_file_null_handle = MPI_FILE_NULL
MPI_INFO_TYPE, PARAMETER :: mp_info_null_handle = MPI_INFO_NULL
MPI_DATA_TYPE, PARAMETER :: mp_datatype_null_handle = MPI_DATATYPE_NULL
INTEGER, PARAMETER, PUBLIC :: mp_status_size = MPI_STATUS_SIZE
INTEGER, PARAMETER, PUBLIC :: mp_proc_null = MPI_PROC_NULL
! Set max allocatable memory by MPI to 2 GiByte
Expand All @@ -137,7 +136,6 @@ MODULE dbcsr_mpiwrap
MPI_WIN_TYPE, PARAMETER :: mp_win_null_handle = -5
MPI_FILE_TYPE, PARAMETER :: mp_file_null_handle = -6
MPI_INFO_TYPE, PARAMETER :: mp_info_null_handle = -7
MPI_DATA_TYPE, PARAMETER :: mp_datatype_null_handle = -8
INTEGER, PARAMETER, PUBLIC :: mp_status_size = -7
INTEGER, PARAMETER, PUBLIC :: mp_proc_null = -8
INTEGER, PARAMETER, PUBLIC :: mp_max_library_version_string = 1
Expand Down