arXiv:2611.19105v1 cs.DC

에이전트형 대규모 언어 모델은 태스크 기반 병렬 코드를 작성할 수 있는가? OpenMP Tasking, HPX, StarPU, TTG 연구

Can Agentic LLMs Write Task-Based Parallel Code? A Study of OpenMP Tasking, HPX, StarPU and TTG

Linus Bantel, Anna-Lena Roth, Tim Th\"uring, Jonas Posner, Dirk Pfl\"uger

제출 2026-11-17

한국어 초록

태스크 기반 프로그래밍은 루프 수준 병렬화보다 표현력이 높다. 이를 지원하는 런타임마다 API 스타일, 성숙도, 학습에 활용할 수 있는 공개 코드의 양은 크게 다르다. 이 논문은 LLM 에이전트가 OpenMP Tasking, HPX, StarPU, TTG에서 얼마나 잘 C++ 코드를 작성하는지 살펴본다. 프롬프트를 한 번만 주는 대신 모델이 파일을 편집하고 커널을 컴파일해 실행하는 작업을 기준 출력이 재현될 때까지 반복하는 에이전트 워크플로를 사용했다. 로컬에서 실행하며 가중치가 공개된 LLM 5개가 행렬 곱, 촐레스키 분해, LU 분해를 포함한 고성능 컴퓨팅(HPC) 커널 7개를 구현했다. 4개 프레임워크와 순차 실행 기준선에서 모두 구현해 모델이 해당 문제를 제대로 이해했는지 확인했다. 각 커널의 동시 실행 수준별 정확성, 강한 스케일링 성능, 최대 메모리 사용량을 개별적으로 평가했다. 모델의 역량이 결과에 가장 큰 영향을 미쳤다. 모델 3개는 57~82%의 경우에 올바르고 실제로 태스크 병렬성을 갖춘 커널을 생성했다. 나머지 2개는 자신이 작성한 코드를 컴파일하는 데도 드물게 성공했으며, 올바른 구현을 거의 만들지 못했다. 성능이 높은 모델들은 OpenMP Tasking과 HPX를 가장 잘 처리했고, StarPU가 근소한 차이로 뒤를 이었으며, TTG의 성능이 가장 낮았다. 생성한 GEMM 및 분해 커널 중 성능이 가장 좋은 구현은 멀티스레드 OpenBLAS/LAPACK 기준 구현과 대등하거나 이를 능가했다. 다만 정확성만으로 평가하면 병렬화 품질을 과대평가하게 된다. ‘병렬’이라고 작성된 커널 중 일부는 실제 병렬성이 전혀 없었다. 순차적으로 실행되는 태스크 그래프와 부적절한 태스크 단위 크기도 흔했다.

원문 초록

Task-based programming offers more expressive power than loop-level parallelism, but the runtimes providing it differ widely in API style, maturity, and the amount of public code to learn from. This paper asks how well LLM agents write C++ for four of them: OpenMP Tasking, HPX, StarPU, and TTG. Instead of single one-shot prompts, we use an agentic workflow in which the model edits files, compiles, and runs its kernels until it reproduces a reference output. Five locally hosted open-weight LLM implement seven HPC kernels, including matrix multiplication, Cholesky and LU factorization, in all four frameworks and a serial baseline to verify their understanding of the problem in general. Every kernel is evaluated independently for correctness at each concurrency level, strong scaling, and peak memory. Model capability dominates the outcome: three models produce correct, genuinely task-parallel kernels in 57-82% of the cases, while two models rarely compile their own code and almost never succeed. For the capable models, OpenMP Tasking and HPX are handled most reliably, StarPU is close behind, and TTG trails. The best generated GEMM and factorization kernels match or exceed the multithreaded OpenBLAS/LAPACK reference. However, correctness overstates parallel quality: several "parallel" kernels contain no parallelism at all; and serialized task graphs and unsuitable task granularity remain common.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2611.19105v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.