diff --git a/_static/ascend_actions.js b/_static/ascend_actions.js
index 1209ae8..39f681e 100644
--- a/_static/ascend_actions.js
+++ b/_static/ascend_actions.js
@@ -78,7 +78,6 @@ $(document).ready(function () {
// reset table.
var cann_version_select = $('#cann-version');
cann_version_select.empty();
- cann_version_select.append(new Option("选择CANN的版本", "na"));
$.reset_selection(cann_version_select);
$('#driver-version').text("Driver");
$('#firmware-version').text("Firmware");
@@ -114,7 +113,7 @@ $(document).ready(function () {
$("#col-values").on("click", ".values-element", function () {
id = $(this).attr("id");
fields = id.split("-");
- if (id == "cann-version")
+ if (fields[1] == "version")
return;
$.reset_selection($(this));
@@ -189,14 +188,14 @@ $(document).ready(function () {
var cann_name = parts[parts.length - 1];
// download and install driver
- $('#codecell5').html('wget "' + driver_url + '"
sudo sh ' + driver_name + ' --full --install-for-all');
+ $('#codecell6').html('wget "' + driver_url + '"\nsudo sh ' + driver_name + ' --full --install-for-all');
// download and install firmware
- $('#codecell6').html('wget "' + firmware_url + '"
sudo sh ' + firmware_name + ' --full');
+ $('#codecell8').html('wget "' + firmware_url + '"\nsudo sh ' + firmware_name + ' --full');
if (options['install_type'] === 'direct') {
// download and install cann
- $('#codecell8').html('wget "' + cann_url + '"
sh ' + cann_name + ' --install');
+ $('#codecell11').html('wget "' + cann_url + '"\nsh ' + cann_name + ' --install');
// download and install kernel if exist.
if (kernel_url == null) {
@@ -207,7 +206,7 @@ $(document).ready(function () {
var kernel_name = parts[parts.length - 1];
$('#install_kernel_section').show();
// download and install kernel
- $('#codecell9').html('wget "' + kernel_url + '"
sh ' + kernel_name + ' --install');
+ $('#codecell13').html('wget "' + kernel_url + '"\nsh ' + kernel_name + ' --install');
}
$('#use_docker_section').hide();
@@ -232,7 +231,7 @@ docker run \\
-it ${docker_images[i]} bash
`;
- $('#codecell11').html(dockerCommand.trim());
+ $('#codecell16').html(dockerCommand.trim());
break;
}
}
@@ -244,4 +243,5 @@ docker run \\
$.update_os_verions();
$.change_options_visible();
$.update_cann_versions();
+
});
diff --git a/_static/images/pytorch_wechat.jpg b/_static/images/pytorch_wechat.jpg
index 1e7bc34..55f1e9c 100644
Binary files a/_static/images/pytorch_wechat.jpg and b/_static/images/pytorch_wechat.jpg differ
diff --git a/_static/pytorch_actions.js b/_static/pytorch_actions.js
index 98838a4..0f2167c 100644
--- a/_static/pytorch_actions.js
+++ b/_static/pytorch_actions.js
@@ -68,21 +68,21 @@ docker run \\
$('#install-pytorch-pip-section').hide();
$('#install-pytorch-docker-section').show();
} else if (options['install_type'] == "pip") {
- $('#codecell1').html("# install torch
");
+ $('#codecell1').html("# install torch\n");
if(options['arch'] == "aarch64")
$('#codecell1').append("pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple torch==" + options['pytorch']);
else
$('#codecell1').append("pip3 install torch=="+options['pytorch']+"+cpu --index-url https://download.pytorch.org/whl/cpu");
- $("#codecell1").append("
# install torch-npu
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple torch-npu==" + options['pytorch_npu']);
+ $("#codecell1").append("\n\n# install torch-npu\npip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple torch-npu==" + options['pytorch_npu']);
$('#install-pytorch-source-section').hide();
$('#install-pytorch-docker-section').hide();
$('#install-pytorch-pip-section').show();
} else {
- $("#codecell4").html("# install requirements
conda install cmake ninja git
# get torch source
git clone -b v"+options['pytorch']+" --recursive https://github.com/pytorch/pytorch
cd pytorch
git submodule sync
git submodule update --init --recursive
# install torch
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-\"$(dirname $(which conda))/../\"}
USE_CUDA=0 python setup.py develop");
+ $("#codecell3").html("# install requirements\nconda install cmake ninja git\n\n# get torch source\ngit clone -b v"+options['pytorch']+" --recursive https://github.com/pytorch/pytorch\ncd pytorch\ngit submodule sync\ngit submodule update --init --recursive\n\n# install torch\npip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt\nexport CMAKE_PREFIX_PATH=${CONDA_PREFIX:-\"$(dirname $(which conda))/../\"}\nUSE_CUDA=0 python setup.py develop");
- $('#codecell4').append("
# get torch-npu source
git clone https://github.com/ascend/pytorch.git -b "+match_versions['npu_branch']+" --depth 1 pytorch_npu
cd pytorch_npu
# install torch-npu
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
bash ci/build.sh --python=$(python --version 2>&1 | awk '{print $2}' | cut -d '.' -f 1,2)
pip install dist/torch_npu*.whl");
+ $('#codecell3').append("\n\n# get torch-npu source\ngit clone https://github.com/ascend/pytorch.git -b "+match_versions['npu_branch']+" --depth 1 pytorch_npu\ncd pytorch_npu\n\n# install torch-npu\npip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt\nbash ci/build.sh --python=$(python --version 2>&1 | awk '{print $2}' | cut -d '.' -f 1,2)\npip install dist/torch_npu*.whl");
$('#install-pytorch-pip-section').hide();
$('#install-pytorch-docker-section').hide();
diff --git a/sources/ascend/quick_install.rst b/sources/ascend/quick_install.rst
index 659656a..defd48f 100644
--- a/sources/ascend/quick_install.rst
+++ b/sources/ascend/quick_install.rst
@@ -3,9 +3,9 @@
跟随指导,在您的机器上快速安装昇腾环境。
-系统要求
+1. 系统要求
----------------
-前置检查
+1.1 前置检查
^^^^^^^^^^^^^
确认昇腾AI处理器已经安装妥当
@@ -19,8 +19,14 @@
uname -m && cat /etc/*release
+确认Python版本
-软件要求
+.. code-block:: bash
+
+ python --version
+
+
+1.2 软件要求
^^^^^^^^^^^^^
======== ========================================
软件 版本
@@ -30,13 +36,13 @@ Python 3.8, 3.9, 3.10
======== ========================================
-环境安装
+2. 环境安装
------------------
根据您的需求,选择合适的软件包版本:
-.. note::
+.. warning::
- 建议使用非root用户安装
+ 以下文档需要使用非root用户进行安装安装
.. raw:: html
@@ -87,8 +93,8 @@ Python 3.8, 3.9, 3.10
备注
-如果使用Conda,请确保CANN-toolkit依赖的Python包在Conda环境中已经安装
-警告
-不建议您使用Conda提供的gcc,可能需要解决一些编译依赖问题,如果一定要使用,可参考以下命令:
-conda install -c conda-forge libstdcxx-ng libgcc-ng gcc=9.4 gxx=9.4
请确认CXX11_ABI是关闭的,如果无法确定,建议显式关闭:
export _GLIBCXX_USE_CXX11_ABI=0