Changeset ebf3989
- Timestamp:
- Aug 6, 2021, 1:03:47 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 478c610
- Parents:
- d2cdd4f
- Location:
- benchmark/readyQ
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/cycle.cfa
rd2cdd4f rebf3989 85 85 } 86 86 87 printf("Duration (ms) : %'l d\n", (end - start)`dms);87 printf("Duration (ms) : %'lf\n", (end - start)`dms); 88 88 printf("Number of processors : %'d\n", nprocs); 89 89 printf("Number of threads : %'d\n", tthreads); -
benchmark/readyQ/locality.cfa
rd2cdd4f rebf3989 126 126 // ================================================== 127 127 // Do some work by accessing 'cnt' cells in the array 128 __attribute__((noinline)) void work(MyData & data, size_t cnt , uint64_t & state) {129 for (cnt ) {128 __attribute__((noinline)) void work(MyData & data, size_t cnt_, uint64_t & state) { 129 for (cnt_) { 130 130 access(data, __xorshift64(state)); 131 131 } … … 200 200 201 201 if( nspots == 0 ) { nspots = nthreads - nprocs; } 202 if( nspots == 0 ) { 203 fprintf(stderr, "--nspots must be set or --nthreads set to something bigger than --nprocs\n"); 204 exit(EXIT_FAILURE); 205 } 202 206 203 207 Time start, end; -
benchmark/readyQ/yield.cpp
rd2cdd4f rebf3989 29 29 #include "libfibre/fibre.h" 30 30 31 F ibreBarrier * barrier;31 FredBarrier * barrier; 32 32 struct __attribute__((aligned(128))) counter_t { 33 33 int value = 0; … … 66 66 67 67 const char * arg = optarg ? optarg : ""; 68 size_t len = 0;69 68 char * end; 70 69 switch(opt) { … … 111 110 112 111 FibreInit(); 113 barrier = new F ibreBarrier(nthreads + 1);112 barrier = new FredBarrier(nthreads + 1); 114 113 { 115 114 Context::CurrCluster().addWorkers(nprocs);
Note: See TracChangeset
for help on using the changeset viewer.