From: couturie Date: Thu, 5 Nov 2015 03:14:44 +0000 (-0500) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/kahina_paper1.git/commitdiff_plain/b8c1bf75cd50a698e70c8c9372073050c20380f8?ds=inline new --- diff --git a/figures/sparse_full_explog.txt b/figures/sparse_full_explog.txt deleted file mode 100644 index 065de24..0000000 --- a/figures/sparse_full_explog.txt +++ /dev/null @@ -1,59 +0,0 @@ -#sparse polynomial -# First data block (index 0) -#EA With_log_exp No_log_exp -#Taille_Poly times nb iter times nb iter -5000 0.289431 17 0.256983 15 -10000 0.319229 14 0.317802 14 -15000 0.317802 14 0.393191 13 -25000 0.759156 11 0.849403 11 -30000 1.26306 16 2.08251 20 -40000 2.57116 19 2.58756 18 -50000 4.17865 18 4.80419 20 -60000 4.43633 16 4.92617 17 -100000 11.7038 15 12.4761 16 -150000 18.6746 11 16.3098 16 - -# Second index block (index 1) -#Taille_Poly times nb iter -150000 18.6746 11 -200000 67.6199 22 -300000 132.27 20 -350000 159.65 18 -400000 258.91 22 -450000 339.47 23 -500000 419.78 23 -550000 415.94 19 -600000 549.70 21 -650000 612.12 20 -700000 864.21 24 -750000 940.87 23 -800000 1247.16 26 -850000 1702.12 32 -900000 1803.17 30 -950000 2280.07 34 -1000000 2400.51 30 - -#Full polynomial -# First data block (index 2) -#EA With_log_exp No_log_exp -#Taille_Poly times nb iter times nb iter -500 0.224633 16 0.23799 17 -1000 0.348493 24 0.36104 24 -1500 0.337472 21 0.339825 20 -2000 0.36503 21 0.389243 21 -2500 0.389436 22 0.438976 27 -3000 0.404811 20 0.403387 27 -3500 0.487981 21 0.490296 22 -4000 0.506183 23 0.550917 20 - -# Second index block (index 3) -#EA With_log_exp -#Taille_Poly times nb iter -4000 0.506183 23 -#4500 0.946749 23 -5000 0.769945 33 -6000 1.38447 48 -10000 2.15026 32 -100000 306.117 141 - - diff --git a/paper.tex b/paper.tex index 3498bc0..efff5b1 100644 --- a/paper.tex +++ b/paper.tex @@ -316,7 +316,7 @@ The convergence condition determines the termination of the algorithm. It consis \end{equation} -\section{Improving the Ehrlich-Aberth Method for high degree polynomials with exp.log formulation} +\section{Improving the Ehrlich-Aberth Method for high degree polynomials with exp-log formulation} \label{sec2} With high degree polynomial, the Ehrlich-Aberth method implementation, as well as the Durand-Kerner implement, suffers from overflow problems. This @@ -730,9 +730,9 @@ For that, we notice that the maximum number of threads per block for the Nvidia The figure 2 show that, the best execution time for both sparse and full polynomial are given when the threads number varies between 64 and 256 threads per bloc. We notice that with small polynomials the best number of threads per block is 64, Whereas, the large polynomials the best number of threads per block is 256. However,In the following experiments we specify that the number of thread by block is 256. -\subsection{The impact of exp.log solution to compute very high degrees of polynomial} +\subsection{Influence of exp-log solution to compute high degree polynomials} -In this experiment we report the performance of exp-log solution described in Section~\ref{sec2} to compute very high degrees polynomials. +In this experiment we report the performance of the exp-log solution described in Section~\ref{sec2} to compute very high degrees polynomials. \begin{figure}[htbp] \centering \includegraphics[width=0.8\textwidth]{figures/sparse_full_explog} @@ -742,15 +742,15 @@ In this experiment we report the performance of exp-log solution described in Se Figure~\ref{fig:03} shows a comparison between the execution time of -the Ehrlich-Aberth algorithm using the exp.log solution and the -execution time of the Ehrlich-Aberth algorithm without this solution, +the Ehrlich-Aberth method using the exp-log solution and the +execution time of the Ehrlich-Aberth method without this solution, with full and sparse polynomials degrees. We can see that the execution times for both algorithms are the same with full polynomials degrees less than 4,000 and sparse polynomials less than 150,000. We -also clearly show that the classical version (without log.exp) of +also clearly show that the classical version (without log-exp) of Ehrlich-Aberth algorithm do not converge after these degree with sparse and full polynomials. In counterpart, the new version of -Ehrlich-Aberth algorithm with the exp.log solution can solve very +Ehrlich-Aberth algorithm with the exp-log solution can solve very high degree polynomials. %in fact, when the modulus of the roots are up than \textit{R} given in ~\ref{R},this exceed the limited number in the mantissa of floating points representations and can not compute the iterative function given in ~\ref{eq:Aberth-H-GS} to obtain the root solution, who justify the divergence of the classical Ehrlich-Aberth algorithm. However, applying log.exp solution given in ~\ref{sec2} took into account the limit of floating using the iterative function in(Eq.~\ref{Log_H1},Eq.~\ref{Log_H2} and allows to solve a very large polynomials degrees . @@ -761,7 +761,7 @@ high degree polynomials. \subsection{Comparison of the Durand-Kerner and the Ehrlich-Aberth methods} In this part, we compare the Durand-Kerner and the Ehrlich-Aberth -methods on GPU. We took into account the execution time, the number of iteration and the polynomial's size for the both sparse and full polynomials. +methods on GPU. We took into account the execution times, the number of iterations and the polynomials size for the both sparse and full polynomials. \begin{figure}[htbp] \centering @@ -781,31 +781,49 @@ Figure~\ref{fig:04} shows the execution times of both methods with sparse polynomial degrees ranging from 1,000 to 1,000,000. We can see that the Ehrlich-Aberth algorithm is faster than Durand-Kerner algorithm, with an average of 25 times faster. Then, when degrees of -polynomial exceed 500,000 the execution time with EA is of the order -100 whereas DK passes in the order 1,000. +polynomial exceed 500,000 the execution times with DK are very long. %with double precision not exceed $10^{-5}$. \begin{figure}[htbp] \centering \includegraphics[width=0.8\textwidth]{figures/EA_DK_nbr} -\caption{The iteration number of Ehrlich-Aberth versus Durand-Kerner algorithm} +\caption{The number of iterations to converge for the Ehrlich-Aberth + and the Durand-Kerner methods} \label{fig:05} \end{figure} -This figure show the evaluation of the number of iteration according to degree of polynomial from both EA and DK algorithms, we can see that the iteration number of DK is of order 100 while EA is of order 10. Indeed the computing of derivative of P (the polynomial to resolve) in the iterative function(Eq.~\ref{Eq:Hi}) executed by EA, offers him a possibility to converge more quickly. In counterpart the DK operator(Eq.~\ref{DK}) need low operation, consequently low execution time per iteration,but it need lot of iteration to converge. +Figure~\ref{fig:05} show the evaluation of the number of iteration according +to degree of polynomial from both EA and DK algorithms, we can see +that the iteration number of DK is of order 100 while EA is of order +10. Indeed the computing of the derivative of P (the polynomial to +resolve) in the iterative function (Eq.~\ref{Eq:Hi}) executed by EA +allows the algorithm to converge more quickly. In counterpart, the +DK operator (Eq.~\ref{DK}) needs low operation, consequently low +execution time per iteration, but it needs more iterations to converge. \section{Conclusion and perspective} \label{sec7} -In this paper we have presented the parallel implementation Ehrlich-Aberth method on GPU and on CPU (openMP) for the problem of finding roots polynomial. Moreover, we have improved the classical Ehrlich-Aberth method witch suffer of overflow problems, the exp.log solution applying to the iterative function to resolve high degree polynomial. - -Then, we have described the parallel implementation of the Ehrlich-Aberth algorithm on GPU. -We have performed some experiments on Ehrlich-Aberth algorithm in CPU and GPU from the both sparse and full polynomial. These experiments lead us to conclude that the iterative methods using data-parallel operations are more efficient on the GPU than on the CPU. Moreover, the experiment showed that Ehrlich-Aberth algorithm on GPU converge from the both sparse and full polynomials with precision of $10^{-7}$ and the execution time very faster than the CPU version. -The experiences showed that the improvement brought to Ehrlich-Aberth allows to resolve very large degree polynomial exceed 100,000. -Finally, we have compared Ehrlich-Aberth algorithm to Durand-Kerner algorithm, we have conclude that Ehrlich-Aberth converges more quickly than Durand-Kerner in execution time, it is due in fact that Ehrlich-Aberth has cubic one convergence While Durand-Kerner is quadratic. In counterpart, the execution time per iteration are very low for Durand-Kerner algorithm compare to the Ehrlich-Aberth algorithm, consequently, it need lot of iterations to converge. We have to notice that Durand-Kerner does not converge for full polynomial which exceed 5000 degrees while Ehrlich-Aberth was able to solve full polynomial of degree 500,000. - -In future work, we plan to perform some experiments using several GPU with a cluster of GPU. So it is interesting to implement algorithms using at least two forms of parallelism on GPU and CPU. +In this paper we have presented the parallel implementation +Ehrlich-Aberth method on GPU for the problem of finding roots +polynomial. Moreover, we have improved the classical Ehrlich-Aberth +method which suffers from overflow problems, the exp-log solution +applied to the iterative function allows to solve high degree +polynomials. + +We have performed many experiments with the Ehrlich-Aberth method in +GPU. These experiments highlight that this method is very efficient in +GPU compared to all the other implementations. The improvement with +the exponential logarithm solution allows us to solve sparse and full +high degree polynomials up to 1,000,000 degree. Hence, it may be +possible to consider to use polynomial root finding methods in other +numerical applications on GPU. + + +In future works, we plan to investigate the possibility of using +several multiple GPUs simultaneously, either with multi-GPU machine or +with cluster of GPUs.