LAMMPS: Perbedaan antara revisi

Dari ALELEON by EFISON
(→‎Modul LAMMPS: menghapus versi 2022 karena konfirmasi belum fungsional)
(→‎Menjalankan LAMMPS di GPU NVIDIA: menambah ketentuan file input)
Baris 1: Baris 1:
[[Berkas:Lammps-logo.png|nirbing|300x300px]]
LAMMPS (''Large-scale Atomic/Molecular Massively Parallel Simulator'') adalah framework molekular dinamik untuk pemodelan material (''material modelling''). LAMMPS adalah software open-source di bawah lisensi GPL v2.
LAMMPS (''Large-scale Atomic/Molecular Massively Parallel Simulator'') adalah framework molekular dinamik untuk pemodelan material (''material modelling''). LAMMPS adalah software open-source di bawah lisensi GPL v2.


Baris 45: Baris 47:
== '''Menjalankan LAMMPS di GPU NVIDIA''' ==
== '''Menjalankan LAMMPS di GPU NVIDIA''' ==
ALELEON Supercomputer menyediakan LAMMPS yang dapat berjalan di GPU NVIDIA (versi 2023.02.08). User harus menyiapkan file input yang tepat supaya LAMMPS dapat berjalan di GPU NVIDIA.
ALELEON Supercomputer menyediakan LAMMPS yang dapat berjalan di GPU NVIDIA (versi 2023.02.08). User harus menyiapkan file input yang tepat supaya LAMMPS dapat berjalan di GPU NVIDIA.
* Jumlah GPU yang didefinisikan pada file input harus sesuai dengan jumlah GPU pada SLURM Submit Script.


== '''Menjalankan LAMMPS''' ==
== '''Menjalankan LAMMPS''' ==

Revisi per 15 Februari 2023 06.08

Lammps-logo.png

LAMMPS (Large-scale Atomic/Molecular Massively Parallel Simulator) adalah framework molekular dinamik untuk pemodelan material (material modelling). LAMMPS adalah software open-source di bawah lisensi GPL v2.

Modul LAMMPS

Berikut adalah detail versi LAMMPS yang tersedia secara global di ALELEON Supercomputer:

LAMMPS versi CPU
Versi Nama modul Dukungan hardware
CPU GPU OMP Threading MPI multi-node
2023.02.08 lammps/2023.02.08-GCC12.2-FFTW3-CUDA12 V V - V
LAMMPS yang dapat berjalan di GPU
Versi Nama modul Dukungan hardware
CPU GPU OMP Threading MPI multi-node
2023.02.08 lammps/2023.02.08-GCC12.2-FFTW3-CUDA12 V V - V

Permintaan Instalasi Package LAMMPS

Apabila user menjumpai error package LAMMPS yang hilang (missing package), silahkan lapor ke admin lengkap dengan nama package yang dibutuhkan supaya dapat dilakukan proses instalasinya melalui:

Menjalankan LAMMPS di GPU NVIDIA

ALELEON Supercomputer menyediakan LAMMPS yang dapat berjalan di GPU NVIDIA (versi 2023.02.08). User harus menyiapkan file input yang tepat supaya LAMMPS dapat berjalan di GPU NVIDIA.

  • Jumlah GPU yang didefinisikan pada file input harus sesuai dengan jumlah GPU pada SLURM Submit Script.

Menjalankan LAMMPS

User dapat menjalankan LAMMPS dengan pilihan:

EFIRO Job Composer

Dengan pilihan template yang tersedia:

Nama Template Penjelasan
LAMMPS 2023.02.08 (CPU) Menjalankan LAMMPS versi 2023.02.08 pada CPU saja
LAMMPS 2023.02.08 (GPU) Menjalankan LAMMPS versi 2023.02.08 pada CPU dan GPU

SLURM sbatch via Terminal

Berikut adalah contoh referensi Submit Script untuk menjalankan LAMMPS baik versi CPU maupun GPU. Untuk nama modul software lihat tabel pada subbab "Modul LAMMPS" diatas.

Contoh SLURM Submit Script LAMMPS versi CPU
#!/bin/bash
  
echo <<README

Template SLURM Submit Script
Software        : LAMMPS versi CPU
Versi           : tergantung input user
Update script   : 14/02/2023

NOTES: 
1. Isi bagian yang ditandai 4 garing (////).
2. Template ini adalah referensi - user dapat mengubah bagian yang 
   sekiranya perlu diubah.

3. Panduan mengisi alokasi komputasi (SBATCH) menurut spesifikasi 
   ALELEON Supercomputer lihat: 
   https://wiki.efisonlt.com/wiki/Submit_Script_ALELEON_Supercomputer

4. Daftar modul software LAMMPS lihat:
   https://wiki.efisonlt.com/wiki/LAMMPS#Modul_LAMMPS 
 
README

# --------------------------------------------------
# Alokasi komputasi, modul software, dan file input
# --------------------------------------------------

# Alokasi jumlah compute node
#SBATCH --nodes=////

# Alokasi jumlah core thread CPU
#SBATCH --ntasks=////

# Alokasi jumlah memori RAM (satuan GB)
#SBATCH --mem=////GB

# Alokasi limit waktu menjalankan job 
#SBATCH --time=////

# Definisi file untuk menampung output terminal
#SBATCH --output=result-%j.txt

# Definisi file untuk menampung output error log    
#SBATCH --error=error-%j.txt   

# Memuat modul software LAMMPS versi CPU
module load lammps////

# Nama input file LAMMPS
INPUT_FILE='////'

# -------------------------------------------------
# RUN SCRIPT
# -------------------------------------------------
 
# Perintah menjalankan LAMMPS
mpirun --mca pml ucx --mca osc ucx --np $SLURM_NTASKS lmp -in $INPUT_FILE
Contoh SLURM Submit Script LAMMPS yang dapat berjalan di GPU
#!/bin/bash
  
echo <<README

Template SLURM Submit Script
Software        : LAMMPS versi CPU
Versi           : tergantung input user
Update script   : 14/02/2023

NOTES: 
1. Isi bagian yang ditandai 4 garing (////).
2. Template ini adalah referensi - user dapat mengubah bagian yang 
   sekiranya perlu diubah.

3. Panduan mengisi alokasi komputasi (SBATCH) menurut spesifikasi 
   ALELEON Supercomputer lihat: 
   https://wiki.efisonlt.com/wiki/Submit_Script_ALELEON_Supercomputer

4. Daftar modul software LAMMPS lihat:
   https://wiki.efisonlt.com/wiki/LAMMPS#Modul_LAMMPS 
 
README

# --------------------------------------------------
# Alokasi komputasi, modul software, dan file input
# --------------------------------------------------

# Partisi compute node GPU
#SBATCH --partition=ampere

# Alokasi jumlah GPU 
#SBATCH --gpus=////

# Alokasi jumlah core thread CPU
#SBATCH --ntasks=////

# Alokasi jumlah memori RAM (satuan GB)
#SBATCH --mem=////GB

# Alokasi limit waktu menjalankan job 
#SBATCH --time=////

# Definisi file untuk menampung output terminal
#SBATCH --output=result-%j.txt

# Definisi file untuk menampung output error log    
#SBATCH --error=error-%j.txt   

# Memuat modul software LAMMPS versi CPU
module load lammps////

# Nama input file LAMMPS
INPUT_FILE='////'

# -------------------------------------------------
# RUN SCRIPT
# -------------------------------------------------
 
# Perintah menjalankan LAMMPS
mpirun --mca pml ucx --mca osc ucx --np $SLURM_NTASKS lmp -in $INPUT_FILE