Repository navigation
[Build][Test] Fix icpx (USE_XPU) build and test portability - #5154
Merged
alogfans merged 1 commit intoNov 5, 2026
Merged
Conversation
XinyuYe-Intel
requested review from
00fish0,
Aionw,
XucSh,
YiXR,
alogfans,
chestnut-Q,
doujiang24,
dtcccc,
staryxchen,
stmatengss and
ykwd
as code owners
November 2, 2026 06:41
Aionw
approved these changes
Nov 2, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the build-compatibility and test-portability changes.
No open issues 🎉
What changed in this PR
This PR improves icpx/USE_XPU build compatibility and test portability across Mooncake’s Common, Store, Transfer Engine, and integration components.
Changes:
- Guard host-only CRC32C intrinsics during SYCL device compilation, enable Clang C++20 coroutine support in the HP_TCP test, and fix narrowing conversions.
- Resolve configuration fixtures independently of the build directory and preserve configure-time runtime library paths where needed.
- Configure the TENT scatter test to use cancellable HP_TCP instead of TCP.
| File | Description |
|---|---|
mooncake-transfer-engine/tent/tests/hp_tcp_transport_test.cpp |
Enables Asio coroutine templates for Clang with C++20 coroutine support. |
mooncake-transfer-engine/benchmark/CMakeLists.txt |
Preserves configure-time library paths for the XPU benchmark help test. |
mooncake-store/tests/dfs_posix_test.cpp |
Explicitly casts descriptor offsets to avoid narrowing errors. |
mooncake-store/tests/CMakeLists.txt |
Enables HP_TCP and disables TCP for the TENT scatter test. |
mooncake-store/include/crc32c.h |
Excludes the SSE4.2 path from SYCL device compilation. |
mooncake-integration/CMakeLists.txt |
Appends configure-time library paths to two Python tests. |
mooncake-common/tests/default_config_test.cpp |
Loads fixtures using the configured source-directory path. |
mooncake-common/tests/CMakeLists.txt |
Defines the source-directory path for configuration fixtures. |
Review effort: Balanced
XinyuYe-Intel
force-pushed
the
fix/icpx-build-test-portability
branch
from
November 3, 2026 05:42
95f5ab3 to
8fdd5e2
Compare
11 of 19 tasks
A full USE_XPU=ON build with icpx (oneAPI 2026.1) failed to compile two test targets, and seven tests failed for reasons unrelated to XPU. Build: - dfs_posix_test: clang rejects narrowing int -> uint64_t in braced initializers; cast explicitly. - hp_tcp_transport_test: the bundled asio enables ASIO_HAS_CO_AWAIT for clang only with the legacy coroutines TS. Define it for clang when the compiler implements C++20 coroutines (__cpp_impl_coroutine). Tests: - default_config_test resolved its fixture relative to the working directory; pass the source directory via MOONCAKE_COMMON_TESTS_DIR. - tebench_build_tree_help and two Python integration tests cleared or replaced LD_LIBRARY_PATH, dropping the oneAPI runtime libraries. Keep the configure-time path for USE_XPU builds and append the inherited path for the Python tests. - transfer_scatter_tent_test needs a cancellable transport. Without RDMA the default TENT config only installs TCP, which is not cancellable, so every fragment failed with NotImplemented on any compiler. Enable HP_TCP instead of TCP for that test. The crc32c.h SYCL device-pass fix originally in this change landed separately in kvcache-ai#5176; this is rebased on top of it.
XinyuYe-Intel
force-pushed
the
fix/icpx-build-test-portability
branch
from
November 5, 2026 03:19
8fdd5e2 to
40e1b35
Compare
11 of 20 tasks
12 of 36 tasks
11 of 36 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A full
USE_XPU=ONbuild with icpx (oneAPI 2026.1) failed to compile two test targets, and seven tests failed for reasons unrelated to XPU. Upstream CI does not catch these: the main CI builds withoutUSE_XPUor TENT, and the TENT CI runs only selected Store tests.tent_hp_tcp_transport_testdoes not compileco_awaiton clang only with the legacy coroutines TSASIO_HAS_CO_AWAITfor clang when it implements C++20 coroutines (__cpp_impl_coroutine)dfs_posix_test.cppdoes not compileint->uint64_tin braced initializersdefault_config_test<src>/build)MOONCAKE_COMMON_TESTS_DIRtebench_build_tree_help,tent_python_send_probe_test,tent_python_first_buffer_testLD_LIBRARY_PATH, dropping the oneAPI runtime librariesUSE_XPUbuilds; append the inherited path for the Python teststransfer_scatter_tent_test(any compiler)NotImplementedThe
crc32c.hfix that was originally part of this PR landed separately in #5176; this PR is rebased on top of it.Suggested Merge Priority
Module
mooncake-transfer-engine)mooncake-store)mooncake-conductor)mooncake-reshard)mooncake-ep)mooncake-pg)mooncake-integration)mooncake-p2p-store)mooncake-wheel)mooncake-common)mooncake-rl)Type of Change
How Has This Been Tested?
Test commands:
Test results (on
16fb473b; rebased onto6a345d22without conflicts):USE_XPU=ON: all 1089 targets build, and ctest passes 352/355. Without the fix, 2 test targets fail to compile.The 3 remaining icpx failures come from the build environment, not from icpx:
tent_io_uring_transport_test(8 cases, new in [TENT] Add an opt-in pinned staging pool to the io_uring transport #5012): the pinned staging pool allocates through the XPU platform, which needs a Level Zero GPU, and the builder has none. On a B60 node all 9 staging cases pass.tebench_multinode_script_test(new in [TransferEngine] Add multi-node tebench launcher #4649): checks withkill -0that a timed-out process is gone. The builder container has no init process, so the zombie is never reaped. It passes in a container started with--init.master_service_testDfsOnlyLifecyclePathsReleaseTheExtent: a timing assertion that fails under parallel ctest load. It passes when run alone.Unit tests pass (see above)
Integration tests pass (if applicable)
Manual testing done (if applicable)
Checklist
./scripts/code_format.shcmake-formatalso rewraps some pre-existing lines in two of the touched CMake files (mooncake-store/tests,mooncake-transfer-engine/benchmark). Those lines are not changed by this PR, so I left the rewrites out.AI Assistance Disclosure
GitHub Copilot helped diagnose the build and test failures, write the patch, and run the builds. I reviewed the change and the results.