Repository logo
Log In(current)
  1. Home
  2. Colleges & Schools
  3. Tickle College of Engineering
  4. Engineering Publications and Other Works
  5. Min H. Kao Department of Electrical Engineering and Computer Science
  6. Electrical Engineering and Computer Science Publications and Other Works
  7. PyMAGMA: A Python Interface for MAGMA
Details

PyMAGMA: A Python Interface for MAGMA

Date Issued
July 1, 2024
Author(s)
Halloy, Julian  
Qiu, Stephen  
Tomov, Stanimire  
Wong, Kwai  
DOI
https://doi.org/10.1145/3626203.3670607
Permanent URI
https://trace.tennessee.edu/handle/20.500.14382/13214
Abstract

The Matrix Algebra for GPU and Multicore Architectures (MAGMA) library is used for dense linear algebra computations on both CPUs and GPUs. MAGMA offers an extensive selection of linear algebra routines similar to those found in BLAS and LAPACK, but optimized and specifically designed for GPU acceleration. However, as MAGMA is a C library, C/C++ and MAGMA’s C function interfaces can be challenging for non-computer scientists to learn and use. To address this problem, PyMAGMA provides a user-friendly Python interface. PyMAGMA employs C++ object-oriented programming methodologies to simplify the interfaces, particularly by reducing the number of arguments required for routines and eliminating the need for specifying the floating-point data format and arithmetic precision used. In particular, function overloading is employed to abstract routines and avoid precision specification. We show that the PyMAGMA library provides access to high-performance linear algebra using GPUs, while offering the typical benefits of Python, including ease of learning, versatility of use, extensive access to external libraries, large community and support, cross-platform compatibility, and capability for interactive work.

Subjects

SWIG

Interface

Wrapper

C++

MAGMA

PyMAGMA

Python

Disciplines
Computer Sciences
Recommended Citation
Julian Halloy, Stephen Qiu, Stanimire Tomov, and Kwai Wong. 2024. Py- MAGMA: A Python Interface for MAGMA. In Practice and Experience in Advanced Research Computing (PEARC ’24), July 21–25, 2024, Providence, RI, USA. ACM, New York, NY, USA, 4 pages. https://doi.org/10.1145/3626203. 3670607
Embargo Date
May 5, 2025
File(s)
Thumbnail Image
Name

3626203.3670607.pdf

Size

536.71 KB

Format

Adobe PDF

Checksum (MD5)

67208883d75b92fc22c60be01171e8c5


University Libraries

1015 Volunteer Boulevard
Knoxville, TN 37996
865-974-4351

Map & Directions
Donate to the Libraries
  • About
  • John C. Hodges Society
  • Speaking Volumes magazine
  • Outreach
  • Directory
  • Employment
  • Policies
  • Library Intranet
University of Tennessee power T logo

The University of Tennessee, Knoxville
Knoxville, Tennessee 37996
865-974-1000

Events
A-Z
Apply
Privacy
Map
Directory
Give to UT
Accessibility

Built with DSpace-CRIS software - Extension maintained and optimized by 4Science