Ignore:
Timestamp:
Aug 6, 2021, 1:03:47 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
478c610
Parents:
d2cdd4f
Message:

small fixes to some rdq benchmarks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/locality.cfa

    rd2cdd4f rebf3989  
    126126// ==================================================
    127127// 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_) {
    130130                access(data, __xorshift64(state));
    131131        }
     
    200200
    201201        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        }
    202206
    203207        Time start, end;
Note: See TracChangeset for help on using the changeset viewer.