---
title: 编译和安装
description: "1. 使用PuTTY工具，以root用户登录服务器。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengamg_02_0006.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengamg_02_0006.html
indexId: c1f8d6e9add7ff0d9c2f735078342d9ca6810fb61210b17dac5fb494af29a91265
---
# 编译和安装

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令解压安装包。

```
unzip AMG-1.2.zip
```


3. 执行以下命令进入解压后的目录。

```
cd
/path/to/AMG
/
AMG-1.2
```


4. 执行以下命令进行编译。

```
make
```


  在Makefile.include中，“-DHYPRE_USING_PERSISTENT_COMM”优化MPI，“-DHYPRE_HOPSCOTCH”优化OpenMP。
