File: env.h

package info (click to toggle)
ga 5.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,472 kB
  • sloc: ansic: 192,963; fortran: 53,761; f90: 11,218; cpp: 5,784; makefile: 2,248; sh: 1,945; python: 1,734; perl: 534; csh: 134; asm: 106
file content (27 lines) | stat: -rw-r--r-- 535 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 *  * Copyright (c) 2016 Intel Corporation.  All rights reserved.
 */

#ifndef ENV_H_
#define ENV_H_

#define CACHELINE_SIZE 64

typedef struct env_data_t
{
    int   log_level;
    int   native_atomics;
    int   emulation_type;
    int   progress_thread;
    int   cq_entries_count;
    int   force_sync;
    char* provider;
    char* library_path;
} env_data_t __attribute__ ((aligned (CACHELINE_SIZE)));

extern env_data_t env_data;

int env_to_int(const char* env_name, int* value);
void parse_env_vars();

#endif /* ENV_H_ */