Changeset 2dcd80a for tests


Ignore:
Timestamp:
Dec 14, 2022, 12:23:42 PM (3 years ago)
Author:
caparson <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
441a6a7
Parents:
7d9598d8 (diff), d8bdf13 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
tests
Files:
9 added
2 deleted
8 edited
8 moved

Legend:

Unmodified
Added
Removed
  • tests/Makefile.am

    r7d9598d8 r2dcd80a  
    6868.PHONY: list .validate .test_makeflags
    6969.INTERMEDIATE: .validate .validate.cfa .test_makeflags
    70 EXTRA_PROGRAMS = avl_test linkonce .dummy_hack # build but do not install
     70EXTRA_PROGRAMS = avl_test linkonce linking/mangling/anon .dummy_hack # build but do not install
    7171EXTRA_DIST = test.py \
    7272        pybin/__init__.py \
     
    101101avl_test_SOURCES = avltree/avl_test.cfa avltree/avl0.cfa avltree/avl1.cfa avltree/avl2.cfa avltree/avl3.cfa avltree/avl4.cfa avltree/avl-private.cfa
    102102linkonce_SOURCES = link-once/main.cfa link-once/partner.cfa
     103linking_mangling_anon_SOURCES = linking/mangling/header.hfa linking/mangling/lib.cfa linking/mangling/main.cfa
    103104# automake doesn't know we still need C/CPP rules so pretend like we have a C program
    104105nodist__dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp
  • tests/PRNG.cfa

    r7d9598d8 r2dcd80a  
    88// Created On       : Wed Dec 29 09:38:12 2021
    99// Last Modified By : Peter A. Buhr
    10 // Last Modified On : Sat Apr  9 15:21:14 2022
    11 // Update Count     : 344
     10// Last Modified On : Tue Nov 22 22:51:12 2022
     11// Update Count     : 381
    1212//
    1313
     
    2222#include <mutex_stmt.hfa>
    2323
     24#ifdef __x86_64__                                                                               // 64-bit architecture
     25#define PRNG PRNG64
     26#else                                                                                                   // 32-bit architecture
     27#define PRNG PRNG32
     28#endif // __x86_64__
     29
    2430#ifdef TIME                                                                                             // use -O2 -nodebug
    2531#define STARTTIME start = timeHiRes()
     
    5460
    5561
    56 uint32_t seed = 1009;
     62unsigned int seed = 1009;
    5763
    5864thread T1 {};
     
    158164#if 1
    159165        PRNG prng;
     166
    160167        if ( seed != 0 ) set_seed( prng, seed );
    161168
  • tests/concurrent/barrier/generation.cfa

    r7d9598d8 r2dcd80a  
    3737                for(c; 'A' ~= 'Z') {
    3838                        // Yield for chaos
    39                         yield(prng(this, 10));
     39                        yield( prng(this, 10) );
    4040
    4141                        // Print the generation, no newline because
     
    4343
    4444                        // Yield again for more chaos
    45                         yield(prng(this, 10));
     45                        yield( prng(this, 10) );
    4646
    4747                        // Block on the barrier
  • tests/concurrent/barrier/order.cfa

    r7d9598d8 r2dcd80a  
    3737        for(l; NUM_LAPS) {
    3838                // Yield for chaos
    39                 yield(prng(this, 10));
     39                yield( prng(this, 10) );
    4040
    4141                // Block and what order we arrived
  • tests/concurrent/once.cfa

    r7d9598d8 r2dcd80a  
    3030
    3131                // sometime yields
    32                 yield(prng(this, 3));
     32                yield( prng(this, 3) );
    3333        }
    3434}
  • tests/concurrent/readyQ/leader_spin.cfa

    r7d9598d8 r2dcd80a  
    2626}
    2727
    28 PRNG lead_rng;
     28PRNG64 lead_rng;
    2929volatile unsigned leader;
    3030volatile size_t lead_idx;
    3131
    32 const unsigned nthreads = 17;
    33 const unsigned stop_count = 327;
     32const uint64_t nthreads = 17;
     33const uint64_t stop_count = 327;
    3434
    3535thread$ * the_main;
     
    5050        for(i; nthreads) {
    5151                while( threads[i]->idx != lead_idx ) {
    52                         Pause();
     52                        sched_yield();
    5353                }
    5454        }
  • tests/io/away_fair.cfa

    r7d9598d8 r2dcd80a  
    4141
    4242                if(last == curr) {
    43                         Pause();
     43                        sched_yield();
    4444                        continue;
    4545                }
  • tests/io/comp_fair.cfa

    r7d9598d8 r2dcd80a  
    5252
    5353                if(last == curr) {
    54                         Pause();
     54                        sched_yield();
    5555                        continue;
    5656                }
Note: See TracChangeset for help on using the changeset viewer.