🚀 Quick Start
This page helps you install GPUMDkit and run your first commands. You can use GPUMDkit through an interactive menu or direct command-line options.
What it does
GPUMDkit provides a single entry point for common tasks in computational materials science — format conversion, structure analysis, property calculation, and visualization — without writing custom scripts.
Before you start
1. Prepare a Python environment
Some optional functions require additional packages:
Other Python dependencies are loaded by the corresponding scripts. If a package is missing, Python will report it when that function is used.
2. Install GPUMDkit
Clone the repository and run the installer:
The installer writes GPUMDkit_path and PATH settings to your shell configuration and loads them for the current shell. It writes to ~/.bashrc by default; if the current shell is zsh, it writes to ~/.zshrc. If an existing GPUMDkit path is found, the installer prints the old path and asks whether to replace it. Before changing the rc file, it creates a backup.
Typical installation output:
======================================================
GPUMDkit Installation
======================================================
[1/4] Detecting GPUMDkit directory...
/path/to/GPUMDkit
[2/4] Detecting shell configuration...
Target: /Users/you/.bashrc
Adding environment variables to /Users/you/.bashrc
Success: Environment variables added.
[3/4] Setting executable permissions...
Added executable permission to gpumdkit.sh
[4/4] Loading environment...
======================================================
Installation Complete! GPUMDkit is ready to use.
======================================================
If GPUMDkit was installed before, you may see:
Existing GPUMDkit configuration found.
Existing path(s):
- /old/path/to/GPUMDkit
New path:
- /new/path/to/GPUMDkit
Replace the existing GPUMDkit configuration with the new path? [y/N]:
3. Verify the installation
This prints a help table listing all available options.
Interactive mode
This opens the main menu:
____ ____ _ _ __ __ ____ _ _ _
/ ___| _ \| | | | \/ | _ \| | _(_) |_
| | _| |_) | | | | |\/| | | | | |/ / | __|
| |_| | __/| |_| | | | | |_| | <| | |_
\____|_| \___/|_| |_|____/|_|\_\_|\__|
GPUMDkit Version 1.5.6 (dev) (2026-06-17)
Core Developer: Zihan YAN (yanzihan@westlake.edu.cn)
Main Contributors: Denan LI, Xin WU, Zhoulin LIU & Chen HUA
---------------------- GPUMD ------------------------
1) Format Conversion 2) Sample Structures
3) Workflow 4) Calculators
5) Analyzer 6) Visualization
7) Utilities 8) Help
0) Exit
------------>>
Input the function number:
Select a module by number. Each module provides sub-menus with specific functions.
CLI mode
Direct commands use fixed positional arguments:
Examples:
gpumdkit.sh -pos2exyz POSCAR model.xyz
gpumdkit.sh -plt train
gpumdkit.sh -calc msd trajectory.xyz Li 10
The first example reads POSCAR and writes model.xyz.
Hello World Example
A minimal end-to-end check that your install works — create a tiny silicon POSCAR, convert it to extxyz, and inspect the output:
cat > POSCAR << 'EOF'
Si
1.0
0 2.715 2.715
2.715 0 2.715
2.715 2.715 0
Si
1
direct
0 0 0
EOF
gpumdkit.sh -pos2exyz POSCAR model.xyz
head model.xyz
If model.xyz shows a single Si atom with lattice info, your install works.
What is extxyz? extxyz is the extended XYZ format: line 1 is the atom count, line 2 contains the lattice and per-structure properties (energy/forces/virial as needed), and lines 3+ list each atom with its per-atom properties. It is the native training-data format for NEP.
Common examples
Convert a POSCAR to extxyz
Add GPUMD group labels
Group labels are used by some GPUMD-related workflows that need atom grouping, such as species-specific MSD or diffusion calculations.
Plot NEP training results
Plot NEP test results
Plot thermodynamic data
Plot MSD and self-diffusion coefficient
Notes
- Use
gpumdkit.sh -hto see all available options. - Use
gpumdkit.sh -<option> -hto get help for a specific option (e.g.,gpumdkit.sh -plt train -h). - For detailed usage of each module, see the corresponding tutorial pages linked in the index.