|
MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <mpi.h>#include <stdio.h>#include <stdlib.h>#include <stdint.h>#include <stdarg.h>#include <string.h>#include <math.h>#include <omp.h>#include "mymalloc.h"#include "memory.h"#include "system.h"#include "endrun.h"Go to the source code of this file.
Functions | |
| void | tamalloc_init (void) |
| void | mymalloc_init (double MaxMemSizePerNode) |
| void | report_detailed_memory_usage (const char *label, const char *fmt,...) |
Variables | |
| Allocator | A_MAIN [1] |
| Allocator | A_TEMP [1] |
| static size_t | highest_memory_usage = 0 |
| void mymalloc_init | ( | double | MaxMemSizePerNode | ) |
Definition at line 48 of file mymalloc.c.
References A_MAIN, ALLOC_ENOMEMORY, allocator_init(), cluster_get_num_hosts(), endrun(), message(), MPIU_Any(), and NTask.
Referenced by main().
| void report_detailed_memory_usage | ( | const char * | label, |
| const char * | fmt, | ||
| ... | |||
| ) |
Definition at line 75 of file mymalloc.c.
References A_MAIN, ALLOC_DIR_BOTH, allocator_get_used_size(), allocator_print(), fastpm_strdup_vprintf(), highest_memory_usage, message(), myfree, NTask, and ThisTask.
| void tamalloc_init | ( | void | ) |
Definition at line 29 of file mymalloc.c.
References A_TEMP, ALLOC_ENOMEMORY, allocator_init(), endrun(), message(), MPIU_Any(), and NTask.
Referenced by main().
| Allocator A_MAIN[1] |
Definition at line 17 of file mymalloc.c.
Referenced by mymalloc_init(), and report_detailed_memory_usage().
| Allocator A_TEMP[1] |
Definition at line 22 of file mymalloc.c.
Referenced by tamalloc_init().
|
static |
Definition at line 73 of file mymalloc.c.
Referenced by report_detailed_memory_usage().