The aie-codegen repository is derived from aie-rt and provides enhanced features for AIE device management. This guide helps users migrate from aie-rt to aie-codegen.
Device Support: Support AIE, AIEML, AIE2, AIE2P, AIE2IPU, AIE2PS(new from aie-rt), and AIE4.
Key Points:
- ✅ All existing API signatures remain unchanged
- ✅ AIE2PS device support added
- ❌ Lite driver APIs removed (19 APIs)
For any question/query, please reach out to dhruval.shah@amd.com for further assistance!
// These includes are removed:
#include <xaiengine/xaie_lite.h> // Lite driver removed
#include <xaiengine/xaie_lite_util.h> // Lite utility removed| Change | Count | Details |
|---|---|---|
| Total APIs | 353 → 341 | 12 fewer APIs |
| Removed | -19 | Lite driver APIs (not used during compilation flow to generate CDO/Txn/ASM) |
| Added | +6 | New functionality (optional to use) |
| Modified | 0 | All existing APIs unchanged |
Compiling models for AIE2PS devices are fully supported with device-specific implementations:
No code changes needed - device type is auto-detected during initialization.
Search your codebase for lite driver APIs:
grep -r "XAie_L" your_code/
grep -r "xaie_lite.h" your_code/If found, please reach out to dhruval.shah@amd.com for further assitance
Remove these includes (ideally you do not even need these) (no longer available):
xaie_lite.h- lite driver removedxaie_lite_util.h- lite driver removed
Continue using the single header:
#include <aie_codegen.h> // Single header - includes all APIs- Update include paths:
aie-codegen/src/instead ofaie-rt/driver/src/ - Relink against the new
aie-codegenlibrary - Recompile your application
- Verify device initialization
- Test all AIE operations (DMA, events, locks, etc.)
- Validate with your hardware
All existing APIs have identical signatures - same parameters, return types, and behavior.
Migration impact:
- ✅ No lite driver usage? → Simply update your build system
⚠️ Using lite driver? → Use lite driver APIs from client-aie-rt repo (apart from LX7 team, nobody should need this!)
- Source code:
/scratch/repos/aie-codegen/src/ - Main header:
aie_codegen.h(single include for all APIs)
For detailed API documentation, refer to the inline comments in the header files.