Juan D. Arcila-Moreno, Diego Alejandro Cifuentes Garcia, Francisco Jose Correa Zabala, Esteban Echeverri Jaramillo, C. Trefftz, Andres Felipe Zapata-Palacio
{"title":"PyPacho: A Python library that implements parallel basic operations on GPUs","authors":"Juan D. Arcila-Moreno, Diego Alejandro Cifuentes Garcia, Francisco Jose Correa Zabala, Esteban Echeverri Jaramillo, C. Trefftz, Andres Felipe Zapata-Palacio","doi":"10.1109/iemcon53756.2021.9623197","DOIUrl":null,"url":null,"abstract":"Python has become an extremely popular programming language that is widely used in many different domains including scientific computing. Numpy is a Python library that includes numerous functions for numerical linear algebra. Numpy uses code that has been parallelized to take advantage of microprocessors with several cores making Numpy very fast and efficient on current microprocessors. Graphical Processing Units (GPUs) are available on many computers. Originally designed to accelerate the performance of graphical applications, they have become very useful to improve the speed of general purpose applications. In particular, GPUs work very well on large arrays. In this paper we present PyPacho, a library that is, by design, similar to Numpy. This library has been written to accelerate the execution of code on GPUs by using the services provided by PyCuda and OpenCL. Our goal is to create a library that will allow Python code originally written using Numpy methods to execute efficiently on GPUs. Our main strategy is to take advantage of the use of parallelism in basic operations on matrices and vectors. Furthermore, we implemented three different methods to solve systems of linear equations: Jacobi, Gradient Descent and Conjugate Gradient. We compared the execution times of those methods on different platforms. Initial results are encouraging.","PeriodicalId":272590,"journal":{"name":"2021 IEEE 12th Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON)","volume":"13 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-10-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 IEEE 12th Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/iemcon53756.2021.9623197","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
Python has become an extremely popular programming language that is widely used in many different domains including scientific computing. Numpy is a Python library that includes numerous functions for numerical linear algebra. Numpy uses code that has been parallelized to take advantage of microprocessors with several cores making Numpy very fast and efficient on current microprocessors. Graphical Processing Units (GPUs) are available on many computers. Originally designed to accelerate the performance of graphical applications, they have become very useful to improve the speed of general purpose applications. In particular, GPUs work very well on large arrays. In this paper we present PyPacho, a library that is, by design, similar to Numpy. This library has been written to accelerate the execution of code on GPUs by using the services provided by PyCuda and OpenCL. Our goal is to create a library that will allow Python code originally written using Numpy methods to execute efficiently on GPUs. Our main strategy is to take advantage of the use of parallelism in basic operations on matrices and vectors. Furthermore, we implemented three different methods to solve systems of linear equations: Jacobi, Gradient Descent and Conjugate Gradient. We compared the execution times of those methods on different platforms. Initial results are encouraging.