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
OpenDAS
MMCV
Commits
251adb8a
Commit
251adb8a
authored
Jul 24, 2023
by
xiabo
Browse files
readme修改
parent
1d3c935b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
README.md
README.md
+9
-7
No files found.
README.md
View file @
251adb8a
...
@@ -26,12 +26,14 @@ pip install setuptools=59.5.0 wheel
...
@@ -26,12 +26,14 @@ pip install setuptools=59.5.0 wheel
#### 编译安装
#### 编译安装
```
shell
```
shell
git clone https://developer.hpccube.com/codes/aicomponent/mmcv
//
根据编译需要切换分支
git clone https://developer.hpccube.com/codes/aicomponent/mmcv
#
根据编译需要切换分支
cd
mmcv
cd
mmcv
// 编译whl包
1、 编译whl包
MMCV_WITH_OPS
=
1
ROCM_HOME
=
${
ROCM_PATH
}
python3 setup.py
-v
bdist_wheel
MMCV_WITH_OPS
=
1
ROCM_HOME
=
${
ROCM_PATH
}
python3 setup.py
-v
bdist_wheel
pip
install
dist/mmcv
*
pip
install
dist/mmcv
*
// 直接编译安装
2、 直接编译安装
MMCV_WITH_OPS
=
1
ROCM_HOME
=
${
ROCM_PATH
}
python3 setup.py
install
MMCV_WITH_OPS
=
1
ROCM_HOME
=
${
ROCM_PATH
}
python3 setup.py
install
```
```
## 安装包命名
## 安装包命名
...
@@ -39,14 +41,14 @@ MMCV_WITH_OPS=1 ROCM_HOME=${ROCM_PATH} python3 setup.py install
...
@@ -39,14 +41,14 @@ MMCV_WITH_OPS=1 ROCM_HOME=${ROCM_PATH} python3 setup.py install
-
mmcv: 软件名称;
-
mmcv: 软件名称;
-
2.0.0: 软件版本号;
-
2.0.0: 软件版本号;
-
gitc7118e5: git号;
-
gitc7118e5: git号;
-
abi0: 对应centos和rocky多系统的标识,取值为abi0(centos7
,对应devtools
),abi1(rocky8
, 非devtools
),可使用命令行动态查询获取辅助判断(echo '#include
<string>
' | gcc -x c++ -E -dM - | fgrep _GLIBCXX_USE_CXX11_ABI)
,根据各包情况是否兼容多系统
;
-
abi0: 对应centos和rocky多系统的标识,取值为abi0(centos7),abi1(rocky8),可使用命令行动态查询获取辅助判断(echo '#include
<string>
' | gcc -x c++ -E -dM - | fgrep _GLIBCXX_USE_CXX11_ABI);
-
dtk2304: 对应dtk大版本号,命令行动态查询取值(/opt/dtk-2
2.10.1
/.info/rocm_version);
-
dtk2304: 对应dtk大版本号,命令行动态查询取值(/opt/dtk-2
3.04
/.info/rocm_version);
-
torch1.13: 对应构建的torch版本号,命令行动态查询取值(torch.
\_\_
version__);
-
torch1.13: 对应构建的torch版本号,命令行动态查询取值(torch.
\_\_
version__);
-
cp37-cp37m: 对应python版本号;
-
cp37-cp37m: 对应python版本号;
-
linux_x86_64: 系统架构
;
-
many
linux
2014
_x86_64: 系统架构
;
## 版本号查询
## 版本号查询
-
\_\_
version__:与官方版本同步,查询该软件的版本号,例如2.0.0;
-
mmcv.
\_\_
version__:与官方版本同步,查询该软件的版本号,例如2.0.0;
## Note
## Note
+
若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
+
若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
...
...
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