|
@@ -293,18 +293,24 @@ int main(void) {
|
|
|
printf("Larson benchmark\n");
|
|
|
|
|
|
printf("runtime (sec): ") ;
|
|
|
- scanf ("%ld", &sleep_cnt);
|
|
|
+
|
|
|
+ sleep_cnt = 10;
|
|
|
|
|
|
printf("chunk size (min,max): ") ;
|
|
|
- scanf("%d %d", &min_size, &max_size ) ;
|
|
|
+
|
|
|
+ min_size = 1024;
|
|
|
+ max_size = 2048;
|
|
|
|
|
|
printf("threads (min, max): ") ;
|
|
|
- scanf("%d %d", &min_threads, &max_threads) ;
|
|
|
+
|
|
|
+ min_threads = 1;
|
|
|
+ max_threads = 1;
|
|
|
|
|
|
pthread_setconcurrency(max_threads);
|
|
|
|
|
|
printf("chunks/thread: ");
|
|
|
- scanf("%d", &chperthread );
|
|
|
+
|
|
|
+ chperthread = 1;
|
|
|
|
|
|
num_chunks = max_threads * chperthread ;
|
|
|
if( num_chunks > MAX_BLOCKS ){
|
|
@@ -313,7 +319,8 @@ int main(void) {
|
|
|
}
|
|
|
|
|
|
printf("no of rounds: ");
|
|
|
- scanf("%d", &num_rounds );
|
|
|
+
|
|
|
+ num_rounds = 1;
|
|
|
|
|
|
runthreads(sleep_cnt, min_threads, max_threads, chperthread, num_rounds) ;
|
|
|
|