跳到主要内容

VASP

This article introduces how to submit VASP jobs in Bohrium.

How to run VASP jobs on Bohrium

This case job takes about 1 min to run

Step 1: Prepare input data

First, you need to enable the management node, and choose the ubuntu:20.04-py37 image in this example. After connecting to the management node via Web Shell, you can start preparing the input files.

The input files for VASP are stored in the Bohrium_VASP_example folder. Use the cd /perosnal command to enter the data disk, and execute the following commands in sequence to download and unzip the input files:

wget https://bohrium-example.oss-cn-zhangjiakou.aliyuncs.com/Bohrium_VASP_example.zip
unzip Bohrium_VASP_example.zip
cd Bohrium_VASP_example

Step 2: Prepare the configuration file

The folder already contains the configuration file job.json. In Files Management page , you can double-click the job.json file in the left file tree to edit and save it online, or you can edit it in the command line window:

vi job.json

Enter i to enter edit mode, and after completing the modifications, press esc to exit edit mode and enter : to enter the last line command mode, then enter wq to save and exit. The content of the configuration file is as follows:

Note: The 0000 after "project_id": needs to be replaced with your own project ID, which can be viewed on the "Project Management" page.

{
"job_name": "Bohrium-VASP",
"job_type": "container",
"command": "source /opt/intel/oneapi/setvars.sh && mpirun -n 16 vasp_std ",
"log_file": "tmp_log",
"backward_files": [],
"project_id":0000,
"platform": "ali",
"machine_type": "c2_m8_cpu",
"image_address": "You need to provide authorization credentials to the bohrium email to get the VASP image address"
}

Step 3: Submit the job Submit the job using Bohrium CLI : Therefore, you first need to install the Bohrium CLI.

bohr job submit -i job.json -p ./

Where:

  • -i specifies the configuration file of the job, which is job.json in this case
  • -p specifies the directory where the input files are located, Bohrium will package and upload the specified directory, unzip it on the computing node, and switch the working directory to that directory. In this case, it is ./

If you see the following output in the command line, it means the submission is successful. You can also see the JOB ID of the job, which can be used to track the progress of the job later.

Submit job succeed. 
JobId: <JOB ID>
JobGroupId: <JOB GROUP ID>

View jobs

You can learn how to view job status in Bohrium platform in the Monitor Task Document.

Download results

You can learn how to download job results in Bohrium platform in the Result Download Document.