diff --git "a/hml/HML\347\224\250\346\210\267\346\214\207\345\215\227.pdf" "b/hml/HML\347\224\250\346\210\267\346\214\207\345\215\227.pdf" index f44e1e2b54ec2936f911c41fc198059f10ed9341..90bc3964b2ffbe89a66776087fb99576a9257262 100644 Binary files "a/hml/HML\347\224\250\346\210\267\346\214\207\345\215\227.pdf" and "b/hml/HML\347\224\250\346\210\267\346\214\207\345\215\227.pdf" differ diff --git a/hml/README.md b/hml/README.md old mode 100644 new mode 100755 index 50e04cfae1d3285af10db39e22b1e6e5b5ee0308..3f76d86bb69a1b74eb9521551fdf4a70308e1670 --- a/hml/README.md +++ b/hml/README.md @@ -12,3 +12,5 @@ HML(Hygon Math Library)是基于海光CPU平台构建一套高性能的数 ## 历史版本 * hml_1.0.0 +* hml_1.1.0 +* hml_1.2.0 diff --git a/hml/pkg/hml-1.2.0/CHANGES.md b/hml/pkg/hml-1.2.0/CHANGES.md new file mode 100755 index 0000000000000000000000000000000000000000..497d410fcf3fb051bc921e89c6bb3d82fb526409 --- /dev/null +++ b/hml/pkg/hml-1.2.0/CHANGES.md @@ -0,0 +1,23 @@ +# HML Changes + +本文档记录了HCT密码套件的一些重要改动。 + +--- +## hml-1.0.0 +### 变动详情 +* 初始化hml目录结构 +* 添加readme文档 +* 添加HML版本说明书 + +## hml-1.1.0 +### 变动详情 +* 添加deb +* 添加rpm +* 添加HML版本说明书 + +## hml-1.2.0 +### 变动详情 +* 更新deb +* 更新rpm +* 更新HML版本说明书 + diff --git "a/hml/pkg/hml-1.2.0/HML\347\211\210\346\234\254\350\257\264\346\230\216\344\271\246.pdf" "b/hml/pkg/hml-1.2.0/HML\347\211\210\346\234\254\350\257\264\346\230\216\344\271\246.pdf" new file mode 100644 index 0000000000000000000000000000000000000000..5201ae48367adb88d2f74864517f00b5790b6edc Binary files /dev/null and "b/hml/pkg/hml-1.2.0/HML\347\211\210\346\234\254\350\257\264\346\230\216\344\271\246.pdf" differ diff --git a/hml/pkg/hml-1.2.0/hml-1.2.0-2024-1105.x86_64.deb b/hml/pkg/hml-1.2.0/hml-1.2.0-2024-1105.x86_64.deb new file mode 100644 index 0000000000000000000000000000000000000000..f19e726ea0543c7296b6e1cdfbbb8344d36bb4cc Binary files /dev/null and b/hml/pkg/hml-1.2.0/hml-1.2.0-2024-1105.x86_64.deb differ diff --git a/hml/pkg/hml-1.2.0/hml-1.2.0-2024-1105.x86_64.rpm b/hml/pkg/hml-1.2.0/hml-1.2.0-2024-1105.x86_64.rpm new file mode 100644 index 0000000000000000000000000000000000000000..d63f6ddb238497666d775ad8d574748db5a8cd10 Binary files /dev/null and b/hml/pkg/hml-1.2.0/hml-1.2.0-2024-1105.x86_64.rpm differ diff --git a/hml/pkg/hml-1.2.0/readme.md b/hml/pkg/hml-1.2.0/readme.md new file mode 100755 index 0000000000000000000000000000000000000000..e39db58f7887853167b2e697017aaa3932764dae --- /dev/null +++ b/hml/pkg/hml-1.2.0/readme.md @@ -0,0 +1,118 @@ +## HML + +### 简介 + +HML是基于海光CPU平台构建一套高性能的数学函数库,基于海光CPU架构特点极致优化,能够充分发挥海光CPU计算性能。 + +官方发布的 HML数学库位于 gitee 的 `hygon-devkit` 仓库,地址: + +```sh +git clone https://gitee.com/anolis/hygon-devkit.git +``` + +HML高性能数学库在hygon-devkit中的目录结构示意图如下: + +``` +hygon-devkit/ + ├─ hml + ├──pkg + │ └── hml_1.0.0 + │ └── hml_1.1.0 + │ └── hml_1.2.0 + │ + └── README.md + +``` + +* pkg目录:内含各版本hml高性能数学库。 +* README.md文件:有关HML的简单情况。 + + +### 安装与使用 + +#### 环境配置 + +确保gcc版本号>=8.5.0 +```sh +可以通过如下命令查看gcc版本号 +gcc -v +``` + +#### 安装 + +* 安装包命令规则 + +包命名规则如下: +hml----.. +如: +hml-1.0.0-2024-0320-rc.x86_64.rpm + +* RPM安装 +```sh +# 1. 安装 + sudo rpm -Uvh hml-1.0.0-2024-0320-rc.x86_64.rpm + +# 2. 检查是否安装成功 + rpm -qi hml + +# 3. 显示安装路径 + rpm -ql hml + +# 4. 卸载 + sudo rpm --verbose --erase hml +``` + +* DEB安装 +```sh +# 1. 检查DEB信息 + dpkg -I hml-1.0.0-2024-0320-rc.x86_64.deb + +# 2. 安装 + sudo dpkg -i hml-1.0.0-2024-0320-rc.x86_64.deb + +# 3. 检查安装是否成功 + dpkg -l hml + +# 4. 卸载 + sudo dpkg -r hml +``` + +* 安装路径 + HML库会被安装到/opt/hygon/目录下,包含blas、fft、smm、sparse、vml、vsip库。 + +#### 使用 + +* HML库函数说明 +``` + 请参考:HML用户指南.pdf +``` + +* 添加HML库路径到环境变量 +```sh + export LD_LIBRARY_PATH=/opt/hygon:$LD_LIBRARY_PATH +``` + +* 链接HML库 +```sh +# 1. 链接BLAS库 + -L /opt/hygon/blas/lib -lblis-hg + +# 2. 链接FFT库 + -L /opt/hygon/fft/fftw_double/lib -lfftw3 + -L /opt/hygon/fft/fftw_single/lib -lfftw3 + +# 3. 链接SMM库 + -L /opt/hygon/smm/lib -lsmm-hg + +# 4. 链接SPARSE库 + -L /opt/hygon/sparse/lib -lhml_sparse-hg + +# 5. 链接VML库 + -L /opt/hygon/vml/lib -lvml-hg + +# 6. 链接VSIP库 + -L /opt/hygon/vsip/lib -lvsip-hg +``` + + +