원시데이터 수집 시스템
선정목록으로

HotSpot Thermal Floorplan Solver Using Conjugate Gradient to Speed Up

관련 엔지니어링 플라스틱 · (23) 컴파운드

기본 정보

저자
  1. Zhonghua Jiang — School of Computer Science and Technology, Wuhan University of Technology, Wuhan, China
  2. Ning Xu — School of Computer Science and Technology, Wuhan University of Technology, Wuhan, China
DOI
10.1155/2018/2921451
저널
Mobile Information Systems
발행년도
2018
발행기관
IOS Press
피인용수
5
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1155/2018/2921451
토픽
Advancements in Photolithography Techniques
OpenAlex ID
W2796297998

평가 내용

관련도
관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '엔지니어링 플라스틱 > 컴파운드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

We proposed to use the conjugate gradient method to effectively solve the thermal resistance model in HotSpot thermal floorplan tool. The iterative conjugate gradient solver is suitable for traditional sparse matrix linear systems. We also defined the relative sparse matrix in the iterative thermal floorplan of Simulated Annealing framework algorithm, and the iterative method of relative sparse matrix could be applied to other iterative framework algorithms. The experimental results show that the running time of our incremental iterative conjugate gradient solver is speeded up approximately 11x compared with the LU decomposition method for case ami49, and the experiment ratio curve shows that our iterative conjugate gradient solver accelerated more with increasing number of modules.

본문 38,231자

