Updated CK/AITER Cmake Build#666
Conversation
Claude WalkthroughIntent. The CK/AITER fused-attention kernel source-build ( Key changes.
Walkthrough. Both source-build branches now write their outputs to a single canonical location ( The Testing. No tests added — this is a pure build-system change. Verification is implicit: an incremental Notes for reviewers.
Generated by Claude. To request a code review, comment |
|
Reviewed the CK/AITER cmake refactor that moves the QoLA / CK-JIT kernel build from configure-time Verdict: Approach is sound. Single-file diff, no behavior change for the prebuilt / Findings: one minor point posted inline on the CK-JIT Copyright headers: OK — the touched file's AMD line is already |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
That is nice improvement. Indeed, a lot of script driven builds run at configure stage. One concern - will moving it to build run different modules/submodules building in parallel? It may be speed improvement but on the other hand can result in build failure due to OOM |
| endif() | ||
| execute_process( | ||
| # Rebuild when any JIT orchestrator script/patch/runtime changes. | ||
| file(GLOB __CK_JIT_SCRIPTS CONFIGURE_DEPENDS |
There was a problem hiding this comment.
Will it be easier to just GLOB all files? Build with CK_JIT does not update repository tree but only temp and install directories
| --aiter-dir ${__AITER_SOURCE_DIR} | ||
| --tmp-dir "${__CK_JIT_BUILD_DIR}" | ||
| --install-dir ${AITER_MHA_INSTALL_DIR} | ||
| --install-dir "${__CK_KERNELS_LIB}" |
There was a problem hiding this comment.
Why intermediate location is needed in this scheme, only because we don't know the destitation at the moment of CK_FWD/BWD_SO declaration?
There was a problem hiding this comment.
It's mainly to separate out the build/install tree so that we have an easier time of cleaning the build for incremental work.
Are you referring to the installation of AOTriton? That is indeed a risk since it'll launch in parallel with whatever other aspects of the |
Description
Updated the cmake build for CK/AITER FA backend to include QoLA/ck-jit builds as a custom command for proper inclusion in build graph, including proper dependency graphing and caching.
Fixes # (issue)
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: