| 451 | } |
| 452 | |
| 453 | void |
| 454 | raft::map::inline_cont( kernels_t &groups, |
| 455 | kernels_t &temp_groups, |
| 456 | kpair * const next ) |
| 457 | { |
| 458 | /** |
| 459 | * for each kernel, and each group make an output |
| 460 | * link inline |
| 461 | */ |
| 462 | for( auto &group : groups ) |
| 463 | { |
| 464 | /** we need to insert a new group in temp_groups **/ |
| 465 | temp_groups.push_back( up_group_t( new group_t() ) ); |
| 466 | for( auto *kernel : *group ) |
| 467 | { |
| 468 | assert( kernel != nullptr ); |
| 469 | if( temp_groups[ 0 ]->size() == 0 ) |
| 470 | { |
| 471 | //simply join source do destination |
| 472 | joink( next ); |
| 473 | //emplace back temp_groups kernel |
| 474 | temp_groups[ 0 ]->emplace_back( next->dst ); |
| 475 | } |
| 476 | else |
| 477 | { |
| 478 | auto * const dst_clone( next->dst->clone() ); |
| 479 | next->src = kernel; |
| 480 | next->dst = dst_clone; |
| 481 | joink( next ); |
| 482 | temp_groups.back()->emplace_back( dst_clone ); |
| 483 | } |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | return; |
| 488 | } |
| 489 | |
| 490 | void |
| 491 | raft::map::inline_split( split_stack_t &split_stack, |
nothing calls this directly
no outgoing calls
no test coverage detected