본문 펼치기
Hindawi Mobile Information Systems Volume 2018, Article ID 2921451, 8 pages [https://doi.org/10.1155/2018/2921451](https://doi.org/10.1155/2018/2921451) # _Research Article_ HotSpot Thermal Floorplan Solver Using Conjugate Gradient to Speed Up Zhonghua Jiang and Ning Xu _School_ _of_ _Computer_ _Science_ _and_ _Technology,_ _Wuhan_ _University_ _of_ _Technology,_ _Wuhan,_ _China_ [Correspondence should be addressed to Zhonghua Jiang; jzh800@126.com](mailto:jzh800@126.com) Received 9 November 2017; Revised 5 February 2018; Accepted 20 February 2018; Published 5 April 2018 Academic Editor: Yuh-Shyan Chen Copyright © 2018 Zhonghua Jiang and Ning Xu. /is is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. We proposed to use the conjugate gradient method to effectively solve the thermal resistance model in HotSpot thermal floorplan tool. /e iterative conjugate gradient solver is suitable for traditional sparse matrix linear systems. We also defined the relative sparse matrix in the iterative thermal floorplan of Simulated Annealing framework algorithm, and the iterative method of relative sparse matrix could be applied to other iterative framework algorithms. /e experimental results show that the running time of our incremental iterative conjugate gradient solver is speeded up approximately 11x compared with the LU decomposition method for case ami49, and the experiment ratio curve shows that our iterative conjugate gradient solver accelerated more with increasing number of modules. 1. Introduction With the constant improvement of the chip speed, power and temperature of a chip also increase accordingly. To cope with the increasing temperature of chips, the thermal aware floorplan method is widely used to avoid hotspots on chips in physical design. It makes the thermal problem to be more critical for physical design quality. In [1, 2], the authors employ the hierarchical thermal model to decrease the modules’ maximum temperature in chip physical design. /ey use _B_ <sup>∗</sup> -tree [3, 4] to represent the floorplan/placement with Simulated Annealing optimization algorithm. /e authors’ hierarchical thermal floorplan/placement includes two critical steps. First, they cluster the modules by power density, and then they use the Gauss–Seidel method to solve the thermal linear system. In the [1, 2], the authors only have done a theoretical analysis between the Gauss–Seidel method and the traditional LU decomposition matrix solver by loop iterative times. /ey assume that the time complexity of the traditional LU decomposition matrix solver is 2 _n_ <sup>3</sup> _/_ 3 and compare the Gauss–Seidel method real loop iterative times with _cn_ <sup>2</sup> instead of the real program or solver CPU running time. In [5], the authors compare the program running time; this comparison is not obvious because the program running time includes other cost computations and SA’s iterative time. In order to better compare the linear solver, in this study, we improve the timing statistical method and join the other precondition methods, such as the SSOR precondition. In [8], exponentially increasing power densities in current day designs due to aggressive technology scaling has resulted in temperature being one of the primary design constraints along with others like timing, area, and power. A lot of design techniques are being adopted during the physical design stage to minimize the power, apart from the architectural techniques like throttling for dynamic thermal management. In [8], the authors propose a practical methodology for better thermal management by floorplan modifications based on thermal hotspots obtained through dynamic simulations, without disturbing the logical connectivity information. /is methodology definitely warrants the benefits which can be readily realized by doing this analysis early in the design cycle. /is can also improve the placement of the thermal sensors and boost additional performance which can be extracted by their delayed triggering, considering the lateral spreading due to better floorplanning. 2 Mobile Information Systems In [9], with the continuing scaling of CMOS technology, on-chip temperature and thermal-induced variations have become a major design concern. To effectively limit the high temperature in a chip equipped with a cost-effective cooling system, thermal-specific approaches, besides low-power techniques, are necessary at the chip design level. /e high temperature in hotspots and large thermal gradients are caused by the high local power density and the nonuniform power dissipation across the chip. With the objective of reducing power density in hotspots, the authors proposed two placement techniques that spread cells in hotspots over a larger area. Increasing the area occupied by the hotspot directly reduces its power density, leading to a reduction in peak temperature and thermal gradient. To minimize the introduced overhead in delay and dynamic power, they maintained the relative positions of the coupling cells in the new layout. /ey compared the proposed methods in terms of temperature reduction, timing, and area overhead to the baseline method, which enlarges the circuit area uniformly. /e experimental results showed that our methods achieve a larger reduction in both peak temperature and thermal gradient than the baseline method. /e baseline method, although reducing peak temperature in most cases, has little impact on thermal gradient. In [10], with the thermal effect, improper analog placements may degrade circuit performance because the thermal gradient can affect electrical characteristics of the thermally sensitive devices. To mitigate the thermal effect in analog layout design, it is required to reduce thermally induced mismatches among matched devices in addition to eliminating thermal hot spots. /e study presented major challenges arising from the chip thermal gradient for analog placement, introduced nonuniform and uniform thermal profiles as well as the corresponding placement configurations, surveyed key existing techniques for analog placement under nonuniform and uniform thermal profiles, and provided the experimental results for analog placement with thermal consideration. In [11], the work developed a thermal aware placer, /ermPL, to abate both on-chip peak temperature and thermal gradient by developing thermal force and padding techniques cooperated with rough legalization in the forcedirected global placement. /ermal padding is firstly adopted to reduce local power density. To make use of thermal force, the authors used the thermal gain basis to fast and accurately capture the temperature distribution of a placement and effectively calculate the thermal contribution of cells based on the thermal locality. /en, they utilized the proposed innate thermal force assessed through thermal criticality and capabilities to spread cells away from hotspots. With the thermal gain basis, /ermPL can efficiently obtain the thermal profile of placement with the maximum error of 0.65% compared with a commercial tool. Experimental results show that /ermPL can provide 7% and 19% reduction on average in peak temperature and thermal gradient, respectively, within only 4.6% wirelength overhead. In [12], with the thermal effect, improper analog placements may degrade circuit performance because the thermal impact from power devices can affect electrical characteristics of the thermally sensitive devices. /ere is not much previous work that considers the desired placement configuration between power and thermally sensitive devices for a better thermal profile to reduce the thermally induced mismatches. /e study first introduced the properties of a desired thermal profile for better thermal matching of the matched devices. It then presented a thermal-driven analog placement methodology to achieve the desired thermal profile and to consider the best device matching under the thermal profile while satisfying the symmetry and the common-centroid constraints. Experimental results based on real analog circuits show that the proposed approach can achieve the best analog circuit performance/accuracy with the least impact due to the thermal gradient, among existing works. In this study, we embed the iterative conjugate gradient method into HotSpot floorplan to compare the real CPU running time different solvers with the same compiler and running environment. /e conjugate gradient solver was imported into the thermal floorplan tool HotSpot [13], comparing with its previous LU decomposition solver. /en, we can compare the running time with different solvers of thermal floorplan between conjugate gradient method and LU decomposition solver. /e thermal floorplan solver is switched by the program command line parameter with the same running environment such as CPU and memory, GCC version, and compiler’s option. It is more convective to compare CPU time with two solvers than theoretical analysis about loop iterative times. We also use the SSOR and Jacobi preconditions to accelerate the conjugate gradient solver. HotSpot thermal aware floorplan employs the thermal model to compute the blocks’ temperature; the thermal temperature metric is combining with other area and wire length metrics, and it is a relative sparse matrix in the HotSpot thermal model of iterative SA framework algorithm. /e HotSpot thermal floorplan can decrease the maximum of block temperature by evenly distributing the power density, avoiding hotspots in the floorplan step of physical design. We import an iterative method to solve this kind of relative sparse linear system in the thermal model of floorplan. /is paper’s contributions include the following: (i) /e relative sparse matrix is defined. It can speed up linear system solver convergence by the iterative sparse method. (ii) /e conjugate gradient iterative method is imported in the HotSpot floorplan thermal model. It is an efficient algorithm that can reduce the running time by accelerating the linear solver in hotspot. /is paper is organized as follows. Section 2 introduces the HotSpot floorplan flow. Relative sparse matrix definition and the thermal resistance model are given in Section 3 and Section 4, respectively. Section 5 shows the result of experiments, and conclusions and future research are given in Section 6. 2. HotSpot Thermal Floorplan /e VLSI physical design floorplan is to place the blocks without overlap in the silicon die, and the floorplan algorithm needs to obey the chip constraint, optimizing area, wire Mobile Information Systems 3 length, and thermal temperature metrics’ cost. /e placement temperature is solved by linear equations in the thermal model. _2.1._ _Introduction_ _of_ _Hot_ _!ermal_ _Floorplan._ /e floorplan/ placement of physical design is a critical step for the thermal aware design. Hot floorplan is a thermal aware tool to decrease the module temperature and avoid the hotspot convergence. /e hot floorplan merges the thermal cost with the traditional area and wire length cost into iterative Simulated Annealing algorithm, and it is time-consuming to solve the module temperature in the iterative Simulated Annealing algorithm. We also use the HotSpot model to guide thermal floorplan/placement to do static temperature computer and modules’ temperature statistics, and then the thermal cost is integrated with the other area and wire length to do thermal aware physical design. HotSpot builds a thermal model to compute the dynamic block or grid temperature on chip. We import the conjugate gradient solver to accelerate the thermal block model computation in floorplan SA algorithm. 3. Relative Sparse Matrix of Iterative Framework Algorithm /ere are more sophisticated algorithms to solve sparse linear equations, avoiding to process zero entries of sparse matrix [6, 7], such as the iterative method of linear systems. /e relative sparse matrix is not a strict sparse matrix and it tends to be a dense matrix; relative sparse matrix means that there is a few “interesting” entry between one matrix and another. _3.1.RelativeSparseMatrix._ Relative sparse matrix definition: if the matrix _R_ - _Ak_ +1 − _Ak_ is sparse, there is a few nonzero values of matrix _R_ items. We define that matrices _Ak_ and _Ak_ +1 are relatively sparse; in other words, the matrix _Ak_ +1 is a sparse matrix relative to matrix _Ak_ . Assume there are two linear equations _Ak_ ∗ _x_ - _b_ and _Ak_ +1 ∗ _x_ - _b_, the order of solving linear equations is as follows: the first step is solving _Ak_ ∗ _x_ - _b_, the second step is solving _Ak_ +1 ∗ _x_ - _b_ in sequentially iterative framework algorithm; for example, Simulated Annealing algorithm solves _Ak_ ∗ _x_ - _b_ and _Ak_ +1 ∗ _x_ - _b_ sequentially with the same vector _b_, in a linear system with different matrices from _Ak_ to _Ak_ +1. In this case of sequentially relative sparse matrix, the iterative methods are employed to solve the relative sparse linear equations to reduce the number of iterations for the convergence. /e detail operations are described as follows: In the first step, the linear system _A_ 0 ∗ _x_ - _b_ is solved trivially, obtaining the solution _x_ 0, and then we reuse the solution _x_ 0 as the initial estimate value for the linear equations _A_ 1 ∗ _x_ - _b_ . In the same way, we reuse the solution _xk_ of _Ak_ ∗ _x_ - _b_ to be initial estimate value of _Ak_ +1∗ _x_ - _b_, _k_ ≥ 0 sequentially. In this case of the sequence relative sparse matrix, if we set the initial estimate value of _Ak_ +1 ∗ _x_ - _b_ equal to _xk_, _xk_ is the previous solution of _Ak_ ∗ _x_ - _b_, and it can speed up the iterative method convergence. Because the changes of the matrix from _Ak_ to _Ak_ +1 is little, even though the matrices _Ak_ and _Ak_ +1 are full matrix not traditional sparse matrix about entry densities, the matrix _Ak_ +1 is a sparse matrix relative to the matrix _Ak_ . We can call this relative sparse linear system computation as the incremental updating solution method. In the iterative algorithm, the previous iterative solution preserved as intermediate solution is the initial estimate value for current iteration in the linear system. 4. Relative Sparse Matrix in Thermal Floorplan of SA Framework Algorithm _4.1._ _!ermal_ _Model_ _Introduction._ In the floorplan of VLSI physical design, the circuit modules are randomly placed in the die using Simulated Annealing; once the Simulated Annealing generates a floorplan of circuit modules, we calculate the cost metric of die area, wire length between circuit modules, and the maximum temperature of circuit modules by the thermal model. /e Simulated Annealing is an iterative optimizing algorithm; the thermal model is incorporated into the SA (Simulated Annealing). /e thermal conduct in the die is complex [14], and it can be an abstracted thermal resistant model [15]: _R_ ∗ _T_ - _P_ ⇒ _T_ - _R_ <sup>−1</sup> ∗ _P,_ (1) where _T_ and _P_ are the vectors representing temperature and power consumption, respectively; thermal resistance _R_ is the square matrix and symmetric matrix. Once the circuit blocks are determined, the blocks’ power _P_ vector will not change, and it is a constant vector. /ermal resistance matrix _R_ will change entry values according to the placement detail, and it is a dense matrix instead of the sparse matrix, but it matches the relative sparse matrix definition in iterative Simulated Annealing framework algorithm. /e Simulated Annealing algorithm changes placement, a few from one stage to another, computing new cost of metrics, for example, moving a block from one location to another unused location, and this perturbation will only change one block’s location in placement so that the thermal conduct between blocks and most block’s temperature changes little too. Here the updating block’s thermal resistance matrix _R_ is a dense matrix but has a few “interesting” changes about thermal resistance matrix items, and it is a relative sparse matrix between _Rn_ +1 and _Rn_ . /e new thermal resistance matrix _Rn_ +1 is a relative sparse matrix with _Rn_ . _4.2._ _LU_ _Decomposition_ _Solving_ _Linear_ _Equation._ Solving linear equations gave a system of linear equations in the matrix form: _Ax_ - _b._ (2) Given matrix _A_ and vector _b_, the solution _x_ is needed to be solved. /e matrix _A_ is LUP decomposed such that PA � LU. /e linear equations could be transformed into LU form equivalently as 4 Mobile Information Systems LU _x_ - _Pb._ (3) /e LU solver is done in two logical steps: (i) First step: solving the lower triangular matrix linear equations, L _y_ - _Pb_ for _y_ (ii) Second step: solving the upper triangular matrix linear equations, _Ux_ - _y_ /e cost of solving a system of linear equations is approximately 2 _n_ <sup>3</sup> _/_ 3 floating point operations if the matrix _A_ has size _n_ [16]. /e LU decomposition is the direct solver method of the linear equation. _4.3._ _Incrementally_ _Iterative_ _Conjugate_ _Gradient_ _Solver_ _and_ _Convergence._ /ere are many iterative linear solver methods including conjugate gradient, Gauss–Seidel, and successive over relaxation. In this study, the conjugate gradient method is used to solve the thermal model in floorplan. _4.3.1._ _Convergence_ _of_ _Incrementally_ _Iterative_ _Conjugate_ _Gradient_ _Solver._ /e conjugate gradient method is convergence if the matrix is symmetric and positive definite. /e condition number associated with the linear equation _Ax_ _b_ gives a bound on how inaccurate the solution _x_ will be after approximation. /e condition number of matrix is the product of the two operator norms: _κ_ ( _A_ ) � ���� _A_ <sup>−1</sup> ���� - ‖ _A_ ‖ _._ (4) If _A_ is normal, then _κ_ ( _A_ ) �| _λ_ max( _A_ ) _/λ_ min( _A_ )|, where _λ_ max( _A_ ) and _λ_ min( _A_ ) are maximum and minimum values of eigenvalues of a matrix _A_, respectively. /e convergence of CG depends on the condition number of matrix _κ_ ( _A_ ) which is equal to | _λ_ max( _A_ ) _/λ_ min( _A_ )|. Denoting initial guess for _x_ 0, at starting of the SA algorithm, we can assume that _x_ 0 �[0 _,_ . . . _,_ 0]; if we get _x_ after the first time linear solver, then the conjugate gradient solver will reuse the previous _xk_ as the next time initial estimate value _xk_ +1, _k_ ≥ 0. /is incremental updating solution method can accelerate the solver convergence. /e conjugate gradient method inspires _Ax_ - _b_ solution, and _x_ ∗ is also unique in minimizing the following quadratic function: _f_ ( _x_ ) � <sup><u>1</u></sup> 2 <sup>_~~x~~_</sup> <sup>_TAx_</sup> <sup>−</sup> <sup>_xTb,_</sup> _x_ ∈ _R_ <sup>_n_</sup> _._ (5) /is suggests taking the first basis vector _p_ 1 to be the negative of the gradient of _f_ ( _x_ ) at _x_ - _x_ 0, the gradient of _f_ ( _x_ ) equals _Ax_ 0 − _b_, and we take _p_ 1 - _b_ - _Ax_ 0. It is conjugate to gradient between the vectors. Let _rk_ be the residual at the _k_ th step: _rk_ - _b_ - _Axk._ (6) Note that _rk_ is the negative gradient of _f_ at _x_ - _xk_, so the gradient descent method would be to move in the direction _rk_ . Here, we insist that the directions _pk_ be conjugate to each other. We also require that the next search direction be built out of the current residue and all previous search directions, which is reasonably enough in practice. _4.3.2._ _Pseudocode_ _of_ _Conjugate_ _Gradient_ _Algorithm._ /e algorithm is detailed below for solving _Ax_ - _b_, where _A_ is a real, symmetric, positive-definite matrix. /e input vector _x_ 0 can be an approximate initial solution or 0. /e pseudocode of conjugate gradient solver is shown in Algorithm 1. _4.3.3._ _Precondition_ _of_ _Conjugate_ _Gradient_ _Method._ In most cases, preconditioning is necessary to ensure fast convergence of the conjugate gradient method. /e preconditioned conjugate gradient method takes the following form. We consider a preconditioned system of _M_ <sup>−1</sup> _Ax_ - _M_ <sup>−1</sup> _b,_ (7) where _M_ is a nonsingular matrix. Jacobi preconditioning: the simplest preconditioner consists of just the diagonal of the matrix: _mi,j_ _ai,j_ if _i_ �� _j_ ? (8) 0 else _i_ ! � _j._ /is is known as the Jacobi preconditioner. /e SSOR preconditioner, like the Jacobi preconditioner, can be derived from the coefficient matrix without any work. If the original, symmetric matrix is decomposed as _A_ - _D_ + _L_ + _L_ <sup>_T_</sup> _,_ (9) in its diagonal, lower, and upper triangular part, the SSOR matrix is defined as _M_ �( _D_ + _L_ ) _D_ <sup>−1</sup> ( _D_ + _L_ ) <sup>_T_</sup> _._ (10) /e pseudocode of the conjugate gradient solver with preconditioned is shown as Algorithm 1. _4.3.4. Incrementally Inherits Initializing Estimate Value from_ _Previous_ _Solution._ /e HotSpot thermal floorplan is using the iterative Simulated Annealing algorithm. /e Simulated Annealing algorithm changes the placement from one to another, only one or two blocks’ location, and the most blocks’ temperatures change a little. If the initialize estimate value inherits from the previous temperature result, it can reduce the number of iteration times for convergence. It is the reason that the SA framework floorplan algorithm employs the iterative conjugate gradient solver to accelerate the convergence for the thermal model. /e pseudocode of SA thermal floorplan algorithm with the conjugate gradient thermal solver is shown in Algorithm 2. _4.4. Stopping Criteria for Iteration Solver._ /e residual _r_ norm is computed as follows: _r_ norm �( _r, r_ ) �(( _b_ - _A_ ∗ _x_ ) _,_ ( _b_ - _A_ ∗ _x_ )) _._ (11) Mobile Information Systems 5 Require : _f(x)_ : objective function; _x_ 0: initial solution; Ensure : optimal _x_ <sup>∗</sup> (1) int Iter - 0; (2) double _α_, _β_, rp, rpold, _b_ norm, _r_ norm; (3) vector _r_, _p_, _q_, _z_ ; (4) initial _r_ - _b_ ? _A_ ? _x_ ; (5) _r_ norm - ( _r_, _r_ ); (6) while ( _r_ norm < precision) do (7) if using preconditioned then (8) _z_ - _M_ <sup>−1</sup> _r_ ; (using difference preconditioned) (9) else (10) _z_ - _r_ ; (no preconditioned) (11) end if (12) rp - ( _r_, _z_ ); (13) if Iter �� 1 then (14) _p_ 0 - _z_ (15) else (16) _β_ - rp/rpold; (17) _p_ - _z_ + _β_ ∗ _p_ (18) end if (19) _q_ - _A_ ∗ _p_ ; (20) _α_ - ( _r_, _z_ )/( _p_, _q_ ); (21) _x_ - _x_ + _α_ ∗ _p_ ; (22) _r_ - _r_ - _α_ ∗ _q_ ; (23) _r_ norm - ( _r_, _r_ ); (24) rpold - rp; (25) end while ALGORITHM 1: /e conjugate gradient algorithm as an iterative method. If and only if _r_ norm < aimprecision, the iterations are terminated after the residual is less small than the desired precision. /e overall iterative times of the conjugate gradient solver are _O_ ( _k_ <sup>3</sup> ) in floorplan [17]. /e conjugate gradient solver with preconditioned is _O_ ( _k_ <sup>2</sup> <sup>_._</sup> <sup>5</sup> ); in two-dimensional problem, _n_ - _k_ <sup>2</sup>, and in three-dimensional, _n_ - _k_ <sup>3</sup> . /e linear equations can be solved by LU in time 2 _n_ <sup>3</sup> _/_ 3. /e analysis and experiment also prove the excellence of the conjugate gradient incremental updating solution method in the SA iterative framework algorithm of thermal floorplan. 5. Results of Experiments /e conjugate gradient algorithm is imported into the open source HotSpot floorplan [15] in C and C++ program language. /e HotSpot thermal floorplan uses the SA (Simulated Annealing) [18] optimal algorithm. /e experiments are running on Ubuntu with Intel® Core™ CPU i5-2300 2.80 GHz and 12 G memory. /e benchmarks are MCNC [19] benchmark circuits. /e block power trace is generated by a Perl script random function, and the power density ranges from 10 <sup>5</sup> W/m <sup>2</sup> to 10 <sup>7</sup> W/m <sup>2</sup> for each block [14]. It is a more convictive way to compare CPU time of two linear solvers in same program; the conjugate gradient algorithm is been implanted by the C++ code and merged into the hot floorplan [15]; and the conjugate gradient algorithm compares with the hot floorplan default LU decomposition solver. /e two linear solvers of program are switched by the command line parameter, so the program run environment, such as CPU, memory, GCC version, and compile option, is the same. Table 1 shows that the conjugate gradient solver without precondition (CG normal in the table) run time is approximate; in the LU decomposition solver on MCNC case, the run time unit is second; the conjugate gradient without precondition solver run time is about speed up averagely 1.49 compared with the LU decomposition solver; the LU decomposition solver once average time is 0.00387 second (3.87 _E_ - 03 in the table); and the conjugate gradient solver without precondition solver once average time is 0.00191 second (1.91 _E_ - 03 in the table). Table 2 shows that the conjugate gradient solver with Jacobi precondition run time is quicker than the LU decomposition solver, and the conjugate gradient solver with Jacobi precondition run time speeds up averagely 4.32x comparing with the LU decomposition solver. /e conjugate gradient solver with the Jacobi precondition solver once had an average time of 0.000567 second (5.67 _E_ - 04 in table). Table 3 shows that the conjugate gradient solver with SSOR precondition run time is less better than the conjugate gradient solver with the Jacobi Precondition; the conjugate gradient solver with SSOR precondition run time speeds up averagely 5.18x with the LU decomposition solver; the conjugate gradient solver with the SSOR precondition solver once had an average time of 0.000473 second (4.73 _E_ - 04 in table). It is 11x for test case ami49. /e profit of conjugate gradient solver with SSOR 6 Mobile Information Systems Require : cost( _f_ ) SA floorplan evaluate metric; Ensure : optimal floorplan _f_ <sup>∗</sup> 1 _r_ norm - ( _r_, _r_ ); 2 int Iter - 0; 3 double _α_, _β_, rp, rpold, _b_ norm, _r_ norm; 4 vector _r_, _p_, _q_, _z_ ; 5 initial _T_ schedule; 6 / ∗ stop annealing if temperature has cooled down enough or max no. of iterations have been tried ∗ / 7 while ( _T_ ≥ _T_ cold && steps < cfg. _N_ max) do 8 _n_ - cfg. _K_ moves ∗ flp−> _n_ units; 9 _i_ - downs - rejects - 0; 10 sumcost - 0; 11 /∗ try enough total or downhill moves per _T_ ∗/ 12 while ( do ( _i_ < 2 ∗ _n_ )&&(downs < _n_ )) 13 make random move and data process to floorplan 14 new cost - floorplan evaluate metric; 15 // area ( _A_ ), temperature ( _T_ ), and wire length ( _W_ ): 16 lambda _A_ ∗ _A_ + lambda _T_ ∗ _T_ + lambda _W_ ∗ _W_ 17 reusing the _T_ to be linear solver initial solution 18 if (new cost < cost ‖ rand fraction() < exp(−(new cost − cost)/ _T_ )) then 19 /∗ downhill always accepted ∗/ 20 or /∗ Boltzmann probability function ∗/ 21 accepted new cost 22 else 23 rejects++; 24 end if 25 _i_ ++; 26 end while 27 /∗ stop annealing if there are too little accepts ∗/ 28 if ((rejects/ _i_ ) - cfg. _R_ reject) 29 break ; 30 /∗ annealing schedule ∗/ 31 _T_ <sup>∗</sup> - cfg. _R_ cool;; 32 steps++; 33 end while ALGORITHM 2: /e SA thermal floorplan algorithm with the conjugate gradient thermal solver. Table 1: /e conjugate gradient solver without precondition. LU solver CG Design name Block number <u>Run</u> <u>time</u> <u>Solver</u> <u>times</u> <u>Solver</u> <u>average</u> <u>time</u> <u>Run</u> <u>time</u> <u>Ratio</u> <u>Solver</u> <u>average</u> <u>time</u> xerox 10 5.69 26601 2.14 _E_ - 04 5.32 1.07 2.00 _E_ - 04 hp 11 7.53 29401 2.56 _E_ - 04 8.88 0.85 3.02 _E_ - 04 ami33 33 337.87 91001 3.71 _E_ - 03 299.52 1.13 3.29 _E_ - 03 ami49 49 1534.41 135801 1.13 _E_ - 02 524.65 2.92 3.86 _E_ - 03 <u>avg</u> <u>25.75</u> <u>471.38</u> <u>70701</u> <u>3.87</u> _<u>E</u>_ <u>−</u> <u>03</u> <u>209.59</u> <u>1.49</u> <u>1.91</u> _<u>E</u>_ <u>−</u> <u>03</u> precondition gains the best result ratio comparing with the LU decomposition solver. Figure 1 shows the conjugate gradient solver run time versus the LU decomposition solver on the MCNC benchmark. /e figure name rule: the CG is the conjugate gradient solver without precondition; the Jacobi is the conjugate gradient solver with Jacobi precondition; the SSOR is the conjugate gradient solver with SSOR precondition. /e conjugate gradient solver without precondition run time is more than the LU decomposition solver on two small cases, and less than on large cases; the conjugate gradient solver with Jacobi and SSOR precondition experimental results are less than the LU decomposition solver results. /e precondition is important for the iterative conjugate gradient solver. Figure 2 shows the conjugate gradient solver run time ratio versus the LU decomposition solver on the MCNC benchmark. Naming rules are consistent with Figure 1. /e experimental ratio curve shows that our iterative conjugate gradient solver accelerated more with increasing number of modules. We also received the reviewer proposal to adapt to the larger GSRC benchmark of examples to test the scalability of Mobile Information Systems 7 Table 2: /e conjugate gradient solver with the Jacobi precondition. LU solver CG with Jacobi precondition Design name Block number <u>Run</u> <u>time</u> <u>Solver</u> <u>times</u> <u>Solver</u> <u>average</u> <u>time</u> <u>Run</u> <u>time</u> <u>Ratio</u> <u>Solver</u> <u>average</u> <u>time</u> xerox 10 5.69 26601 2.14 _E_ - 04 3.97 1.43 1.49 _E_ - 04 hp 11 7.53 29401 2.56 _E_ - 04 5.3 1.42 1.80 _E_ - 04 ami33 33 337.87 91001 3.71 _E_ - 03 65.76 5.14 7.23 _E_ - 04 ami49 49 1534.41 135801 1.13 _E_ - 02 165.02 9.3 1.22 _E_ - 03 <u>avg</u> <u>25.75</u> <u>471.38</u> <u>70701</u> <u>3.87</u> _<u>E</u>_ <u>−</u> <u>03</u> <u>60.01</u> <u>4.32</u> <u>5.67</u> _<u>E</u>_ <u>−</u> <u>04</u> Table 3: /e conjugate gradient solver with SSOR precondition. LU solver CG with SSOR precondition Design name Block number <u>Run</u> <u>time</u> <u>Solver</u> <u>times</u> <u>Solver</u> <u>average</u> <u>time</u> <u>Run</u> <u>time</u> <u>Ratio</u> <u>Solver</u> <u>average</u> <u>time</u> xerox 10 5.69 26601 2.14 _E_ - 04 3.74 1.52 1.41 _E_ - 04 hp 11 7.53 29401 2.56 _E_ - 04 5.04 1.5 1.71 _E_ - 04 ami33 33 337.87 91001 3.71 _E_ - 03 53.44 6.32 5.87 _E_ - 04 ami49 49 1534.41 135801 1.13 _E_ - 02 134.7 11.39 9.92 _E_ - 04 <u>avg</u> <u>25.75</u> <u>471.38</u> <u>70701</u> <u>3.87</u> _<u>E</u>_ <u>−</u> <u>03</u> <u>49.23</u> <u>5.18</u> <u>4.73</u> _<u>E</u>_ <u>−</u> <u>04</u> 1800 1600 1400 1200 1000 800 600 400 200 0 10 15 20 25 30 35 40 45 50 Table 4: /e conjugate gradient solver with SSOR precondition run time on the GSRC benchmark. Design <u>name</u> Block <u>number</u> LU solver <u>second</u> <u>(s)</u> CG solver with Ratio <u>SSOR second (s)</u> LU CG Jacobi SSOR Figure 1: Run time comparing with different block numbers. 12 10 8 6 4 2 0 10 15 20 25 30 35 40 45 50 LU CG Jacobi SSOR Figure 2: Ratio of run time comparing with different block numbers. our algorithm. However, we need to emphasize that HotSpot floorplan is designed for the CPU small quantity module floorplan, which is not suitable for running the large n100 100 380.857101 44.486236 8.561234558 n200 200 6411.656280 311.195691 20.60329389 n300 300 32716.53333 1326.933276 24.65574865 <u>Avg</u> <u>600</u> <u>13169.68224</u> <u>560.8717343</u> <u>17.94009237</u> collection of placement instances, so the running time is relatively long. Table 4 shows that the conjugate gradient solver with SSOR precondition run time is better than the LU decomposition solver, the conjugate gradient solver with SSOR precondition run time speeds up averagely 17x with the LU decomposition solver, the conjugate gradient solver with SSOR precondition is 24x for test case n300. /e profit of the conjugate gradient solver with SSOR precondition gains the best result ratio comparing with the LU decomposition solver. 6. Conclusions and Future Work /e conjugate gradient solver is often been used in large sparse matrix method computation, and the HotSpot thermal floorplan could be speeded up by using the sparse matrix iterative linear solver. /e experiments show that the iterative conjugate gradient solver is faster than the direct LU decomposition solver on the MCNC benchmark. /e relative sparse matrix theory could be applied to other iterative framework algorithms, and the relative sparse matrix could be extensible. /e future works may be the following: (i) Extend to other precondition methods of an iterative linear solver, and we could use other preconditions. 8 Mobile Information Systems (ii) Explore sparse linear system theory to speed up our program because there are many theoretical innovations to solve linear system in the last two decades. Conflicts of Interest /e authors declare that they have no conflicts of interest. Acknowledgments Special thank are due to Michigan Technological University Professor Zhuo Feng for the technical discussion with great significance. /is paper was supported by “the Fundamental Research Funds for the Central Universities.” References [1] Z. H. Jiang, N. Xu, F. Huang, Y. C. Ma, and X. L. Hong, “Hierarchical thermal model using Gauss-Seidel method in floor-planning,” in _Proceedings of the International Conference_ _on_ _ASIC_ _(ASICON)_, pp. 2102–2104, Guilin, China, October 2007. [2] N. Xu and Z. H. Jiang, “/ermal aware floorplanning using Gauss-Seidel method,” _Journal_ _of_ _Electronics_, vol. 25, no. 6, pp. 845–851, 2008. [3] Y. C. Chang, Y. W. Chang, G. M. Wu, and S. W. Wu, “B <sup>∗</sup> -trees: a new representation for nonslicing floorplans,” in _Proceedings_ _of the Design Automation Conference (DAC)_, pp. 458–463, Los Angeles, CA, USA, 2000. [4] S. N. Adya and I. L. Markov, “Fixed-outline floorplanning: enabling hierarchical design,” _IEEE Transactions on Very Large_ _Scale_ _Integration_ _(VLSI)_ _Systems_, vol. 11, no. 6, pp. 1120–1135, 2003. [5] Z. H. Jiang, N. Xu, and C. X. Wu, “/ermal floorplan base on conjugate gradient solver in hotspot,” in _Proceedings_ _of_ _the_ _International_ _Conference_ _on_ _Resources,_ _Environment,_ _In-_ _formation_ _and_ _Engineering_ _Innovation_ _(REIEI2014)_, pp. 908– 912, Nanchang, China, July 2014. [6] V. Pavankumar Kalangi, M. Ashwin Kumar, P. Agrawal, R. S. T. G. Srinivasa, and A. Pal, “Methodology for thermal aware physical design,” in _Proceedings_ _of_ _the_ _TENCON_ _2008-2008_ _IEEE_ _Region_ _10_ _Conference_, pp. 1–4, November 2008. [7] W. Liu, A. Calimera, A. Macii, E. Macii, A. Nannarelli, and M. Poncino, “Layout-driven post-placement techniques for temperature reduction and thermal gradient minimization,” _IEEE_ _Transactions_ _on_ _Computer-Aided_ _Design_ _of_ _Integrated_ _Circuits_ _and_ _Systems_ _Year_, vol. 32, no. 3, pp. 406–418, 2013. [8] M. P.-H. Lin, “Recent research in analog placement consid ering thermal gradient,” in _Proceedings_ _of_ _the_ _20th_ _European_ _Conference_ _on_ _Circuit_ _!eory_ _and_ _Design_ _(ECCTD)_, pp. 349– 352, Link¨oping, Sweden, August 2011. [9] J. Song, Y.-M. Lee, and C.-T. Ho, “/ermPL: thermal-aware placement based on thermal contribution and locality,” in _Proceedings_ _of_ _the_ _International_ _Symposium_ _on_ _VLSI_ _Design,_ _Automation and Test (VLSI-DAT)_, Hsinchu, Taiwan, April 2016. [10] M. P.-H. Lin, H. Zhang, M. D. F. Wong, and Y.-W. Chang, “/ermal-driven analog placement considering device matching,” _IEEE Transactions on Computer-Aided Design of Integrated_ _Circuits_ _and_ _Systems_, vol. 30, no. 3, pp. 325–336, 2011. [11] K. Skadron, K. Sankaranarayanan, S. Velusamy, D. Tarjan, M. R. Stan, and W. Huang, “Temperature-aware microarchitecture: modeling and implementation,” _ACM_ _Transactions_ _on_ _Architecture_ _and_ _Code_ _Optimization_, vol. 1, no. 1, pp. 94–125, 2004. [12] P. E. Black, “Sparse matrix,” in _Dictionary_ _of_ _Algorithms_ _and_ _Data_ _Structures_, vol. 27, U.S. National Institute of Standards and Technology, Gaithersburg, MD, USA, June 2006, [http://](http://www.nist.gov/dads/HTML/sparsematrix.html) [www.nist.gov/dads/HTML/sparsematrix.html.](http://www.nist.gov/dads/HTML/sparsematrix.html) [13] K. Michael and T. Heath, _Scientific_ _Computing:_ _An_ _In-_ _troductory_ _Survey_, McGraw-Hill, New York, NY, USA, 2nd edition, 2002. [14] C.-H. Tsai and S.-M. S. Kang, “Cell-level placement for im proving substrate thermal distribution,” _IEEE Transactions on_ _CAD_ _of_ _Integrated_ _Circuits_ _and_ _Systems_, vol. 19, no. 2, pp. 253–266, 2000. [15] K. Skadron, M. R. Stan, W. Huang, S. Velusamy, K. Sankaranarayanan, and D. Tarjan, _Temperature-Aware_ _Microarchitecture:_ _Extended_ _Discussion_ _and_ _Results_, Tech. Rep. CS-2003-08, Department of Computer Science, University of Virginia, April 2003. [16] L. N. Trefethen and D. Bau, _Numerical Linear Algebra_, Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, 1997. [17] W. Yu, _Numerical_ _Analysis_ _and_ _Algorithms_, Tsinghua Uni versity Press, Beijing, China, 2011, in Chinese, [http://learn.](http://learn.tsinghua.edu.cn:8080/2003990088/index.htm) [tsinghua.edu.cn:8080/2003990088/index.htm.](http://learn.tsinghua.edu.cn:8080/2003990088/index.htm) [18] S. Kirkpatrick, C. D. Gelatt, and M. P. Vecchi, “Optimization by simulated annealing,” _Science_, vol. 220, no. 4598, pp. 671–680, 1983. [19] P.-N. Guo, C.-K. Cheng, and T. Yoshimura, “An O-tree representation of non-slicing floorplan and its applications,” in _Proceedings_ _of_ _the_ _ACM/IEEE_ _Design_ _Automation_ _Confer-_ _ence_, Los Angeles, CA, USA, June 1999.

섹션 본문 83문단 · 24,829자

(제목 없음)

1We proposed to use the conjugate gradient method to effectively solve the thermal resistance model in HotSpot thermal floorplan tool.e iterative conjugate gradient solver is suitable for traditional sparse matrix linear systems.We also defined the relative sparse matrix in the iterative thermal floorplan of Simulated Annealing framework algorithm, and the iterative method of relative sparse matrix could be applied to other iterative framework algorithms.e experimental results show that the running time of our incremental iterative conjugate gradient solver is speeded up approximately 11x compared with the LU decomposition method for case ami49, and the experiment ratio curve shows that our iterative conjugate gradient solver accelerated more with increasing number of modules.

Introduction

2With the constant improvement of the chip speed, power and temperature of a chip also increase accordingly.To cope with the increasing temperature of chips, the thermal aware floorplan method is widely used to avoid hotspots on chips in physical design.It makes the thermal problem to be more critical for physical design quality.In [1,2], the authors employ the hierarchical thermal model to decrease the modules' maximum temperature in chip physical design.

3ey use B * -tree [3,4] to represent the floorplan/placement with Simulated Annealing optimization algorithm.e authors' hierarchical thermal floorplan/placement includes two critical steps.First, they cluster the modules by power density, and then they use the Gauss-Seidel method to solve the thermal linear system.In the [1,2], the authors only have done a theoretical analysis between the Gauss-Seidel method and the traditional LU decomposition matrix solver by loop iterative times.ey assume that the time complexity of the traditional LU decomposition matrix solver is 2n 3 /3 and compare the Gauss-Seidel method real loop iterative times with cn 2 instead of the real program or solver CPU running time.

4In [5], the authors compare the program running time; this comparison is not obvious because the program running time includes other cost computations and SA's iterative time.In order to better compare the linear solver, in this study, we improve the timing statistical method and join the other precondition methods, such as the SSOR precondition.

5In [8], exponentially increasing power densities in current day designs due to aggressive technology scaling has resulted in temperature being one of the primary design constraints along with others like timing, area, and power.A lot of design techniques are being adopted during the physical design stage to minimize the power, apart from the architectural techniques like throttling for dynamic thermal management.In [8], the authors propose a practical methodology for better thermal management by floorplan modifications based on thermal hotspots obtained through dynamic simulations, without disturbing the logical connectivity information.

6is methodology definitely warrants the benefits which can be readily realized by doing this analysis early in the design cycle.

7is can also improve the placement of the thermal sensors and boost additional performance which can be extracted by their delayed triggering, considering the lateral spreading due to better floorplanning.

8In [9], with the continuing scaling of CMOS technology, on-chip temperature and thermal-induced variations have become a major design concern.To effectively limit the high temperature in a chip equipped with a cost-effective cooling system, thermal-specific approaches, besides low-power techniques, are necessary at the chip design level.e high temperature in hotspots and large thermal gradients are caused by the high local power density and the nonuniform power dissipation across the chip.With the objective of reducing power density in hotspots, the authors proposed two placement techniques that spread cells in hotspots over a larger area.Increasing the area occupied by the hotspot directly reduces its power density, leading to a reduction in peak temperature and thermal gradient.To minimize the introduced overhead in delay and dynamic power, they maintained the relative positions of the coupling cells in the new layout.ey compared the proposed methods in terms of temperature reduction, timing, and area overhead to the baseline method, which enlarges the circuit area uniformly.

9e experimental results showed that our methods achieve a larger reduction in both peak temperature and thermal gradient than the baseline method.

10e baseline method, although reducing peak temperature in most cases, has little impact on thermal gradient.

11In [10], with the thermal effect, improper analog placements may degrade circuit performance because the thermal gradient can affect electrical characteristics of the thermally sensitive devices.To mitigate the thermal effect in analog layout design, it is required to reduce thermally induced mismatches among matched devices in addition to eliminating thermal hot spots.

12e study presented major challenges arising from the chip thermal gradient for analog placement , introduced nonuniform and uniform thermal profiles as well as the corresponding placement configurations, surveyed key existing techniques for analog placement under nonuniform and uniform thermal profiles, and provided the experimental results for analog placement with thermal consideration.

13In [11], the work developed a thermal aware placer, ermPL, to abate both on-chip peak temperature and thermal gradient by developing thermal force and padding techniques cooperated with rough legalization in the forcedirected global placement.

14ermal padding is firstly adopted to reduce local power density.To make use of thermal force, the authors used the thermal gain basis to fast and accurately capture the temperature distribution of a placement and effectively calculate the thermal contribution of cells based on the thermal locality.en, they utilized the proposed innate thermal force assessed through thermal criticality and capabilities to spread cells away from hotspots.With the thermal gain basis, ermPL can efficiently obtain the thermal profile of placement with the maximum error of 0.65% compared with a commercial tool.Experimental results show that ermPL can provide 7% and 19% reduction on average in peak temperature and thermal gradient, respectively, within only 4.6% wirelength overhead.

15In [12], with the thermal effect, improper analog placements may degrade circuit performance because the thermal impact from power devices can affect electrical characteristics of the thermally sensitive devices.ere is not much previous work that considers the desired placement configuration between power and thermally sensitive devices for a better thermal profile to reduce the thermally induced mismatches.

16e study first introduced the properties of a desired thermal profile for better thermal matching of the matched devices.It then presented a thermal-driven analog placement methodology to achieve the desired thermal profile and to consider the best device matching under the thermal profile while satisfying the symmetry and the common-centroid constraints.Experimental results based on real analog circuits show that the proposed approach can achieve the best analog circuit performance/accuracy with the least impact due to the thermal gradient, among existing works.

17In this study, we embed the iterative conjugate gradient method into HotSpot floorplan to compare the real CPU running time different solvers with the same compiler and running environment.

18e conjugate gradient solver was imported into the thermal floorplan tool HotSpot [13], comparing with its previous LU decomposition solver.en, we can compare the running time with different solvers of thermal floorplan between conjugate gradient method and LU decomposition solver.

19e thermal floorplan solver is switched by the program command line parameter with the same running environment such as CPU and memory, GCC version, and compiler's option.It is more convective to compare CPU time with two solvers than theoretical analysis about loop iterative times.We also use the SSOR and Jacobi preconditions to accelerate the conjugate gradient solver.

20HotSpot thermal aware floorplan employs the thermal model to compute the blocks' temperature; the thermal temperature metric is combining with other area and wire length metrics, and it is a relative sparse matrix in the HotSpot thermal model of iterative SA framework algorithm.

21e HotSpot thermal floorplan can decrease the maximum of block temperature by evenly distributing the power density, avoiding hotspots in the floorplan step of physical design.We import an iterative method to solve this kind of relative sparse linear system in the thermal model of floorplan.is paper's contributions include the following:

22(i) e relative sparse matrix is defined.It can speed up linear system solver convergence by the iterative sparse method.(ii) e conjugate gradient iterative method is imported in the HotSpot floorplan thermal model.It is an efficient algorithm that can reduce the running time by accelerating the linear solver in hotspot.

23is paper is organized as follows.Section 2 introduces the HotSpot floorplan flow.Relative sparse matrix definition and the thermal resistance model are given in Section 3 and Section 4, respectively.Section 5 shows the result of experiments, and conclusions and future research are given in Section 6.

HotSpot Thermal Floorplan

24e VLSI physical design floorplan is to place the blocks without overlap in the silicon die, and the floorplan algorithm needs to obey the chip constraint, optimizing area, wire length, and thermal temperature metrics' cost.e placement temperature is solved by linear equations in the thermal model.

Introduction of Hot ermal Floorplan.

25e floorplan/ placement of physical design is a critical step for the thermal aware design.Hot floorplan is a thermal aware tool to decrease the module temperature and avoid the hotspot convergence.e hot floorplan merges the thermal cost with the traditional area and wire length cost into iterative Simulated Annealing algorithm, and it is time-consuming to solve the module temperature in the iterative Simulated Annealing algorithm.

26We also use the HotSpot model to guide thermal floorplan/placement to do static temperature computer and modules' temperature statistics, and then the thermal cost is integrated with the other area and wire length to do thermal aware physical design.

27HotSpot builds a thermal model to compute the dynamic block or grid temperature on chip.We import the conjugate gradient solver to accelerate the thermal block model computation in floorplan SA algorithm.

Relative Sparse Matrix of Iterative Framework Algorithm

28ere are more sophisticated algorithms to solve sparse linear equations, avoiding to process zero entries of sparse matrix [6,7], such as the iterative method of linear systems.e relative sparse matrix is not a strict sparse matrix and it tends to be a dense matrix; relative sparse matrix means that there is a few "interesting" entry between one matrix and another.

Relative Sparse Matrix.

29Relative sparse matrix definition: if the matrix R � A k+1 − A k is sparse, there is a few nonzero values of matrix R items.We define that matrices A k and A k+1 are relatively sparse; in other words, the matrix A k+1 is a sparse matrix relative to matrix A k .Assume there are two linear equations A k * x � b and A k+1 * x � b, the order of solving linear equations is as follows: the first step is solving A k * x � b, the second step is solving A k+1 * x � b in sequentially iterative framework algorithm; for example, Simulated Annealing algorithm solves A k * x � b and A k+1 * x � b sequentially with the same vector b, in a linear system with different matrices from A k to A k+1 .

30In this case of sequentially relative sparse matrix, the iterative methods are employed to solve the relative sparse linear equations to reduce the number of iterations for the convergence.e detail operations are described as follows:

31In the first step, the linear system A 0 * x � b is solved trivially, obtaining the solution x 0 , and then we reuse the solution x 0 as the initial estimate value for the linear equations A 1 * x � b.In the same way, we reuse the solution

32In this case of the sequence relative sparse matrix, if we set the initial estimate value of A k+1 * x � b equal to x k , x k is the previous solution of A k * x � b, and it can speed up the iterative method convergence.Because the changes of the matrix from A k to A k+1 is little, even though the matrices A k and A k+1 are full matrix not traditional sparse matrix about entry densities, the matrix A k+1 is a sparse matrix relative to the matrix A k .

33We can call this relative sparse linear system computation as the incremental updating solution method.

34In the iterative algorithm, the previous iterative solution preserved as intermediate solution is the initial estimate value for current iteration in the linear system.

Relative Sparse Matrix in Thermal

35Floorplan of SA Framework Algorithm

ermal Model Introduction.

36In the floorplan of VLSI physical design, the circuit modules are randomly placed in the die using Simulated Annealing; once the Simulated Annealing generates a floorplan of circuit modules, we calculate the cost metric of die area, wire length between circuit modules, and the maximum temperature of circuit modules by the thermal model.e Simulated Annealing is an iterative optimizing algorithm; the thermal model is incorporated into the SA (Simulated Annealing).e thermal conduct in the die is complex [14], and it can be an abstracted thermal resistant model [15]:

37where T and P are the vectors representing temperature and power consumption, respectively; thermal resistance R is the square matrix and symmetric matrix.Once the circuit blocks are determined, the blocks' power P vector will not change, and it is a constant vector.ermal resistance matrix R will change entry values according to the placement detail, and it is a dense matrix instead of the sparse matrix, but it matches the relative sparse matrix definition in iterative Simulated Annealing framework algorithm.e Simulated Annealing algorithm changes placement, a few from one stage to another, computing new cost of metrics, for example, moving a block from one location to another unused location, and this perturbation will only change one block's location in placement so that the thermal conduct between blocks and most block's temperature changes little too.Here the updating block's thermal resistance matrix R is a dense matrix but has a few "interesting" changes about thermal resistance matrix items, and it is a relative sparse matrix between R n+1 and R n .e new thermal resistance matrix R n+1 is a relative sparse matrix with R n .

LU Decomposition Solving Linear Equation.

38Solving linear equations gave a system of linear equations in the matrix form:

39Given matrix A and vector b, the solution x is needed to be solved.e matrix A is LUP decomposed such that PA � LU. e linear equations could be transformed into LU form equivalently as

Mobile Information Systems

40LUx � Pb.

41(3) e LU solver is done in two logical steps: (i) First step: solving the lower triangular matrix linear equations, Ly � Pb for y (ii) Second step: solving the upper triangular matrix linear equations, Ux � y e cost of solving a system of linear equations is approximately 2n 3 /3 floating point operations if the matrix A has size n [16].

42e LU decomposition is the direct solver method of the linear equation.

Incrementally Iterative Conjugate Gradient Solver and Convergence.

43ere are many iterative linear solver methods including conjugate gradient, Gauss-Seidel, and successive over relaxation.In this study, the conjugate gradient method is used to solve the thermal model in floorplan.

Convergence of Incrementally Iterative Conjugate Gradient Solver.

44e conjugate gradient method is convergence if the matrix is symmetric and positive definite.e condition number associated with the linear equation Ax � b gives a bound on how inaccurate the solution x will be after approximation.

45e condition number of matrix is the product of the two operator norms:

46If A is normal, then κ(A) � |λ max (A)/λ min (A)|, where λ max (A) and λ min (A) are maximum and minimum values of eigenvalues of a matrix A, respectively.e convergence of CG depends on the condition number of matrix κ(A) which is equal to |λ max (A)/λ min (A)|.

47Denoting initial guess for x 0 , at starting of the SA algorithm, we can assume that x 0 � [0, . . ., 0]; if we get x after the first time linear solver, then the conjugate gradient solver will reuse the previous x k as the next time initial estimate value x k+1 , k ≥ 0. is incremental updating solution method can accelerate the solver convergence.

48e conjugate gradient method inspires Ax � b solution, and x * is also unique in minimizing the following quadratic function:

49is suggests taking the first basis vector p 1 to be the negative of the gradient of f(x) at x � x 0 , the gradient of f(x) equals Ax 0 − b, and we take p 1 � b − Ax 0 .

50It is conjugate to gradient between the vectors.Let r k be the residual at the kth step:

51Note that r k is the negative gradient of f at x � x k , so the gradient descent method would be to move in the direction r k .Here, we insist that the directions p k be conjugate to each other.We also require that the next search direction be built out of the current residue and all previous search directions, which is reasonably enough in practice.

Pseudocode of Conjugate Gradient Algorithm.

52e algorithm is detailed below for solving Ax � b, where A is a real, symmetric, positive-definite matrix.e input vector x 0 can be an approximate initial solution or 0.

53e pseudocode of conjugate gradient solver is shown in Algorithm 1.

Precondition of Conjugate Gradient Method.

54In most cases, preconditioning is necessary to ensure fast convergence of the conjugate gradient method.e preconditioned conjugate gradient method takes the following form.

55We consider a preconditioned system of

56where M is a nonsingular matrix.Jacobi preconditioning: the simplest preconditioner consists of just the diagonal of the matrix:

57is is known as the Jacobi preconditioner.e SSOR preconditioner, like the Jacobi preconditioner, can be derived from the coefficient matrix without any work.If the original, symmetric matrix is decomposed as

58in its diagonal, lower, and upper triangular part, the SSOR matrix is defined as

59e pseudocode of the conjugate gradient solver with preconditioned is shown as Algorithm 1.

Incrementally Inherits Initializing Estimate Value from Previous Solution.

60e HotSpot thermal floorplan is using the iterative Simulated Annealing algorithm.e Simulated Annealing algorithm changes the placement from one to another, only one or two blocks' location, and the most blocks' temperatures change a little.If the initialize estimate value inherits from the previous temperature result, it can reduce the number of iteration times for convergence.It is the reason that the SA framework floorplan algorithm employs the iterative conjugate gradient solver to accelerate the convergence for the thermal model.e pseudocode of SA thermal floorplan algorithm with the conjugate gradient thermal solver is shown in Algorithm 2.

Stopping Criteria for Iteration Solver.

61e residual r norm is computed as follows:

624

Mobile Information Systems

63If and only if r norm < aim precision , the iterations are terminated after the residual is less small than the desired precision.

64e overall iterative times of the conjugate gradient solver are O(k 3 ) in floorplan [17].e conjugate gradient solver with preconditioned is O(k 2.5 ); in two-dimensional problem, n � k 2 , and in three-dimensional, n � k 3 .

65e linear equations can be solved by LU in time 2n 3 /3.e analysis and experiment also prove the excellence of the conjugate gradient incremental updating solution method in the SA iterative framework algorithm of thermal floorplan.

Results of Experiments

66e conjugate gradient algorithm is imported into the open source HotSpot floorplan [15] in C and C++ program language.e HotSpot thermal floorplan uses the SA (Simulated Annealing) [18] optimal algorithm.e experiments are running on Ubuntu with Intel ® Core ™ CPU i5-2300 2.80 GHz and 12 G memory.e benchmarks are MCNC [19] benchmark circuits.e block power trace is generated by a Perl script random function, and the power density ranges from 10 5 W/m 2 to 10 7 W/m 2 for each block [14].

67It is a more convictive way to compare CPU time of two linear solvers in same program; the conjugate gradient algorithm is been implanted by the C++ code and merged into the hot floorplan [15]; and the conjugate gradient algorithm compares with the hot floorplan default LU decomposition solver.e two linear solvers of program are switched by the command line parameter, so the program run environment, such as CPU, memory, GCC version, and compile option, is the same.

68Table 1 shows that the conjugate gradient solver without precondition (CG normal in the table) run time is approximate; in the LU decomposition solver on MCNC case, the run time unit is second; the conjugate gradient without precondition solver run time is about speed up averagely 1.49 compared with the LU decomposition solver; the LU decomposition solver once average time is 0.00387 second (3.87E − 03 in the table); and the conjugate gradient solver without precondition solver once average time is 0.00191 second (1.91E − 03 in the table).

69Table 2 shows that the conjugate gradient solver with Jacobi precondition run time is quicker than the LU decomposition solver, and the conjugate gradient solver with Jacobi precondition run time speeds up averagely 4.32x comparing with the LU decomposition solver.e conjugate gradient solver with the Jacobi precondition solver once had an average time of 0.000567 second (5.67E − 04 in table ).

70Table 3 shows that the conjugate gradient solver with SSOR precondition run time is less better than the conjugate gradient solver with the Jacobi Precondition; the conjugate gradient solver with SSOR precondition run time speeds up averagely 5.18x with the LU decomposition solver; the conjugate gradient solver with the SSOR precondition solver once had an average time of 0.000473 second ( Mobile Information Systems precondition gains the best result ratio comparing with the LU decomposition solver.

71Figure 1 shows the conjugate gradient solver run time versus the LU decomposition solver on the MCNC benchmark.e figure name rule: the CG is the conjugate gradient solver without precondition; the Jacobi is the conjugate gradient solver with Jacobi precondition; the SSOR is the conjugate gradient solver with SSOR precondition.e conjugate gradient solver without precondition run time is more than the LU decomposition solver on two small cases, and less than on large cases; the conjugate gradient solver with Jacobi and SSOR precondition experimental results are less than the LU decomposition solver results.e precondition is important for the iterative conjugate gradient solver.

72Figure 2 shows the conjugate gradient solver run time ratio versus the LU decomposition solver on the MCNC benchmark.Naming rules are consistent with Figure 1. e experimental ratio curve shows that our iterative conjugate gradient solver accelerated more with increasing number of modules.

73We also received the reviewer proposal to adapt to the larger GSRC benchmark of examples to test the scalability of Mobile Information Systems our algorithm.However, we need to emphasize that HotSpot floorplan is designed for the CPU small quantity module floorplan, which is not suitable for running the large collection of placement instances, so the running time is relatively long.Table 4 shows that the conjugate gradient solver with SSOR precondition run time is better than the LU decomposition solver, the conjugate gradient solver with SSOR precondition run time speeds up averagely 17x with the LU decomposition solver, the conjugate gradient solver with SSOR precondition is 24x for test case n300.e profit of the conjugate gradient solver with SSOR precondition gains the best result ratio comparing with the LU decomposition solver.

Conclusions and Future Work

74e conjugate gradient solver is often been used in large sparse matrix method computation, and the HotSpot thermal floorplan could be speeded up by using the sparse matrix iterative linear solver.

75e experiments show that the iterative conjugate gradient solver is faster than the direct LU decomposition solver on the MCNC benchmark.

76e relative sparse matrix theory could be applied to other iterative framework algorithms, and the relative sparse matrix could be extensible.e future works may be the following:

77(i) Extend to other precondition methods of an iterative linear solver, and we could use other preconditions.Mobile Information Systems (ii) Explore sparse linear system theory to speed up our program because there are many theoretical innovations to solve linear system in the last two decades.

Figure 1 :Figure 2 :

78Figure 1: Run time comparing with different block numbers.

794.73E − 04 in table).It is 11x for test case ami49.e profit of conjugate gradient solver with SSOR

Table 1 :

80e conjugate gradient solver without precondition.

Table 2 :

81e conjugate gradient solver with the Jacobi precondition.

Table 3 :

82e conjugate gradient solver with SSOR precondition.

Table 4 :

83e conjugate gradient solver with SSOR precondition run time on the GSRC benchmark.

참고문헌 7건

  1. Layout-Driven Post-Placement Techniques for Temperature Reduction and Thermal Gradient Minimization IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2013 10.1109/tcad.2012.2228267
  2. Thermal-Driven Analog Placement Considering Device Matching IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2011 10.1109/tcad.2010.2097308
  3. Thermal aware floorplanning using Gauss-Seidel method Journal of Electronics (China) · Springer Nature · 2008 10.1007/s11767-008-0025-8
  4. Optimization by Simulated Annealing Science · American Association for the Advancement of Science · 1983 10.1126/science.220.4598.671
  5. Fixed-outline floorplanning: enabling hierarchical design IEEE Transactions on Very Large Scale Integration (VLSI) Systems · Institute of Electrical and Electronics Engineers · 2003 10.1109/tvlsi.2003.817546
  6. Cell-level placement for improving substrate thermal distribution IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2000 10.1109/43.828554
  7. Temperature-aware microarchitecture ACM Transactions on Architecture and Code Optimization · Association for Computing Machinery · 2004 10.1145/980152.980157