OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
share
/
cmake-3.26
/
Modules
/
FindMPI
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
04/04/2023 07:10:49 PM
rwxr-xr-x
📄
fortranparam_mpi.f90.in
192 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
libver_mpi.c
357 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
libver_mpi.f90.in
300 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
mpiver.f90.in
407 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
test_mpi.c
920 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
test_mpi.f90.in
178 bytes
04/04/2023 07:07:49 PM
rw-r--r--
Editing: test_mpi.c
Close
#include <mpi.h> #ifdef __cplusplus # include <cstdio> #else # include <stdio.h> #endif #if defined(MPI_VERSION) && defined(MPI_SUBVERSION) static const char mpiver_str[] = { 'I', 'N', 'F', 'O', ':', 'M', 'P', 'I', '-', 'V', 'E', 'R', '[', ('0' + MPI_VERSION), '.', ('0' + MPI_SUBVERSION), ']', '\0' }; #endif int main(int argc, char* argv[]) { #if defined(MPI_VERSION) && defined(MPI_SUBVERSION) # ifdef __cplusplus std::puts(mpiver_str); # else puts(mpiver_str); # endif #endif #ifdef TEST_MPI_MPICXX MPI::MPI_Init(&argc, &argv); MPI::MPI_Finalize(); #else MPI_Init(&argc, &argv); MPI_Finalize(); #endif return 0; }