Skip to content

Instantly share code, notes, and snippets.

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
#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));
CFLAGS = -fopenmp\
-pthread\
-lm\
-O3\
-ggdb\
-std=gnu99\
mpi:
mpicc mpi_run.c -o mpi_run $(CFLAGS)