This commit is contained in:
Dun Liang 2021-01-16 09:51:48 +08:00
parent 6fafe44810
commit 68173ce507
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ c++数组和jittor内核之间的数据传输减少了python额外开销
# 生成c++ example源代码文件
python3.7 -m jittor_utils.config --cxx-example > example.cc
# 调用g++编译example, 需要g++支持std=c++17
g++ example.cc $(python3.7 -m jittor_utils.config --include-flags --libs-flags --cxx-flags) -o example)
g++ example.cc $(python3.7 -m jittor_utils.config --include-flags --libs-flags --cxx-flags) -o example
# 运行example
./example
```