Research Article
Evaluation of Runtime Task Mapping Using the rSesame Framework
Algorithm 2
Pseudocode for the cumulative benefit heuristic (CBH) for the mapping on task .
(1) set of tasks mapped onto the FPGA | (2) set of tasks mapped onto the GPP | (3) if .area ≤ area then | (4) if CB() > () then | (5) | (6) | (7) area = area .area | (8) end if | (9) else | (10) | (11) while area .area and HW do | (12) if CB() - () > CB() then | (13) area = area + .area | (14) end if | (15) end while | (16) if .area ≤ area then | (17) | (18) | (19) area = area − .area | (20) else | (21) | (22) | (23) end if | (24) end if |
|