# Quantum Espresso-6.6 설치 소개

이 문서에서는 KISTI 누리온 시스템에서 qe-6.6 버전을 컴파일하는 방법을 예시로 소개합니다.

## **가. 설치 환경**

| 구분            | 내용                                               |
| ------------- | ------------------------------------------------ |
| 대상 시스템        | 누리온                                              |
| OS Version    | 리눅스 / CentOS 7.9                                 |
| CPU           | <p>tel Xeon Phi 7250 </p><p>Intel Xeon 6148 </p> |
| 컴파일러          | Intel 2019.0.5 Version                           |
| MPI           | IntelMPI 2019.0.5 Version                        |
| <p>기타<br></p> | Intel Math Kernel Library (MKL)                  |

## **나. 설치 전 환경 설정**

누리온 시스템에서는 PATH, LD\_LIBRARY\_PATH 설정을 손쉽게 하기 위해서 환경설정 툴인 Module이 구성되어 있으며 이하 설치 소개에서는 module load 를 이용한 환경설정 방법으로 안내 드립니다.

**\[ 환경 설정 ]**

```shell-session
$ module purge
$ module load intel/19.0.5 impi/19.0.5
```

## **다. 설치 과정**

설치 과정 소개는 tar 를 이용한 압축 해제 방법과 설정 방법등 진행 절차를 위주로 설명하고, 소스 파일 다운로드 등은 생략합니다.

\[설치과정]

```shell-session
$ tar -xvzf qe-6.6.tar.gz
$ cd q-e-qe-6.6
$ ./configure --prefix=${HOME}/QE/6.6 \
CC=mpiicc F90=mpiifort FC=mpiifort MPIF90=mpiifort \
CFLAGS="-O3 -fPIC -xCOMMON-AVX512" \
FFLAGS="-O3 -fPIC -xCOMMON-AVX512"
$ make all
$ make install
```

※ --with-scalapack=intel, --enable-openmp 과 같이 필요한 옵션/기능을 configure 단계에서 추가 설정 가능

<mark style="color:red;">**※ 위 설치 과정에서 파란색으로 표기된 설치 경로(${HOME}/QE/6.2.1)는 예시이며,  설치하고자 하는 경로로 변경해서 입력하시기 바랍니다.**</mark>

※ 누리온 시스템 설치 예제는 SKL/KNL 계산 노드에서 공통적으로 사용을 위해 "-xCOMMON-AVX512" 로 작성

* SKL(skylake) 노드 전용 : -xCORE-AVX512
* KNL(Intel Xeon Phi Knights Landing) 전용 : -xMIC-AVX512
* SKL과 KNL 공통 적용 : -xCOMMON-AVX512
* 참고 : <https://software.intel.com/en-us/articles/compiling-for-the-intel-xeon-phi-processor-and-the-intel-avx-512-isa>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-ksc.gitbook.io/blog/install/nurion/quantum-espresso/nurion-quantum-espresso-6.6-install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
