feat(mars): add WITH_MARS platform and htcc wrapper - #941
Closed
Ceng23333 wants to merge 2 commits into
Closed
Conversation
Enable HPCC/Mars CMake detection, htcc compile wrapper, and device registration without Mars operator specializations.
Defer WITH_MARS torch host compilation to the smoke follow-up PR. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Aug 24, 2026
Contributor
Author
|
Closing as already landed. This platform/htcc layer shipped as part of the stack tip merge:
Do not merge this PR — it would be redundant with Related: InfiniRT HPCC Mars dtype fix also landed — InfiniTensor/InfiniRT#46 |
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.
Summary
WITH_MARS/ HPCC auto-detect in rootCMakeLists.txt, sethtccviascripts/htcc_wrapper.sh, and link HPCC runtime/DNN/BLAS/OpenMP.src/CMakeLists.txtsource glob +DEVICE_LIST(no Mars op tree in this PR).Device::Type::kMarsinsrc/device.h,"mars"insrc/pybind11_utils.h, and Mars entries inscripts/generate_wrappers.py/examples/runtime_api.h.src/native/cuda/mars/and torch host-compile plumbing.Motivation
Mars/HPCC needs a dedicated InfiniOps backend (MetaX X203). Landing platform/toolchain first keeps the kernel PR reviewable in isolation and matches the MetaX split of CMake vs
native/cuda/<vendor>/.Stacked replacement for closed #939.
Type of Change
feat— new feature / new operator / new platformfix— bug fixperf— performance improvement (no behavioral change)refactor— code restructuring without behavior changetest— adding or fixing tests onlydocs— documentation onlybuild/ci— build system or CI configurationchore— tooling, formatting, or other non-code changes!in the Conventional Commits prefix or aBREAKING CHANGE:footer)Platforms Affected
WITH_CPU)WITH_NVIDIA)WITH_ILUVATAR)WITH_METAX)WITH_CAMBRICON)WITH_MOORE)WITH_ASCEND)WITH_TORCH)Note: Mars / HPCC (
WITH_MARS) is the affected GPU backend; it is not yet a checkbox in this template. This PR only enables the platform/toolchain (no Mars operator specializations).Smoke Test Result
Host: MetaX X203 / HPCC. Branch
feat/mars-platform-htcc.Full
python -m pytest tests -m smoke -qis claimed on stack tip #943 (requires kernels + torch enablement).Test Results on Supported Platforms
WITH_MARS)infiniops,INFINI_OPS_SMOKE_BUILD=ON)Operator<…, kMars>yet — see #942. Pytest smoke on #943.Full `pytest` output (optional)
Benchmark / Performance Impact
N/A
Notes for Reviewers
master.htcc_wrapper.shplaces.cusymlinks beside sources (not/tmp) so same-directory includes resolve.