64 |
extern char * valid_bms[NUM_BMS]; |
extern char * valid_bms[NUM_BMS]; |
65 |
extern int num_bms; |
extern int num_bms; |
66 |
extern int *bm_list; |
extern int *bm_list; |
67 |
|
extern int *bm_list; |
68 |
|
extern uint64_t timeLimit; |
69 |
|
extern int time_limit_set; |
70 |
|
|
71 |
/* |
/* |
72 |
Gets the aggreated bandwidth factor |
Gets the aggreated bandwidth factor |
106 |
*/ |
*/ |
107 |
void print_usage(char *appname){ |
void print_usage(char *appname){ |
108 |
printf("\nUOMS usage:\n"); |
printf("\nUOMS usage:\n"); |
109 |
printf("[Your UPC runtime launch command] %s [-help | -version | [-off_cache] [-warmup] [-reduce_op OP] [-sync_mode MODE] [-msglen FILE | [-minsize SIZE] [-maxsize SIZE] ] [-input FILE] [output_file]]\n",appname); |
printf("[Your UPC runtime launch command] %s [-help | -version | [-off_cache] [-warmup] [-reduce_op OP] [-sync_mode MODE] [-msglen FILE | [-minsize SIZE] [-maxsize SIZE] ] [-time SECONDS] [-input FILE] [output_file]]\n",appname); |
110 |
printf("Where:\n"); |
printf("Where:\n"); |
111 |
printf("-help: Print this usage information and exits\n"); |
printf("-help: Print this usage information and exits\n"); |
112 |
printf("-version: Print UOMS version and exits\n"); |
printf("-version: Print UOMS version and exits\n"); |
135 |
printf(" - UPC_IN_NOSYNC|UPC_OUT_MYSYNC\n"); |
printf(" - UPC_IN_NOSYNC|UPC_OUT_MYSYNC\n"); |
136 |
printf(" - UPC_IN_NOSYNC|UPC_OUT_NOSYNC\n"); |
printf(" - UPC_IN_NOSYNC|UPC_OUT_NOSYNC\n"); |
137 |
printf("-msglen FILE: Read user defined block sizes from FILE (in bytes). If specified it will override -minsize and -maxsize\n"); |
printf("-msglen FILE: Read user defined block sizes from FILE (in bytes). If specified it will override -minsize and -maxsize\n"); |
138 |
printf("-minsize SIZE: Specifies the minimum block size (in bytes). Sizes will increase by a factor of 2\n"); |
printf("-minsize SIZE: Specifies the minimum block size (in bytes). Sizes will increase by a factor of 2. Default is 4\n"); |
139 |
printf("-maxsize SIZE: Specifies the maximum block size (in bytes)\n"); |
printf("-maxsize SIZE: Specifies the maximum block size (in bytes). Default is 16MB\n"); |
140 |
|
printf("-time SECONDS: Specifies the maximum run time in seconds for each block size. Disabled by default. Important: this setting will not interrupt an ongoing operation\n"); |
141 |
printf("-input FILE: Read user defined list of benchmarks to run from FILE\n"); |
printf("-input FILE: Read user defined list of benchmarks to run from FILE\n"); |
142 |
printf("Valid benchmark names are:\n"); |
printf("Valid benchmark names are:\n"); |
143 |
for(int i = 0; i < NUM_BMS; i++){ |
for(int i = 0; i < NUM_BMS; i++){ |
190 |
uname( &info ); |
uname( &info ); |
191 |
|
|
192 |
|
|
193 |
fprintf(unit,"#---------------------------------------------------\n"); |
fprintf(unit,"#-----------------------------------------------------\n"); |
194 |
fprintf(unit,"# UPC Operations Microbenchmark Suite V%s \n",VERSION); |
fprintf(unit,"# UPC Operations Microbenchmark Suite V%s \n",VERSION); |
195 |
fprintf(unit,"#---------------------------------------------------\n"); |
fprintf(unit,"#-----------------------------------------------------\n"); |
196 |
fprintf(unit,"# Date : %s",asctime(localtime(&T))); |
fprintf(unit,"# Date : %s",asctime(localtime(&T))); |
197 |
fprintf(unit,"# Machine : %s\n",info.machine); |
fprintf(unit,"# Machine : %s\n",info.machine); |
198 |
fprintf(unit,"# System : %s\n",info.sysname); |
fprintf(unit,"# System : %s\n",info.sysname); |
208 |
else |
else |
209 |
fprintf(unit,"# Warmup iteration : Disabled\n"); |
fprintf(unit,"# Warmup iteration : Disabled\n"); |
210 |
fprintf(unit,"\n"); |
fprintf(unit,"\n"); |
211 |
|
if(time_limit_set == 1){ |
212 |
|
fprintf(unit,"# Time limit per block size : %ld seconds\n",timeLimit); |
213 |
|
fprintf(unit,"\n"); |
214 |
|
} |
215 |
fprintf(unit,"# Problem sizes:\n"); |
fprintf(unit,"# Problem sizes:\n"); |
216 |
for(int i = 0; i < num_sizes; i++){ |
for(int i = 0; i < num_sizes; i++){ |
217 |
fprintf(unit,"# %ld\n",sizes[i]); |
fprintf(unit,"# %ld\n",sizes[i]); |