Changeset 1f950c3b for benchmark


Ignore:
Timestamp:
Jul 25, 2022, 1:47:25 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
ffec1bf
Parents:
8fe35be
Message:

Fixed some small errors in benchmarks

Location:
benchmark/readyQ
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/cycle.cfa

    r8fe35be r1f950c3b  
    5555                        Partner * thddata = alloc(tthreads);
    5656                        for(i; tthreads) {
    57                                 (thddata[pi]){};
     57                                (thddata[i]){};
    5858                                unsigned pi = (i + nthreads) % tthreads;
    5959                                thddata[i].next = &thddata[pi].self;
  • benchmark/readyQ/cycle.cpp

    r8fe35be r1f950c3b  
    3939                {
    4040                        threads_left = tthreads;
    41                         Fibre * threads = new Fibre *[tthreads]();
    42                         Partner thddata = new Partner[tthreads]();
     41                        Fibre ** threads = new Fibre *[tthreads]();
     42                        Partner* thddata = new Partner[tthreads]();
    4343                        for(unsigned i = 0; i < tthreads; i++) {
    4444                                unsigned pi = (i + nthreads) % tthreads;
  • benchmark/readyQ/locality.cpp

    r8fe35be r1f950c3b  
    240240                                        i
    241241                                );
    242                                 threads[i] = new Fibre( reinterpret_cast<void (*)(void *)>(thread_main), thddata[i] );
     242                                threads[i] = new Fibre();
     243                                threads[i]->run( reinterpret_cast<void (*)(MyCtx*)>(thread_main), thddata[i] );
    243244                        }
    244245
Note: See TracChangeset for help on using the changeset viewer.