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.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.