Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
2b357590
Commit
2b357590
authored
Feb 13, 2025
by
Pan Zezhong
Browse files
doc: Add readme
parent
8e83bdca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
README.md
README.md
+50
-0
No files found.
README.md
0 → 100644
View file @
2b357590
# InfiniCore
InfiniCore是一个跨平台统一编程工具集,为不同芯片平台的功能(包括计算、运行时、通信等)提供统一 C 语言接口。目前支持的芯片包括CPU、英伟达GPU、华为昇腾NPU、寒武纪MLU、摩尔线程GPU、天数智芯GPU、沐曦GPU、曙光DCU、昆仑芯。
## 一、使用说明
### 1. 配置
#### 查看当前配置
```
xmake
xmake f -v
```
#### 配置 CPU (默认配置)
```
xmake
xmake f -cv
```
#### 配置加速卡
```
xmake
# 英伟达
# 可以指定 CUDA 路径, 一般环境变量为 `CUDA_HOME` 或者 `CUDA_ROOT`
xmake f --nv-gpu=true --cuda=$CUDA_HOME -cv
# 寒武纪
xmake f --cambricon-mlu=true -cv
# 华为昇腾
xmake f --ascend-npu=true -cv
```
### 2. 编译安装
```
xmake
xmake build && xmake install
# 默认安装路径为 $HOME/.infini
```
### 3. 设置环境变量
按输出提示设置
`INFINI_ROOT`
和
`LD_LIBRARY_PATH`
环境变量。
### 4. 运行算子测试
```
bash
python
test
/infiniop/[operator].py
[
--cpu
|
--nvidia
|
--cambricon
|
--ascend
]
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment