Search NASA⌕ Search

DOE OSTI · 3002546

ChatBLAS: The First AI-Generated and Portable BLAS Library

Abstract

We present ChatBLAS, the first AI-generated and portable Basic Linear Algebra Subprograms (BLAS) library on different CPU/GPU configurations. The purpose of this study is (i) to evaluate the capabilities of current large language models (LLMs) to generate a portable and HPC library for BLAS operations and (ii) to define the fundamental practices and criteria to interact with LLMs for HPC targets to elevate the trustworthiness and performance levels of the AI-generated HPC codes. The generated C/C++ codes must be highly optimized using device-specific solutions to reach high levels of performance. Additionally, these codes are very algorithm-dependent, thereby adding an extra dimension of complexity to this study. We used OpenAI’s LLM ChatGPT and focused on vector-vector BLAS level-1 operations. ChatBLAS can generate functional and correct codes, achieving high-trustworthiness levels, and can compete or even provide better performance against vendor libraries.

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Valero Lara, Pedro, Godoy, William, Teranishi, Keita, Vetter, Jeffrey, Balaprakash, Prasanna. 2024-11-01. ChatBLAS: The First AI-Generated and Portable BLAS Library. https://doi.org/10.1109/scw63240.2024.00010

Cite the original work for its findings. Save a collection to share your selection of sources.