issue/335- add the path of INFINI_ROOT and improve the one-click inst… #336
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.
自动添加INFINI_ROOT环境变量和一键安装脚本。
修改1:自动向.bashrc中添加 INFINI_ROOT 环境变量。
在xmake.lua中的on_config中添加了Check_INFINI_ROOT()函数,函数流程如下:
1 读.bashrc文件,判断是否有NFINI_ROOT
2 若没有,则向文件中写入INFINI_ROOT
修改2:在scripts中增加了 install.sh 脚本。
install.sh 主要作用是 执行 source ~/.bashrc 命令。
修改3:在Readme.md中,完善了一键安装 的说明,并给出了示例。
linux 系统上运行 scripts/install.sh 脚本。
windows 系统上运行 scripts/install.py 脚本。
测试过程:编译和测试都通过

1 编译前,不存在 INFINI_ROOT 环境变量。
2 使用 install.sh 一键编译后, INFINI_ROOT 环境变量就出现在当前终端了。
3 最后在当前终端进行 算子测试,测试通过。