This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFLAGS = -fopenmp\ | |
-pthread\ | |
-lm\ | |
-O3\ | |
-ggdb\ | |
-std=gnu99\ | |
mpi: | |
mpicc mpi_run.c -o mpi_run $(CFLAGS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <omp.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) | |
{ | |
int num_threads = atoi(argv[1]); | |
int n = atoi(argv[2]); | |
struct drand48_data *seeds = malloc(n * sizeof(struct drand48_data)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SYSCALL(args) = return | |
2023/07/17 20:56:47 hello | |
munmap(0x100C80000, 0x90000) = 0 0 | |
munmap(0x100D10000, 0x8000) = 0 0 | |
munmap(0x100D18000, 0x4000) = 0 0 | |
munmap(0x100D1C000, 0x4000) = 0 0 | |
munmap(0x100D20000, 0x58000) = 0 0 | |
fsgetpath(0x16F897358, 0x400, 0x16F897338) = 35 0 | |
fsgetpath(0x16F897368, 0x400, 0x16F897348) = 14 0 | |
csrctl(0x0, 0x16F89776C, 0x4) = -1 Err#1 |