|
Algorithm 1 Initial Mapping and Frequency Assignment |
-
1:
sort W in a descending order of ;
-
2:
, set ▹ (i) Logical core mapping
-
3:
for to N
do
-
4:
find with the minimum value;
-
5:
set and update ;
-
6:
end for
-
7:
-
8:
for to M
do ▹ (ii) Frequency modulation
-
9:
while
do
-
10:
if
then ▹ Highest frequency
-
11:
return not schedulable;
-
12:
else ▹ Scaling up the frequency by one level
-
13:
when , adjust to ;
-
14:
end if
-
15:
end while
-
16:
end for
-
17:
calculate with Equation (1) (w/o )
-
18:
-
19:
, set ; ▹ (iii) Physical core mapping
-
20:
while
do
-
21:
find with the maximum ;
-
22:
; ;
-
23:
for
to M
do ▹ Find the smallest temp
-
24:
set ; ▹ Try mapping on
-
25:
evaluate the maximum temperature ;
-
26:
if
then
-
27:
; ;
-
28:
end if
-
29:
set ; ▹ Restore the mapping
-
30:
end for
-
31:
set ;
-
32:
;
-
33:
end while
-
34:
return schedulable;
|