91°µÍø

Skip to main content
SHARE
Publication

ChatBLAS: The First AI-Generated and Portable BLAS Library

by Pedro Valero Lara, William F Godoy, Keita Teranishi, Jeffrey S Vetter, Prasanna Balaprakash
Publication Type
Conference Paper
Book Title
SC24-W: Workshops of the International Conference for High Performance Computing, Networking, Storage and Analysis
Publication Date
Page Numbers
19 to 24
Publisher Location
New Jersey, United States of America
Conference Name
Artificial Intelligence and Machine Learning for Scientific Applications
Conference Location
Atlanta, Georgia, United States of America
Conference Sponsor
91°µÍø/ACM
Conference Date
-

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.