Changeset ebf3989


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

Location:
benchmark/readyQ
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/cycle.cfa

    rd2cdd4f rebf3989  
    8585                }
    8686
    87                 printf("Duration (ms)        : %'ld\n", (end - start)`dms);
     87                printf("Duration (ms)        : %'lf\n", (end - start)`dms);
    8888                printf("Number of processors : %'d\n", nprocs);
    8989                printf("Number of threads    : %'d\n", tthreads);
  • 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;
  • benchmark/readyQ/yield.cpp

    rd2cdd4f rebf3989  
    2929#include "libfibre/fibre.h"
    3030
    31 FibreBarrier * barrier;
     31FredBarrier * barrier;
    3232struct __attribute__((aligned(128))) counter_t {
    3333        int value = 0;
     
    6666
    6767                const char * arg = optarg ? optarg : "";
    68                 size_t len = 0;
    6968                char * end;
    7069                switch(opt) {
     
    111110
    112111                FibreInit();
    113                 barrier = new FibreBarrier(nthreads + 1);
     112                barrier = new FredBarrier(nthreads + 1);
    114113                {
    115114                        Context::CurrCluster().addWorkers(nprocs);
Note: See TracChangeset for help on using the changeset viewer.