source: CIVL/examples/omp/nas-dc/DC/adcc.h@ 1aaefd4

main test-branch
Last change on this file since 1aaefd4 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 3.5 KB
Line 
1/*
2!-------------------------------------------------------------------------!
3! !
4! N A S G R I D B E N C H M A R K S !
5! !
6! C + + V E R S I O N !
7! !
8! A D C C . H !
9! !
10!-------------------------------------------------------------------------!
11! !
12! The the file contains comnstants definitions used for !
13! building veiws. !
14! !
15! Permission to use, copy, distribute and modify this software !
16! for any purpose with or without fee is hereby granted. !
17! We request, however, that all derived work reference the !
18! NAS Grid Benchmarks 3.0 or GridNPB3.0. This software is provided !
19! "as is" without expressed or implied warranty. !
20! !
21! Information on GridNPB3.0, including the concept of !
22! the NAS Grid Benchmarks, the specifications, source code, !
23! results and information on how to submit new results, !
24! is available at: !
25! !
26! http://www.nas.nasa.gov/Software/NPB !
27! !
28! Send comments or suggestions to ngb@nas.nasa.gov !
29! Send bug reports to ngb@nas.nasa.gov !
30! !
31! E-mail: ngb@nas.nasa.gov !
32! Fax: (650) 604-3957 !
33! !
34!-------------------------------------------------------------------------!
35! GridNPB3.0 C++ version !
36! Michael Frumkin, Leonid Shabanov !
37!-------------------------------------------------------------------------!
38*/
39#ifndef _ADCC_CONST_DEFS_H_
40#define _ADCC_CONST_DEFS_H_
41
42/*#define WINNT*/
43#define UNIX
44
45#define ADC_OK 0
46#define ADC_WRITE_FAILED 1
47#define ADC_INTERNAL_ERROR 2
48#define ADC_TREE_DESTROY_FAILURE 3
49#define ADC_FILE_OPEN_FAILURE 4
50#define ADC_MEMORY_ALLOCATION_FAILURE 5
51#define ADC_FILE_DELETE_FAILURE 6
52#define ADC_VERIFICATION_FAILED 7
53#define ADC_SHMEMORY_FAILURE 8
54
55#define SSA_BUFFER_SIZE (1024*1024)
56#define MAX_NUMBER_OF_TASKS 256
57
58#define MAX_PAR_FILE_LINE_SIZE 512
59#define MAX_FILE_FULL_PATH_SIZE 512
60#define MAX_ADC_NAME_SIZE 32
61
62#define DIM_FSZ 4
63#define MSR_FSZ 8
64
65#define MAX_NUM_OF_DIMS 20
66#define MAX_NUM_OF_MEAS 4
67
68#define MAX_NUM_OF_CHUNKS 1024
69#define MAX_PARAM_LINE_SIZE 1024
70
71#define OUTPUT_BUFFER_SIZE (MAX_NUM_OF_DIMS + (MSR_FSZ/4)*MAX_NUM_OF_MEAS)
72#define MAX_VIEW_REC_SIZE ((DIM_FSZ*MAX_NUM_OF_DIMS)+(MSR_FSZ*MAX_NUM_OF_MEAS))
73#define MAX_VIEW_ROW_SIZE_IN_INTS (MAX_NUM_OF_DIMS + 2*MAX_NUM_OF_MEAS)
74#define MLB32 0x80000000
75
76#ifdef WINNT
77#define MLB 0x8000000000000000
78#else
79#define MLB 0x8000000000000000LL
80#endif
81
82#endif /* _ADCC_CONST_DEFS_H_ */
Note: See TracBrowser for help on using the repository browser.