00001
00007 #ifndef PRIORITIES_H
00008 #define PRIORITIES_H
00009
00010
00011
00012
00013 #define PRIORITY_SIZE ((int) sizeof(int)*8)
00014
00015
00016
00017
00018 #define SET_PRIORITY(MSG,SEQ,PRIO) { \
00019 CkSetQueueing(MSG, CK_QUEUEING_IFIFO); \
00020 *((int*) CkPriorityPtr(MSG)) = (((SEQ)&0xffff)<<15) + (PRIO); }
00021
00022
00023
00024
00025 #define PATCH_PRIORITY(PID) (((PID)%251)+1)
00026
00027
00028
00029 #define PME_PRIORITY (2<<8)
00030 #define PME_GRID_PRIORITY (PME_PRIORITY+1)
00031 #define PME_TRANS_PRIORITY (PME_PRIORITY+2)
00032 #define PME_TRANS2_PRIORITY (PME_PRIORITY+3)
00033 #define PME_UNTRANS_PRIORITY (PME_PRIORITY+4)
00034 #define PME_UNTRANS2_PRIORITY (PME_PRIORITY+5)
00035
00036 #ifdef NAMD_CUDA
00037
00038 #define PROXY_DATA_PRIORITY (1<<8)
00039 #else
00040 #define PROXY_DATA_PRIORITY (3<<8)
00041 #endif
00042
00043
00044
00045
00046
00047
00048 #define GB1_COMPUTE_PROXY_PRIORITY (4<<8)
00049
00050 #define GB1_PROXY_RESULTS_PRIORITY (5<<8)
00051
00052 #define GB1_COMPUTE_HOME_PRIORITY (6<<8)
00053
00054 #define GB2_PROXY_DATA_PRIORITY (7<<8)
00055
00056 #define GB2_COMPUTE_PROXY_PRIORITY (8<<8)
00057
00058 #define GB2_PROXY_RESULTS_PRIORITY (9<<8)
00059
00060 #define GB2_COMPUTE_HOME_PRIORITY (10<<8)
00061
00062 #define GB3_PROXY_DATA_PRIORITY (11<<8)
00063
00064
00065
00066 #define COMPUTE_PROXY_PRIORITY (12<<8)
00067
00068 #define PROXY_RESULTS_PRIORITY (13<<8) // DONE
00069 #define PME_UNGRID_PRIORITY (14<<8)
00070
00071 #define COMPUTE_HOME_PRIORITY (15<<8)
00072
00073
00074 #endif // PRIORITIES_H
00075