![]() |
PandA-2024.02
|
#include <stdlib.h>#include <inttypes.h>#include <stdio.h>#include <stdint.h>

Go to the source code of this file.
Data Structures | |
| struct | prng_rand_t |
Macros | |
| #define | SECTION_TERMINATED -1 |
| #define | __STAC_EXPANDED(f_pfx, t, f_sfx) f_pfx##t##f_sfx |
| #define | STAC(f_pfx, t, f_sfx) __STAC_EXPANDED(f_pfx,t,f_sfx) |
| #define | __PRNG_H__ |
| #define | LAG1 (UINT16_C(24)) |
| #define | LAG2 (UINT16_C(55)) |
| #define | RAND_SSIZE ((UINT16_C(1))<<6) |
| #define | RAND_SMASK (RAND_SSIZE-1) |
| #define | RAND_EXHAUST_LIMIT LAG2 |
| #define | RAND_REFILL_COUNT ((LAG2*10)-RAND_EXHAUST_LIMIT) |
| #define | PRNG_RAND_MAX UINT64_MAX |
Functions | |
| char * | readfile (int fd) |
| char * | find_section_start (char *s, int n) |
| int | parse_string (char *s, char *arr, int n) |
| int | parse_uint8_t_array (char *s, uint8_t *arr, int n) |
| int | parse_uint16_t_array (char *s, uint16_t *arr, int n) |
| int | parse_uint32_t_array (char *s, uint32_t *arr, int n) |
| int | parse_uint64_t_array (char *s, uint64_t *arr, int n) |
| int | parse_int8_t_array (char *s, int8_t *arr, int n) |
| int | parse_int16_t_array (char *s, int16_t *arr, int n) |
| int | parse_int32_t_array (char *s, int32_t *arr, int n) |
| int | parse_int64_t_array (char *s, int64_t *arr, int n) |
| int | parse_float_array (char *s, float *arr, int n) |
| int | parse_double_array (char *s, double *arr, int n) |
| int | write_string (int fd, char *arr, int n) |
| int | write_uint8_t_array (int fd, uint8_t *arr, int n) |
| int | write_uint16_t_array (int fd, uint16_t *arr, int n) |
| int | write_uint32_t_array (int fd, uint32_t *arr, int n) |
| int | write_uint64_t_array (int fd, uint64_t *arr, int n) |
| int | write_int8_t_array (int fd, int8_t *arr, int n) |
| int | write_int16_t_array (int fd, int16_t *arr, int n) |
| int | write_int32_t_array (int fd, int32_t *arr, int n) |
| int | write_int64_t_array (int fd, int64_t *arr, int n) |
| int | write_float_array (int fd, float *arr, int n) |
| int | write_double_array (int fd, double *arr, int n) |
| int | write_section_header (int fd) |
| void | run_benchmark (void *vargs) |
| void | input_to_data (int fd, void *vdata) |
| void | data_to_input (int fd, void *vdata) |
| void | output_to_data (int fd, void *vdata) |
| void | data_to_output (int fd, void *vdata) |
| int | check_data (void *vdata, void *vref) |
| static uint64_t | prng_rand (struct prng_rand_t *state) |
| static void | prng_srand (uint64_t seed, struct prng_rand_t *state) |
Variables | |
| int | INPUT_SIZE |
| #define __STAC_EXPANDED | ( | f_pfx, | |
| t, | |||
| f_sfx | |||
| ) | f_pfx##t##f_sfx |
| #define LAG1 (UINT16_C(24)) |
Definition at line 69 of file support.h.
Referenced by prng_rand().
| #define LAG2 (UINT16_C(55)) |
Definition at line 70 of file support.h.
Referenced by prng_rand().
| #define RAND_EXHAUST_LIMIT LAG2 |
Definition at line 73 of file support.h.
Referenced by prng_rand(), and prng_srand().
| #define RAND_REFILL_COUNT ((LAG2*10)-RAND_EXHAUST_LIMIT) |
Definition at line 75 of file support.h.
Referenced by prng_rand().
| #define RAND_SMASK (RAND_SSIZE-1) |
Definition at line 72 of file support.h.
Referenced by prng_rand().
| #define RAND_SSIZE ((UINT16_C(1))<<6) |
Definition at line 71 of file support.h.
Referenced by prng_rand(), and prng_srand().
| #define SECTION_TERMINATED -1 |
Definition at line 9 of file support.h.
Referenced by test_strings().
| #define STAC | ( | f_pfx, | |
| t, | |||
| f_sfx | |||
| ) | __STAC_EXPANDED(f_pfx,t,f_sfx) |
Definition at line 51 of file support.h.
Referenced by data_to_input(), data_to_output(), input_to_data(), and output_to_data().
| int check_data | ( | void * | vdata, |
| void * | vref | ||
| ) |
Definition at line 70 of file local_support.c.
References bench_args_t::a, ALEN, bench_args_t::alignedA, bench_args_t::alignedB, bench_args_t::biases1, bench_args_t::biases2, bench_args_t::biases3, BLEN, blockSide, bench_args_t::buf, bench_args_t::c, symmetry::col, col_size, densityFactor, EPSILON, FFT_SIZE, bench_args_t::force, bench_args_t::force_x, bench_args_t::force_y, bench_args_t::force_z, bench_args_t::img, input_dimension, k, bench_args_t::level_counts, N, N_LEVELS, bench_args_t::n_matches, N_OBS, nAtoms, nodes_per_layer, bench_args_t::out, bench_args_t::path, possible_outputs, bench_args_t::prod, bench_args_t::real, symmetry::row, row_size, SIZE, bench_args_t::sol, TYPE, bench_args_t::weights1, bench_args_t::weights2, bench_args_t::weights3, bench_args_t::work_x, bench_args_t::work_y, dvector_t::x, dvector_t::y, and dvector_t::z.
Referenced by main().

