|
MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <stdarg.h>#include <stddef.h>#include <setjmp.h>#include <cmocka.h>#include <stdio.h>#include "stub.h"#include <stdlib.h>#include <stdint.h>#include <time.h>#include <string.h>#include <unistd.h>#include <mpi.h>#include "../utils/endrun.h"#include "../utils/mymalloc.h"#include "../utils/mpsort.h"Go to the source code of this file.
Classes | |
| struct | BaseGroup |
Functions | |
| static void | radix_int (const void *ptr, void *radix, void *arg) |
| static int64_t | checksum (int64_t *data, size_t localsize, MPI_Comm comm) |
| static void | generate (int64_t *data, size_t localsize, int bits, int seed) |
| static void | check_sorted (void *data, int elsize, size_t localsize, int compar(void *d1, void *d2), MPI_Comm comm) |
| int | compar_int (void *d1, void *d2) |
| static void | do_mpsort_test (int64_t srcsize, int bits, int staggered, int gather) |
| static void | fof_radix_Group_TotalCountTaskDiffMinID (const void *a, void *radix, void *arg) |
| int | compar_bg (void *d1, void *d2) |
| static uint64_t | checksum_minid (struct BaseGroup *data, size_t localsize, MPI_Comm comm) |
| static void | do_long_radix_test (int srcsize) |
| static void | test_basegroup (void **state) |
| static void | test_mpsort_bits (void **state) |
| static void | test_mpsort_stagger (void **state) |
| static void | test_mpsort_gather (void **state) |
| int | main (void) |
|
static |
Definition at line 58 of file test_mpsort.c.
References endrun(), NTask, ta_malloc, and ThisTask.
Referenced by do_long_radix_test(), and do_mpsort_test().
|
static |
Definition at line 32 of file test_mpsort.c.
Referenced by do_mpsort_test().
|
static |
Definition at line 239 of file test_mpsort.c.
References BaseGroup::MinID.
Referenced by do_long_radix_test().
| int compar_bg | ( | void * | d1, |
| void * | d2 | ||
| ) |
Definition at line 216 of file test_mpsort.c.
References BaseGroup::Length, BaseGroup::MinID, BaseGroup::MinIDTask, and BaseGroup::OriginalTask.
Referenced by do_long_radix_test().
| int compar_int | ( | void * | d1, |
| void * | d2 | ||
| ) |
Definition at line 125 of file test_mpsort.c.
Referenced by do_mpsort_test().
|
static |
Definition at line 253 of file test_mpsort.c.
References check_sorted(), checksum_minid(), compar_bg(), endrun(), fof_radix_Group_TotalCountTaskDiffMinID(), BaseGroup::Length, message(), BaseGroup::MinID, BaseGroup::MinIDTask, mpsort_mpi_newarray, myfree, mymalloc, NTask, BaseGroup::OriginalTask, and ThisTask.
Referenced by test_basegroup().
|
static |
Definition at line 138 of file test_mpsort.c.
References check_sorted(), checksum(), compar_int(), endrun(), generate(), message(), MPSORT_DISABLE_GATHER_SORT, mpsort_mpi_newarray, mpsort_mpi_set_options(), mpsort_mpi_unset_options(), MPSORT_REQUIRE_GATHER_SORT, mpsort_setup_timers(), myfree, mymalloc, NTask, radix_int(), and ThisTask.
Referenced by test_mpsort_bits(), test_mpsort_gather(), and test_mpsort_stagger().
|
static |
Definition at line 208 of file test_mpsort.c.
References BaseGroup::Length, BaseGroup::MinID, BaseGroup::MinIDTask, and BaseGroup::OriginalTask.
Referenced by do_long_radix_test().
|
static |
Definition at line 44 of file test_mpsort.c.
Referenced by do_mpsort_test().
| int main | ( | void | ) |
Definition at line 337 of file test_mpsort.c.
References test_basegroup(), test_mpsort_bits(), test_mpsort_gather(), and test_mpsort_stagger().
|
static |
Definition at line 27 of file test_mpsort.c.
Referenced by do_mpsort_test().
|
static |
Definition at line 300 of file test_mpsort.c.
References do_long_radix_test().
Referenced by main().
|
static |
Definition at line 308 of file test_mpsort.c.
References do_mpsort_test(), and message().
Referenced by main().
|
static |
Definition at line 329 of file test_mpsort.c.
References do_mpsort_test().
Referenced by main().
|
static |
Definition at line 320 of file test_mpsort.c.
References do_mpsort_test().
Referenced by main().