- By:
- Valero Lara, Pedro ; Godoy, William F; Teranishi, Keita ; Vetter, Jeffrey S; Balaprakash, Prasanna
- Page Number:
- 19-24
- Book Title:
- SC24-W: Workshops of the International Conference for High Performance Computing, Networking, Storage and Analysis
- Publication Date:
- November 2024
- Publisher Location:
- IEEE, 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:
- IEEE/ACM
- View DOI Listing:
- https://doi.org/10.1109/SCW63240.2024.00010
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.