Skip to content
Snippets Groups Projects
Commit 6e62b31a authored by Ondrej Meca's avatar Ondrej Meca
Browse files

FIX: add forgotten includes

parent b7a587a3
Branches master
No related tags found
No related merge requests found
#include "mpi.h"
#include <cstdio>
#include <vector>
int main(int argc, char **argv) {
......
#include "mpi.h"
#include <cstdio>
#include <vector>
int main(int argc, char **argv) {
......
#include "mpi.h"
#include <cstdio>
struct Data {
char name[20];
......
#include "mpi.h"
#include <cstdio>
int main(int argc, char **argv) {
MPI_Init(&argc, &argv);
......
#include "mpi.h"
#include <cstdio>
#include <unistd.h>
#include <vector>
......
#include "mpi.h"
#include <cstdio>
int main(int argc, char **argv) {
MPI_Init(&argc, &argv);
......
#include "mpi.h"
#include <cstdio>
#include <unistd.h>
#include <vector>
......
#include "mpi.h"
#include <cstdio>
#include <string>
int main(int argc, char **argv) {
......
#include "mpi.h"
#include <cstdio>
#include <unistd.h>
#include <vector>
......
#include "mpi.h"
#include <cstdio>
#include <unistd.h>
#define INLOOP 0
......
#include "mpi.h"
#include <cstdio>
#include <unistd.h>
#define INLOOP 0
......
#include "mpi.h"
#include <cstdio>
#include <vector>
#include <sstream>
......
#include "mpi.h"
#include "omp.h"
#include <cstdio>
#include <sstream>
#include <unistd.h>
int main(int argc, char **argv) {
int threads;
std::stringstream env(getenv("OMP_NUM_THREADS"));
env >> threads;
int provided;
MPI_Init_thread(&argc, &argv, MPI_THREAD_FUNNELED, &provided);
if (provided < MPI_THREAD_FUNNELED) {
......@@ -21,7 +18,7 @@ int main(int argc, char **argv) {
MPI_Comm_size(MPI_COMM_WORLD, &size);
#pragma omp parallel for
for (int t = 0; t < threads; t++) {
for (int t = 0; t < omp_get_max_threads(); t++) {
double start = omp_get_wtime();
while (omp_get_wtime() - start < 5);
printf("Hello world from rank: %d-%d / %d\n", rank, t, size);
......
#include "mpi.h"
#include <cstdio>
#include <cstring>
int main(int argc, char **argv) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment