Changeset ebf3989 for benchmark/readyQ/locality.cfa
- Timestamp:
- Aug 6, 2021, 1:03:47 PM (3 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.