Workshops Archive

Bringing OpenACC to LLVM’s Offload Stack: Dialect Contracts, Lowering Boundaries, and a First-Class ACC Runtime


Workshop: LLVM-HPC2026: The Twelfth Workshop on the LLVM Compiler Infrastructure in HPC

Authors: Razvan Lupusoru, Ivan Ivanov, and Zujun Tan (NVIDIA)

Abstract: OpenACC support in LLVM spans Flang and Clang frontends, an MLIR acc dialect with in-dialect transforms, and an offload runtime. Frontends already lower directives into acc IR. This paper presents the dialect design and IR contracts that keep transforms frontend-agnostic via type and operation interfaces rather than source-language IR. The mid-level form lets the compiler discover OpenACC's implicit aspects, notably data attributes and parallelism. We describe the compiler-runtime boundary: what MLIR decides versus what the runtime ABI must understand, including non-contiguous values whose layout is deferred to the runtime. We then present libacctarget, an OpenACC runtime in LLVM Offload that shares infrastructure with libomptarget via libompaccsupport while owning ACC-specific mapping, reference counting, async queues, and map kinds. We evaluate a Fortran-first path: a derived-type field-section case study, SPECaccel measurements of implicit data and late privatization, and the OpenACC VV suite as a probe of contracts that execute end to end


Back to LLVM-HPC2026: The Twelfth Workshop on the LLVM Compiler Infrastructure in HPC Archive Listing

Back to Full Workshop Archive Listing