Changeset def751f for benchmark/readyQ/locality.cpp
- Timestamp:
- Jul 25, 2022, 3:17:25 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- b0d9ff7
- Parents:
- 4e2befe3 (diff), ffec1bf (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/locality.cpp
r4e2befe3 rdef751f 217 217 { 218 218 FibreInit(1, nprocs); 219 MyData * data_arrays[nthreads];219 MyData ** data_arrays = new MyData *[nthreads](); 220 220 for(size_t i = 0; i < nthreads; i++) { 221 221 data_arrays[i] = new MyData( i, wsize ); … … 228 228 229 229 threads_left = nthreads - nspots; 230 Fibre * threads[nthreads];231 MyCtx * thddata[nthreads];230 Fibre ** threads = new Fibre *[nthreads](); 231 MyCtx ** thddata = new MyCtx *[nthreads](); 232 232 { 233 233 for(size_t i = 0; i < nthreads; i++) { … … 240 240 i 241 241 ); 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] ); 243 244 } 244 245 … … 267 268 delete( data_arrays[i] ); 268 269 } 270 delete[](data_arrays); 269 271 270 272 for(size_t i = 0; i < nspots; i++) { 271 273 delete( spots[i] ); 272 274 } 275 276 delete[](threads); 277 delete[](thddata); 273 278 } 274 279
Note:
See TracChangeset
for help on using the changeset viewer.