Close

Presentation

Camelus: Scalable and Generic SIMD Programming for AI Accelerators
DescriptionModern AI accelerators equipped with SIMD hardware can exploit the data-level parallelism of a program with explicit SIMD programming. However, SIMD programs usually incur high costs for maintenance. One primary reason is that SIMD programming is sensitive to the vector length, which varies with vector element types and SIMD register sizes. To tackle such defects while keeping hardware/ISA unchanged, we propose the Camelus C++ header library. It introduces two fundamental high-level abstractions for SIMD vectors, including the Abstract SIMD Vector Type (ASVT) and the Generic Operation on top of ASVT. With these abstractions, the SIMD program can deduce vector length at compile time; thus, the program is insensitive to vector length and can be generalized with generic operations. As a result, Camelus allows programmers to write generic and scalable code for architectures with explicit SIMD instructions. Rewriting the SIMD programs of Enflame GCU AI accelerators with Camelus shows significant code reduction for different data types over the existing programs while keeping the same performance. Moreover, adopting the design to Enflame next-gen hardware also offers the simplicity and convenience of code porting.
Event Type
Engineering Track Poster
TimeTuesday, July 11th5:00pm - 6:00pm PDT
LocationLevel 2 Exhibit Hall
Topics
Back-End Design
Embedded Systems
Front-End Design
IP
RISC-V