| void data_to_input | ( | int | fd, |
| void * | vdata | ||
| ) |
Definition at line 34 of file local_support.c.
| void data_to_output | ( | int | fd, |
| void * | vdata | ||
| ) |
Definition at line 63 of file local_support.c.
| void input_to_data | ( | int | fd, |
| void * | vdata | ||
| ) |
Definition at line 18 of file local_support.c.
| void output_to_data | ( | int | fd, |
| void * | vdata | ||
| ) |
Definition at line 49 of file local_support.c.
| int parse_double_array | ( | char * | s, |
| double * | arr, | ||
| int | n | ||
| ) |
| int parse_float_array | ( | char * | s, |
| float * | arr, | ||
| int | n | ||
| ) |
| int parse_int16_t_array | ( | char * | s, |
| int16_t * | arr, | ||
| int | n | ||
| ) |
| int parse_int32_t_array | ( | char * | s, |
| int32_t * | arr, | ||
| int | n | ||
| ) |
| int parse_int64_t_array | ( | char * | s, |
| int64_t * | arr, | ||
| int | n | ||
| ) |
| int parse_int8_t_array | ( | char * | s, |
| int8_t * | arr, | ||
| int | n | ||
| ) |
| int parse_uint16_t_array | ( | char * | s, |
| uint16_t * | arr, | ||
| int | n | ||
| ) |
| int parse_uint32_t_array | ( | char * | s, |
| uint32_t * | arr, | ||
| int | n | ||
| ) |
| int parse_uint64_t_array | ( | char * | s, |
| uint64_t * | arr, | ||
| int | n | ||
| ) |
| int parse_uint8_t_array | ( | char * | s, |
| uint8_t * | arr, | ||
| int | n | ||
| ) |
|
inlinestatic |
Definition at line 85 of file support.h.
References prng_rand_t::c, prng_rand_t::i, LAG1, LAG2, RAND_EXHAUST_LIMIT, RAND_REFILL_COUNT, RAND_SMASK, RAND_SSIZE, and prng_rand_t::s.
Referenced by main(), prng_srand(), and test_prng().

|
inlinestatic |
Definition at line 106 of file support.h.
References prng_rand_t::c, prng_rand_t::i, prng_rand(), RAND_EXHAUST_LIMIT, RAND_SSIZE, and prng_rand_t::s.
Referenced by main(), and test_prng().


| void run_benchmark | ( | void * | vargs | ) |
Definition at line 6 of file local_support.c.
| int write_double_array | ( | int | fd, |
| double * | arr, | ||
| int | n | ||
| ) |
| int write_float_array | ( | int | fd, |
| float * | arr, | ||
| int | n | ||
| ) |
| int write_int16_t_array | ( | int | fd, |
| int16_t * | arr, | ||
| int | n | ||
| ) |
| int write_int32_t_array | ( | int | fd, |
| int32_t * | arr, | ||
| int | n | ||
| ) |
| int write_int64_t_array | ( | int | fd, |
| int64_t * | arr, | ||
| int | n | ||
| ) |
| int write_int8_t_array | ( | int | fd, |
| int8_t * | arr, | ||
| int | n | ||
| ) |
| int write_section_header | ( | int | fd | ) |
Referenced by data_to_input(), data_to_output(), and test_strings().

| int write_string | ( | int | fd, |
| char * | arr, | ||
| int | n | ||
| ) |
Referenced by data_to_input(), data_to_output(), and test_strings().

| int write_uint16_t_array | ( | int | fd, |
| uint16_t * | arr, | ||
| int | n | ||
| ) |
| int write_uint32_t_array | ( | int | fd, |
| uint32_t * | arr, | ||
| int | n | ||
| ) |
| int write_uint64_t_array | ( | int | fd, |
| uint64_t * | arr, | ||
| int | n | ||
| ) |
| int write_uint8_t_array | ( | int | fd, |
| uint8_t * | arr, | ||
| int | n | ||
| ) |
| int INPUT_SIZE |
Definition at line 4 of file local_support.c.
1.8.13