| 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_ */
|
|---|