GPU 주도 통신을 위한 빠르고 프로그래밍 가능한 GPU-CPU 호출 계층
A Fast, Programmable GPU-to-CPU Invocation Layer for GPU-Initiated Communication
한국어 초록
최신 GPU 워크로드는 GPU 커널이 커널 경계에서 호스트와 동기화하지 않고 직접 통신할 수 있도록 디바이스 주도 통신에 점점 더 의존하고 있다. 기존 라이브러리는 일반적으로 전송 제어를 GPU 스레드에 두는 방식, 즉 GPUDirect Async(GDA)를 선호하며, 호스트 프록시 스레드로의 역방향 오프로딩(reverse offload)은 더 느린 대체 수단으로 취급한다. 본 논문은 역방향 오프로딩이 GDA보다 우수한 성능을 낼 수 있으며 일급(first-class) 통신 경로가 되어야 한다고 주장한다. 나아가 사용자가 워크로드에 특화된 통신 연산을 정의할 수 있도록 역방향 오프로딩을 프로그래밍 인터페이스로 노출할 것을 제안한다. 본 논문은 디바이스에서 호스트로의 단방향 지연 시간이 1마이크로초 미만이고 초당 수억 건의 연산을 처리하는 프로그래밍 가능한 역방향 오프로딩 프레임워크 KIWI를 제시한다. 공유 큐에서의 경합, 폴링 오버헤드, 프록시 간 부하 불균형 등 역방향 오프로딩을 확장할 때의 실질적인 과제도 다룬다. KIWI 위에 구축된 SHMEM 유사 라이브러리인 KIWI-P2P는 지연 시간과 대역폭 모두에서 최신 GDA 구현보다 우수한 성능을 보인다. 더 중요하게는, KIWI-EP가 워크로드가 정의한 연산을 중심으로 저지연 전문가 혼합(mixture-of-experts) 디스패치 및 결합 커널을 재설계하여, AMD GPU에서 기존 최상의 백엔드 대비 전문가 병렬 통신 지연 시간을 최대 2.3배 줄이고 vLLM의 출력 토큰당 시간을 최대 29% 줄인다. KIWI의 소스 코드는 https://github.com/AMDResearch/kiwi 에서 공개되어 있다.
원문 초록
Modern GPU workloads increasingly rely on device-initiated communication to let GPU kernels communicate directly without synchronizing with the host at kernel boundaries. Existing libraries commonly favor placing transport control on GPU threads, an approach known as GPUDirect Async (GDA), and treat reverse offload to host proxy threads as a slower fallback. We argue that reverse offload can outperform GDA and should be a first-class communication path. We further propose exposing reverse offload as a programming interface that lets users define workload-specific communication operations. We present KIWI, a programmable reverse-offload framework that achieves sub-microsecond one-way device-to-host latency and hundreds of millions of operations per second. We address practical challenges of scaling reverse offload, including contention on shared queues, polling overhead, and load imbalance across proxies. KIWI-P2P, a SHMEM-like library built on KIWI, outperforms state-of-the-art GDA implementations in both latency and bandwidth. More importantly, KIWI-EP redesigns low-latency mixture-of-experts dispatch and combine kernels around workload-defined operations, lowering expert-parallel communication latency by up to 2.3x over the best existing backend on AMD GPUs and time per output token in vLLM by up to 29%. The source code of KIWI is available at https://github.com/AMDResearch/kiwi.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2611.23848v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.