Changeset 06573b2
- Timestamp:
- Dec 28, 2020, 3:17:07 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 772b300
- Parents:
- 28220d2
- Location:
- benchmark/readyQ
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/locality.cfa
r28220d2 r06573b2 63 63 } 64 64 65 __attribute__((no linline)) void access(MyData & this, size_t idx) {65 __attribute__((noinline)) void access(MyData & this, size_t idx) { 66 66 size_t l = this.len; 67 67 this.data[idx % l] += 1; … … 126 126 // ================================================== 127 127 // Do some work by accessing 'cnt' cells in the array 128 __attribute__((no linline)) void work(MyData & data, size_t cnt, uint64_t & state) {128 __attribute__((noinline)) void work(MyData & data, size_t cnt, uint64_t & state) { 129 129 for (cnt) { 130 130 access(data, __xorshift64(state)); … … 261 261 } 262 262 263 printf("Duration (ms) : %'l d\n", (end - start)`dms);263 printf("Duration (ms) : %'lf\n", (end - start)`dms); 264 264 printf("Number of processors : %'d\n", nprocs); 265 265 printf("Number of threads : %'d\n", nthreads); 266 266 printf("Total Operations(ops) : %'15llu\n", global_count); 267 printf("Work size (64bit words): %'15 llu\n", wsize);267 printf("Work size (64bit words): %'15u\n", wsize); 268 268 printf("Total Operations(ops) : %'15llu\n", global_count); 269 269 printf("Total G Migrations : %'15llu\n", global_gmigs); -
benchmark/readyQ/locality.go
r28220d2 r06573b2 282 282 // Print with nice 's, i.e. 1'000'000 instead of 1000000 283 283 p := message.NewPrinter(language.English) 284 p.Printf("Duration ( ms): %f\n", delta.Seconds());284 p.Printf("Duration (s) : %f\n", delta.Seconds()); 285 285 p.Printf("Number of processors : %d\n", nprocs); 286 286 p.Printf("Number of threads : %d\n", nthreads); -
benchmark/readyQ/rq_bench.hfa
r28220d2 r06573b2 39 39 } else if(stop_count > 0) { \ 40 40 clock_mode = false; \ 41 printf("Running for %l u iterations\n", stop_count); \41 printf("Running for %llu iterations\n", stop_count); \ 42 42 } else { \ 43 43 duration = 5; clock_mode = true;\
Note: See TracChangeset
for help on using the changeset viewer.