Comparing Llama-2 and GPT-3 LLMs for HPC kernels generation
Not on the map. Why?
Abstract (arXiv)
We evaluate the use of the open-source Llama-2 model for generating well-known, high-performance computing kernels (e.g., AXPY, GEMV, GEMM) on different parallel programming models and languages (e.g., C++: OpenMP, OpenMP Offload, OpenACC, CUDA, HIP; Fortran: OpenMP, OpenMP Offload, OpenACC; Python: numpy, Numba, pyCUDA, cuPy; and Julia: Threads, CUDA.jl, AMDGPU.jl). We built upon our previous work that is based on the OpenAI Codex, which is a descendant of GPT-3, to generate similar kernels with simple prompts via GitHub Copilot. Our goal is to compare the accuracy of Llama-2 and our original GPT-3 baseline by using a similar metric. Llama-2 has a simplified model that shows competitive or even superior accuracy. We also report on the differences between these foundational large language models as generative AI continues to redefine human-computer interactions. Overall, Copilot generates codes that are more reliable but less optimized, whereas codes generated by Llama-2 are less reliable but more optimized when correct.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 7 of its 24 references that are in the map. First posted on arXiv 12 Sep 2023.
Builds on
7 of 24 references.
References · 7
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Evaluation of OpenAI Codex for HPC Parallel Programming Models Kernel Generationcited by 22
- 2023LM4HPC: Towards Effective Language Model Application in High-Performance Computingcited by 18
- 2017Effective Extensible Programming: Unleashing Julia on GPUscited by 16
- 2023HPC-Coder: Modeling Parallel Programs using Large Language Modelscited by 11
- 2023Evaluating performance and portability of high-level programming models: Julia, Python/Numba, and Kokkos on exascale nodescited by 2
Built on by
Citing papers per year: 2023: 1; 2024: 10; 2025: 8; 2026: 11.
30 papers.
Sort:
By area:
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2024Can Large Language Models Write Parallel Code?cited by 36
- 2024The Landscape and Challenges of HPC Research and LLMscited by 22
- 2024Performance-Aligned LLMs for Generating Fast Codecited by 20
- 2024OMPGPT: A Generative Pre-trained Transformer Model for OpenMPcited by 16
- 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validationcited by 15
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 11
- 2024Temporal Knowledge Graph Question Answering: A Surveycited by 9
- 2025LLM & HPC:Benchmarking DeepSeek's Performance in High-Performance Computing Taskscited by 8
- 2024LLM4GRN: Discovering Causal Gene Regulatory Networks with LLMs -- Evaluation through Synthetic Data Generationcited by 7
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
- 2024MPIrigen: MPI Code Generation through Domain-Specific Language Modelscited by 5
18 more
- 2024OMPar: Automatic Parallelization with AI-Driven Source-to-Source Compilationcited by 5
- 2025Leveraging AI for Productive and Trustworthy HPC Software: Challenges and Research Directionscited by 2
- 2025VibeCodeHPC: An Agent-Based Iterative Prompting Auto-Tuner for HPC Code Generation Using LLMscited by 2
- 2024Should AI Optimize Your Code? A Comparative Study of Classical Optimizing Compilers Versus Current Large Language Modelscited by 1
- 2025Event Segmentation Applications in Large Language Model Enabled Automated Recall Assessmentscited by 1
- 2025AI Assistants to Enhance and Exploit the PETSc Knowledge Basecited by 1
- 2025Performance Evaluation of General Purpose Large Language Models for Basic Linear Algebra Subprograms Code Generationcited by 1
- 2026Exploring the Role of LLMs in HPC Programming: A Surveycited by 1
- 2024Automated Creation of Source Code Variants of a Cryptographic Hash Function Implementation Using Generative Pre-Trained Transformer Modelscited by 0
- 2025EPIC: Generative AI Platform for Accelerating HPC Operational Data Analyticscited by 0
- 2026ParaCodex: A Profiling-Guided Autonomous Coding Agent for Reliable Parallel Code Generation and Translationcited by 0
- 2026From Prompts to Performance: Evaluating LLMs for Task-based Parallel Code Generationcited by 0
- 2026An Agentic Evaluation Framework for AI-Generated Scientific Code in PETSccited by 0
- 2026AstraAI: LLMs, Retrieval, and AST-Guided Assistance for HPC Codebasescited by 0
- 2026Learning Reasoning World Models for Parallel Codecited by 0
- 2026CodegenBench: Can LLMs Write Efficient Code Across Architectures?cited by 0
- 2026Cross-Model Cross-Language AI Coding Agent Performance: Accuracy and Speed of Parallel CLRS Algorithmscited by 0
- 2026Effect of Abstractions and Prompting Strategies on LLM-Guided High-Performance Optimizationscited by 0
- 2026Effect of Abstractions and Prompting Strategies on LLM-Guided High-Performance Optimizations8 Aug 2026
- 2026Cross-Model Cross-Language AI Coding Agent Performance: Accuracy and Speed of Parallel CLRS Algorithms26 Jul 2026
- 2026CodegenBench: Can LLMs Write Efficient Code Across Architectures?1 Jun 2026
- 2026Exploring the Role of LLMs in HPC Programming: A Survey24 May 2026
- 2026Learning Reasoning World Models for Parallel Code22 Apr 2026
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTe1 Apr 2026
- 2026AstraAI: LLMs, Retrieval, and AST-Guided Assistance for HPC Codebases28 Mar 2026
- 2026An Agentic Evaluation Framework for AI-Generated Scientific Code in PETSc16 Mar 2026
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimization12 Mar 2026
- 2026From Prompts to Performance: Evaluating LLMs for Task-based Parallel Code Generation24 Feb 2026
- 2026ParaCodex: A Profiling-Guided Autonomous Coding Agent for Reliable Parallel Code Generation and Translation7 Jan 2026
- 2025VibeCodeHPC: An Agent-Based Iterative Prompting Auto-Tuner for HPC Code Generation Using LLMs26 Sep 2025
18 more
- 2025EPIC: Generative AI Platform for Accelerating HPC Operational Data Analytics29 Aug 2025
- 2025Performance Evaluation of General Purpose Large Language Models for Basic Linear Algebra Subprograms Code Generation7 Jul 2025
- 2025AI Assistants to Enhance and Exploit the PETSc Knowledge Base25 Jun 2025
- 2025Leveraging AI for Productive and Trustworthy HPC Software: Challenges and Research Directions13 May 2025
- 2025LLM & HPC:Benchmarking DeepSeek's Performance in High-Performance Computing Tasks15 Mar 2025
- 2025Event Segmentation Applications in Large Language Model Enabled Automated Recall Assessments19 Feb 2025
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?14 Feb 2025
- 2024LLM4GRN: Discovering Causal Gene Regulatory Networks with LLMs -- Evaluation through Synthetic Data Generation21 Oct 2024
- 2024OMPar: Automatic Parallelization with AI-Driven Source-to-Source Compilation23 Sep 2024
- 2024Temporal Knowledge Graph Question Answering: A Survey20 Jun 2024
- 2024Should AI Optimize Your Code? A Comparative Study of Classical Optimizing Compilers Versus Current Large Language Models17 Jun 2024
- 2024Performance-Aligned LLMs for Generating Fast Code29 Apr 2024
- 2024Automated Creation of Source Code Variants of a Cryptographic Hash Function Implementation Using Generative Pre-Trained Transformer Models24 Apr 2024
- 2024MPIrigen: MPI Code Generation through Domain-Specific Language Models14 Feb 2024
- 2024The Landscape and Challenges of HPC Research and LLMs3 Feb 2024
- 2024OMPGPT: A Generative Pre-trained Transformer Model for OpenMP28 Jan 2024
- 2024Can Large Language Models Write Parallel Code?23 Jan 2024
- 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validation8 Oct 2023
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
- 2025VibeCodeHPC: An Agent-Based Iterative Prompting Auto-Tuner for HPC Code Generation Using LLMscited by 2
- 2026An Agentic Evaluation Framework for AI-Generated Scientific Code in PETSccited by 0
- 2026Cross-Model Cross-Language AI Coding Agent Performance: Accuracy and Speed of Parallel CLRS Algorithmscited by 0
- 2026Cross-Model Cross-Language AI Coding Agent Performance: Accuracy and Speed of Parallel CLRS Algorithms26 Jul 2026
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTe1 Apr 2026
- 2026An Agentic Evaluation Framework for AI-Generated Scientific Code in PETSc16 Mar 2026
- 2025VibeCodeHPC: An Agent-Based Iterative Prompting Auto-Tuner for HPC Code Generation Using LLMs26 Sep 2025
- 2026Learning Reasoning World Models for Parallel Codecited by 0
- 2026Learning Reasoning World Models for Parallel Code22 Apr 2026
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2024Can Large Language Models Write Parallel Code?cited by 36
- 2024The Landscape and Challenges of HPC Research and LLMscited by 22
- 2024Performance-Aligned LLMs for Generating Fast Codecited by 20
- 2024OMPGPT: A Generative Pre-trained Transformer Model for OpenMPcited by 16
- 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validationcited by 15
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 11
- 2024Temporal Knowledge Graph Question Answering: A Surveycited by 9
- 2025LLM & HPC:Benchmarking DeepSeek's Performance in High-Performance Computing Taskscited by 8
- 2024MPIrigen: MPI Code Generation through Domain-Specific Language Modelscited by 5
- 2024OMPar: Automatic Parallelization with AI-Driven Source-to-Source Compilationcited by 5
- 2025Leveraging AI for Productive and Trustworthy HPC Software: Challenges and Research Directionscited by 2
12 most cited of 24 All 24 (JSON)
- 2026Effect of Abstractions and Prompting Strategies on LLM-Guided High-Performance Optimizations8 Aug 2026
- 2026CodegenBench: Can LLMs Write Efficient Code Across Architectures?1 Jun 2026
- 2026Exploring the Role of LLMs in HPC Programming: A Survey24 May 2026
- 2026AstraAI: LLMs, Retrieval, and AST-Guided Assistance for HPC Codebases28 Mar 2026
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimization12 Mar 2026
- 2026From Prompts to Performance: Evaluating LLMs for Task-based Parallel Code Generation24 Feb 2026
- 2026ParaCodex: A Profiling-Guided Autonomous Coding Agent for Reliable Parallel Code Generation and Translation7 Jan 2026
- 2025EPIC: Generative AI Platform for Accelerating HPC Operational Data Analytics29 Aug 2025
- 2025Performance Evaluation of General Purpose Large Language Models for Basic Linear Algebra Subprograms Code Generation7 Jul 2025
- 2025AI Assistants to Enhance and Exploit the PETSc Knowledge Base25 Jun 2025
- 2025Leveraging AI for Productive and Trustworthy HPC Software: Challenges and Research Directions13 May 2025
- 2025LLM & HPC:Benchmarking DeepSeek's Performance in High-Performance Computing Tasks15 Mar 2025
12 newest of 24 All 24 (JSON)