> For the complete documentation index, see [llms.txt](https://docs-ksc.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-ksc.gitbook.io/blog/install/neuron/quantum-espresso/quantum-espresso-7.3-gpu.md).

# Quantum Espresso-7.3 (GPU 버전) 설치

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

## 가. 설치 환경

| 구분         | 내용                              |
| ---------- | ------------------------------- |
| 대상 시스템     | 뉴론                              |
| OS Version | 리눅스 / CentOS 7.9                |
| CPU        | AMD EPYC 7543 32-Core Processor |
| 컴파일러       | NVIDIA HPC SDK 24.1             |
| MPI        | OpenMPI 4.1.5                   |
| 기타         | CUDA 12.3                       |

## 나. 설치 전 환경설정

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

\[환경설정]

```shell-session
$ module purge
$ module load nvidia_hpc_sdk/24.1
```

## 다. 설치 과정

설치 과정 소개는 tar 를 이용한 압축 해제 방법과 설정 방법등 진행 절차를 위주로 설명하고, 소스 파일 다운로드 등은 생략합니다. (다운로드 : <https://gitlab.com/QEF/q-e/-/releases>)

\[설치과정]

```shell-session
$ tar -xzf q-e-qe-7.3.tar.gz
$ cd q-e-qe-7.3/
```

* V100 GPU

```shell-session
$ ./configure F90=pgf90 CC=pgcc MPIF90=mpif90 \
--with-cuda=/apps/compiler/nvidia_hpc_sdk/24.1/Linux_x86_64/24.1/cuda/12.3 \
--with-cuda-cc=70 --with-cuda-runtime=12.3 \
--with-cuda-mpi=yes \
--prefix=[qe설치경로]
```

* A100 GPU

```shell-session
$ ./configure F90=pgf90 CC=pgcc MPIF90=mpif90 \
--with-cuda=/apps/compiler/nvidia_hpc_sdk/24.1/Linux_x86_64/24.1/cuda/12.3 \
--with-cuda-cc=80 --with-cuda-runtime=12.3 \
--with-cuda-mpi=yes \
--prefix=[qe설치경로]
```

※ 버전에 따라 configure 옵션에 차이가 있을 수 있으며 다른 버전 설치 시 ./configure --help 명령으로 옵션에 대해 확인 후 설치 진행 권장

```shell-session
$ make all
$ make install
```

## 라. 뉴론에서 QE 사용을 위한 SLURM 작업 스크립트 예제

뉴론에서 작업을 제출하기 위해서는 SLURM 작업 스크립트를 사용하여야 하며 작업 스크립트 예시는 아래와 같습니다.  (작업 스크립트 예제 경로: /apps/applications/test\_samples/QE/)

&#x20;\[작업스크립트 예제]

```shell-session
#!/bin/sh
#SBATCH -J QE
#SBATCH -p amd_a100nv_8
#SBATCH -N 1
#SBATCH -o %x_%j.out
#SBATCH -e %x_%j.err
#SBATCH -t 01:30:00
#SBATCH --gres=gpu:2
#SBATCH --comment qe
 
ulimit -s unlimited
 
export NO_STOP_MESSAGE=yes
export OMP_NUM_THREADS=1
 
module purge
module load nvidia_hpc_sdk/24.1
 
export PATH=[qe설치경로]/bin:$PATH
 
mpirun -np 4 pw.x -input ./pw.in
```

※ input 규모 및 설정에 맞게 cpu, gpu 자원을 설정하여 작업 수행 권장


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/neuron/quantum-espresso/quantum-espresso-7.3-gpu.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.
