Changeset d923fca for tests/concurrency/actors
- Timestamp:
- Feb 18, 2025, 12:54:23 PM (9 months ago)
- Branches:
- master
- Children:
- 8705a11
- Parents:
- 3e5fea2
- Location:
- tests/concurrency/actors
- Files:
-
- 2 edited
-
executor.cfa (modified) (7 diffs)
-
matrixMultiply.cfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/actors/executor.cfa
r3e5fea2 rd923fca 24 24 struct d_msg { inline message; } shared_msg; 25 25 26 allocation receive( d_actor & this, d_msg & msg) with( this ) {26 allocation receive( d_actor & this, d_msg & ) with( this ) { 27 27 if ( recs == rounds ) return Finished; 28 28 if ( recs % Batch == 0 ) { … … 43 43 if ( BufSize < 0 ) fallthrough default; 44 44 } // if 45 fallthrough; 45 46 case 6: 46 47 if ( strcmp( argv[5], "d" ) != 0 ) { // default ? … … 48 49 if ( Batch < 1 ) fallthrough default; 49 50 } // if 51 fallthrough; 50 52 case 5: 51 53 if ( strcmp( argv[4], "d" ) != 0 ) { // default ? … … 53 55 if ( Processors < 1 ) fallthrough default; 54 56 } // if 57 fallthrough; 55 58 case 4: 56 59 if ( strcmp( argv[3], "d" ) != 0 ) { // default ? … … 58 61 if ( Rounds < 1 ) fallthrough default; 59 62 } // if 63 fallthrough; 60 64 case 3: 61 65 if ( strcmp( argv[2], "d" ) != 0 ) { // default ? … … 63 67 if ( Set < 1 ) fallthrough default; 64 68 } // if 69 fallthrough; 65 70 case 2: 66 71 if ( strcmp( argv[1], "d" ) != 0 ) { // default ? … … 68 73 if ( Actors < 1 || Actors <= Set || Actors % Set != 0 ) fallthrough default; 69 74 } // if 75 fallthrough; 70 76 case 1: // use defaults 71 77 break; -
tests/concurrency/actors/matrixMultiply.cfa
r3e5fea2 rd923fca 24 24 } 25 25 26 allocation receive( derived_actor & receiver, derived_msg & msg ) {26 allocation receive( derived_actor &, derived_msg & msg ) { 27 27 for ( i; yc ) { // multiply X_row by Y_col and sum products 28 28 msg.Z[i] = 0; … … 41 41 if ( Processors < 1 ) fallthrough default; 42 42 } // if 43 fallthrough; 43 44 case 4: 44 45 if ( strcmp( argv[3], "d" ) != 0 ) { // default ? … … 46 47 if ( xr < 1 ) fallthrough default; 47 48 } // if 49 fallthrough; 48 50 case 3: 49 51 if ( strcmp( argv[2], "d" ) != 0 ) { // default ? … … 51 53 if ( xc < 1 ) fallthrough default; 52 54 } // if 55 fallthrough; 53 56 case 2: 54 57 if ( strcmp( argv[1], "d" ) != 0 ) { // default ? … … 56 59 if ( yc < 1 ) fallthrough default; 57 60 } // if 61 fallthrough; 58 62 case 1: // use defaults 59 63 break;
Note:
See TracChangeset
for help on using the changeset viewer.