Skip to content

Finish Assignment-Zane - #65

Open
Yzinuo wants to merge 14 commits into
InfiniTensor:mainfrom
Yzinuo:main
Open

Finish Assignment-Zane#65
Yzinuo wants to merge 14 commits into
InfiniTensor:mainfrom
Yzinuo:main

Conversation

@Yzinuo

@Yzinuo Yzinuo commented Aug 12, 2026

Copy link
Copy Markdown

这次完成了 NVIDIA CUDA 和天数智芯 Iluvatar CoreX 两个平台的适配。

复现流程:
CPU / 通用构建

xmake
xmake install
pip install ./python

NVIDIA
xmake f --nv-gpu=y -c
xmake
xmake install

天数智芯 CoreX
export COREX_PATH=/usr/local/corex-4.4.0
export CUDA_PATH=$COREX_PATH
export LD_LIBRARY_PATH=$COREX_PATH/lib64:$LD_LIBRARY_PATH
xmake f -c --iluvatar-gpu=y --cuda=$COREX_PATH
xmake
xmake install

天数平台测试时使用:
python test/test_runtime.py --device iluvatar
python test/ops/add.py --device iluvatar
python test/ops/argmax.py --device iluvatar
python test/ops/embedding.py --device iluvatar
python test/ops/linear.py --device iluvatar
python test/ops/rms_norm.py --device iluvatar
python test/ops/rope.py --device iluvatar
python test/ops/self_attention.py --device iluvatar
python test/ops/swiglu.py --device iluvatar

复现结果:
CPU:GitHub Actions 的 Ubuntu 和 Windows 测试通过,Assignment 1、2、3 均正常。
NVIDIA CUDA:本地 Windows NVIDIA 环境已完成运行时、全部算子和模型推理一致性测试。
天数智芯 Iluvatar CoreX:在 BI-V150 服务器上完成干净构建,运行时测试和 8 个算子测试全部通过,包括大尺寸 RoPE 的 F32、F16、BF16 测试。

支持状态:
平台 状态 说明
CPU 已支持 Windows、Ubuntu CI 已验证
NVIDIA CUDA 已支持 Runtime、算子、模型推理已验证
天数智芯 Iluvatar CoreX / BI-V150 已支持 Runtime 与全部 Assignment 4 算子已在真实服务器验证

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant