Минимальный пример

This commit is contained in:
2025-12-01 13:01:19 +00:00
parent cb82dda2c1
commit fc09b4f967
7 changed files with 43 additions and 23 deletions

View File

@@ -0,0 +1,11 @@
#include <mpi.h>
#include <iostream>
void mpi_test() {
int rank, size;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
std::cout << "Hello from rank " << rank << " of " << size << std::endl;
}