PSFEstimationwithCPSO
|
00001 /* 00002 * config.hpp 00003 * 00004 * Created on: 27/05/2012 00005 * Author: Peter Frank Perroni (pfperroni@inf.ufpr.br) 00006 */ 00007 00008 #ifndef _CONFIG_HPP_ 00009 #define _CONFIG_HPP_ 00010 00011 enum {PSF_CENTER, PSF_CORNER}; 00012 enum {DEBUG_NONE, DEBUG_NORMAL, DEBUG_TRACE}; 00013 00019 #ifndef RAND_SEED 00020 #define RAND_SEED 10 00021 #endif 00022 00026 #define PRIMARY_DEVICE_TYPE CL_DEVICE_TYPE_GPU 00027 00031 #define SECONDARY_DEVICE_TYPE CL_DEVICE_TYPE_CPU 00032 00036 //#define _DEBUG_ DEBUG_TRACE 00037 00041 #define _CL_STATE_ 00042 00046 #define _CHECK_HALT_ 00047 00052 #define _CHECKSUM_ 00053 00057 #define _TRACK_TIME_ 00058 00062 //#define _PROFILING_ 00063 00067 //#define _DOUBLE_WORD_ 00068 00072 #define DEFAULT_BLOCKSZ 256 00073 00077 #define REDUCTION_NBLOCKS 16 00078 00082 #define REDUCTION_BLOCKSZ 64 00083 00087 #define GENPHASE_BLOCKSZ 128 00088 00092 #define MATRIX_OP_BLOCKSZ 96 00093 00097 #define PSF_EXTRACT PSF_CORNER 00098 00102 #define CL_PLATFORMS_TO_TRY 10 00103 00109 #define DEFAULT_BUFFER_SIZE ((long)(30 * 1024 * 1024)) 00110 00111 #endif /* _CONFIG_HPP_ */