Advanced Configuration and Remote Execution#
Calculator |
Local Run |
Remote Cluster |
|---|---|---|
SIESTA & Quantum ESPRESSO |
- Install binary
- Install ASAP Python environment
- Setup ASAP for remote connection
|
|
MACE |
- Install ASAP-MACE environment
(python and MACE included)
- Setup ASAP for remote connection
|
Local Run Setup: Install SIESTA, Quantum ESPRESSO and MACE#
SIESTA version 4.1#
SIESTA version 5.x#
Quantum ESPRESSO version 7.4#
MACE Calculator#
simune-asap-env-windows-2026.1.1.zip Windows environment for ASAP version 2026.1.
simune-asap-env-linux-2026.1.1.zip Linux environment for ASAP version 2026.1.
simune-asap-env-macos-2026.1.0 MacOS environment for ASAP version 2026.1.
Remote HPC setup#
Make sure the user on the local computer can connect through SSH. See section Ensure SSH connection.
Ensure SSH connection#
Install Python package on a remote server#
simune-asap-remote-env-2025.1.0.zip Linux environment for ASAP version 2025.1, 2026.0 and 2026.1 (no MACE calculator).
simune-asap-env-linux-2026.1.1.zip Linux environment for ASAP version 2026.1 that includes the libraries to run MACE calculator.
Download the file, copy it to the cluster, extract the package, and follow the instructions inside.
Install SIESTA and QE on a remote server#
Set up ASAP#
Fig. 3 Configuration runner widget.#
Programs: Select this radio button to enable managing programs and add a new program using the New program… button.
Queues: Select this radio button to enable managing queues and add a new setup using the New queue… button.
New remote…: To open the configuration widget containing a form that allows you to configure remote connections to clusters or servers for remote computing
New program…: This button appears when the Programs radio button is selected. It is used to configure an executable on the remote server. See subsection Set up the program in ASAP.
New queue…: This button appears when the Queues radio button is selected. It is used to configure a queue system on the remote server. See subsection Set up the queue in ASAP.
Edit…: To edit a previously configured remote machine.
Delete: To delete a previously configured remote connection.
Copy: To copy a previously created remote configuration.
Fig. 4 Remote configuration widget. You can set up your remote machine here.#
Name: Name of the remote connection, up to the user preferences.
Hostname: IP address of the remote server.
Username: Username of the user in the remote server.
Port: To adjust the network port used to connect through SSH. At present, this field must be non-empty.
Timeout: To setup the network timeout. At present, this field must be non-empty.
Required password at connection time: If checked the user is required to input the remote server password in order to connect.
Python: Tells ASAP where to find the python interpreter.
Remote RC command: Tell ASAP how to set the remote environment appropriately before running simulations. Please follow the recommendations described in section Install Python package on a remote server.
Remote workspace: Workspace to use for the simulations on the remote server. The workspace path must be absolute.
Set up the program in ASAP#
Fig. 5 Widget to configure the runner on the local or on a remote machine.#
Here, we list the options of the Program widget:
Name: Name of the program.
Executable: Executable program path on the local or remote machine.
Program Type: Two drop-down menus that allow you to select the program and its version. There are three available options: SIESTA, TranSIESTA, TBtrans and Quantum ESPRESSO.
MPI executable: MPI executable path on the local or remote machine.
… options: Use this field to include any additional commands not mentioned above but supported by the selected batch scheduler vendor.
Environment setup: Use this field to specify any environment commands or modules required to run the program (e.g., module load …).
Queue: Use this dropdown menu to select a direct run (for local and remote execution) or a pre-configured queue (for remote execution). In fact, when run locally, the calculator is always executed directly by ASAP, while on remote machines it can be executed either directly or through a batch scheduler. See subsection Set up the queue in ASAP to learn how to set up a queue.
Enviroment setup: Use this section to load all the necesary modules to run the program
Test program: Click this button to test the program.
Set up the queue in ASAP#
Configuration label: The name of Batch Scheduler Configuration.
Job name prefix: A word, letter or number to be placed before the identification number of the job. You can edit this prefix at your convenience.
Number of nodes: The number of nodes in a job.
Number of processors per node: How many processors are reserved for each node.
Batch queue: Queue name.
Maximum memory: Maximum required memory for the job.
Maximum CPU time: Maximum CPU time per node.
Maximum walltime: Maximum number of hours you want to run your job.
Notification email: User email specification.
Annex 1: Install SIESTA and Quantum ESPRESSO using Miniconda#
Download and install Miniconda#
Create and activate a Conda Python environment for SIESTA#
conda create -n py311 python=3.11
conda activate py311
Install SIESTA & TranSIESTA 5.2#
conda install -c conda-forge siesta
conda install conda-forge::scalapack
conda install -c conda-forge "siesta=5.2=*openmpi*"
conda install -c conda-forge "siesta=5.2=*mpich*"
Verify SIESTA installation#
siesta --version
Executable : siesta
Version : 5.2.0
Architecture : x86_64
Compiler version: GNU-13.3.0
Compiler flags : -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem <prefix>/include -I<prefix>/_build_env/include -fdebug-prefix-map=<prefix>/work=/usr/local/src/conda/siesta-5.2.0 -fdebug-prefix-map=<prefix>=/usr/local/src/conda-prefix -I<prefix>/lib -fallow-argument-mismatch -O3
Parallelisations: MPI
...
Install Quantum ESPRESSO#
conda install conda-forge::qe
Verify Quantum ESPRESSO installation#
pw.x
Program PWSCF v.7.4 starts on 8May2025 at 10:32:36
This program is part of the open-source Quantum ESPRESSO suite
for quantum simulation of materials; please cite
"P. Giannozzi et al., J. Phys.:Condens. Matter 21 395502 (2009);
"P. Giannozzi et al., J. Phys.:Condens. Matter 29 465901 (2017);
"P. Giannozzi et al., J. Chem. Phys. 152 154105 (2020);
URL http://www.quantum-espresso.org",
in publications or presentations arising from this work. More details at
http://www.quantum-espresso.org/quote
Parallel version (MPI & OpenMP), running on 1 processor cores
Number of MPI processes: 1
Threads/MPI process: 1
MPI processes distributed on 1 nodes
2985 MiB available memory on the printing compute node when the environment starts
Waiting for input...
Annex 2: Install parallel libraries#
Windows: Installing Microsoft MPI v10.1.3#
Debian/Ubuntu/Mint: Installing Scalapack Openmpi library#
sudo apt install libnetcdff-dev libopenblas-openmp-dev libscalapack-openmpi-dev openmpi-bin
Annex 3: Install OpenSSH#
Type app in the start search bar.
Select “settings app”.
In the “Window Settings” which appears, click on “Apps”.
Then click on “Optional features” and “Add a feature”.
Look for OpenSSH Client, click on it and install.
SSH public-key authentication#
Generate public-private SSH key pair on Windows 10#
Open a powershell instance and use ssh-keygen to generate the public-private SSH key pair:
ssh-keygen
Follow the instructions to generate the id_rsa, id_rsa.pub files.
Register the local public key on the remote server#
cd $HOME/.ssh
and list the files in the folder:
ls
Troubleshooting#
Cannot connect to remote servers after Windows upgrade#
Set-Service ssh-agent -StartupType Automatic
Then reboot the computer.
If this still doesn’t work, open a normal PowerShell terminal and type:
ssh-add $HOME/.ssh/id_rsa
id_rsa with the
actual key name.Make popular materials modeling codes available to industrial users.
Gather the relevant tools and codes within a unified user interface, in order to improve their usability.
Automate the existing workflows for the simulation of materials properties and industrial problems of interest.
Soler, José M, Emilio Artacho, Julian D Gale, Alberto Garcia, Javier Junquera, Pablo Ordejón, and Daniel Sánchez-Portal. 2002. “The SIESTA Method for Ab Initio order-N Materials Simulation.” Journal of Physics: Condensed Matter 14 (11): 2745–79. https://doi.org/10.1088/0953-8984/14/11/302.