PyPacho: A Python library that implements parallel basic operations on GPUs

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.
PyPacho:在gpu上实现并行基本操作的Python库
Python已经成为一种非常流行的编程语言,广泛应用于许多不同的领域,包括科学计算。Numpy是一个Python库,包含许多用于数值线性代数的函数。Numpy使用并行化的代码来利用具有多个内核的微处理器,这使得Numpy在当前的微处理器上非常快速和高效。图形处理单元(gpu)在许多计算机上都是可用的。它们最初是为了加速图形应用程序的性能而设计的,现在它们对于提高通用应用程序的速度非常有用。特别是,gpu在大型阵列上工作得非常好。在本文中,我们介绍了PyPacho,一个在设计上类似于Numpy的库。这个库通过使用PyCuda和OpenCL提供的服务来加速gpu上的代码执行。我们的目标是创建一个库,允许最初使用Numpy方法编写的Python代码在gpu上有效执行。我们的主要策略是在矩阵和向量的基本操作中利用并行性。此外,我们实现了三种不同的方法来解决线性方程组:雅可比,梯度下降和共轭梯度。我们比较了这些方法在不同平台上的执行时间。初步结果令人鼓舞。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信