-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from MohammadShakiba/master
UB CCR new software instructions
- Loading branch information
Showing
5 changed files
with
629 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
|
||
<head> | ||
<title>The Akimov Research Group</title> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> | ||
|
||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-119266503-1"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', 'UA-119266503-1'); | ||
</script> | ||
|
||
</head> | ||
|
||
|
||
<body> | ||
<!-- Navigation bar style="margin-top:-2px;" --> | ||
<nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top"> | ||
<ul class="navbar-nav"> | ||
<li class="nav-item"><a class="nav-link" href="../index.html">Home</a></li> | ||
<li class="nav-item"><a class="nav-link" href="../research.html">Research</a></li> | ||
<li class="nav-item"><a class="nav-link" href="../publications.html">Publications</a></li> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">Group</a> | ||
<div class="dropdown-menu"> | ||
<a class="dropdown-item" href="../group.html">Present</a> | ||
<a class="dropdown-item" href="../group_alumni.html">Former Members and Visitors</a> | ||
</div> | ||
</li> | ||
<li class="nav-item"><a class="nav-link" href="../teaching.html">Teaching</a></li> | ||
<li class="nav-item"><a class="nav-link" href="../outreach.html">Outreach</a></li> | ||
<li class="nav-item active"><a class="nav-link" href="../soft_and_tuts.html">Software & Tutorials</a></li> | ||
<li class="nav-item"><a class="nav-link" href="../gallery.html">Gallery</a></li> | ||
<li class="nav-item"><a class="nav-link" href="../contact.html">Contact</a></li> | ||
<li><a href="https://twitter.com/AkimovLab" class="twitter-follow-button" data-show-count="false" data-lang="en-gb">Follow @AkimovLab</a> | ||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https'; | ||
if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js'; | ||
fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> | ||
</li> | ||
</ul> | ||
</nav> | ||
|
||
|
||
<xmp theme="bootstrap"> | ||
# 3.1. CP2K on UB CCR | ||
|
||
[CP2K](https://www.cp2k.org/) is a quantum chemistry and solid state physics software package that can perform atomistic simulations of solid state, liquid, molecular, periodic, material, crystal, and biological systems. CP2K provides a general framework for different modeling methods such as DFT using the mixed Gaussian and plane waves approaches GPW and GAPW. Supported theory levels include DFTB, LDA, GGA, MP2, RPA, semi-empirical methods (AM1, PM3, PM6, RM1, MNDO, …), and classical force fields (AMBER, CHARMM, …). CP2K can do simulations of molecular dynamics, metadynamics, Monte Carlo, Ehrenfest dynamics, vibrational analysis, core level spectroscopy, energy minimization, and transition state optimization using NEB or dimer method. (Detailed overview of features.) | ||
|
||
## A. Installation | ||
|
||
|
||
To install CP2K, we use the instruction in [here](https://github.com/cp2k/cp2k/blob/master/INSTALL.md) and a recipe for installing it on UB CCR using GNU compilers is provided below. For compilation using Intel compiler see [this link](https://github.com/compchem-cybertraining/Tutorials_CP2K/blob/master/INSTALLATION.md). | ||
|
||
git clone --recursive -b support/v2024.1 https://github.com/cp2k/cp2k.git cp2k | ||
cd cp2k/tools/toolchain | ||
module load gcc/11.2.0 | ||
module load openmpi/4.1.1 | ||
module load imkl/2022.0.1 | ||
module load cmake/3.22.1 | ||
./install_cp2k_toolchain.sh --with-gcc=system --with-mkl=system --with-cmake=system --with-sirius=no --with-openmpi=system | ||
|
||
In order to see more options you can type `./install_cp2k_toolchain.sh --help`. Then, the toolchain will download and install the necessary files and create arch files in the install directory. Copy and paste the arch files to the `cp2k/arch` directory by: | ||
|
||
|
||
``` | ||
cp install/arch/local* ../../arch/. | ||
``` | ||
|
||
In order to `make` CP2K, do the following commands: | ||
|
||
``` | ||
source install/setup # You need to source this file in the install directory before installation | ||
cd ../.. | ||
make -j 16 ARCH=local VERSION=psmp | ||
``` | ||
|
||
|
||
After compilation is finished, create a module file in the modules directory (`/projects/academic/cyberwksp21/MODULES`) with the following content: | ||
|
||
``` | ||
whatis("Description: CP2K") | ||
whatis("Version: 2024.1") | ||
whatis("Category: Chem") | ||
load("ccrsoft/2023.01") | ||
load("imkl/2022.0.1") | ||
load("gcc/11.2.0") | ||
load("openmpi/4.1.1") | ||
prepend_path("PATH","/projects/academic/cyberwksp21/SOFTWARE_NEW_ENV/cp2k/cp2k_v24/exe/local") | ||
prepend_path("LD_LIBRARY_PATH","/cvmfs/soft.ccr.buffalo.edu/versions/2023.01/easybuild/software/Core/imkl/2022.0.1/mkl/2022.0.1/lib/intel64") | ||
prepend_path("LD_LIBRARY_PATH","/cvmfs/soft.ccr.buffalo.edu/versions/2023.01/easybuild/software/avx512/Compiler/gcc/11.2.0/openmpi/4.1.1/lib64") | ||
prepend_path("LD_LIBRARY_PATH","/cvmfs/soft.ccr.buffalo.edu/versions/2023.01/easybuild/software/Core/gcccore/11.2.0/lib64") | ||
setenv("OMP_NUM_THREADS","1") | ||
add_property("type_","chem") | ||
``` | ||
|
||
## B. Running CP2K | ||
|
||
See the following script for an example of running a computation with CP2K. | ||
|
||
Here is an example to run on our cluster: | ||
|
||
#!/bin/sh | ||
#SBATCH --partition=general-compute --qos=general-compute | ||
#SBATCH --clusters=ub-hpc | ||
#SBATCH --nodes=1 | ||
#SBATCH --ntasks-per-node=6 | ||
#SBATCH --cpus-per-task=1 | ||
#SBATCH --time=00:10:00 | ||
#SMATCH --mem=10000 | ||
###SBATCH -C CPU-E5-2650v4 # This is the type of CPUs on valhalla nodes | ||
#SBATCH -C CPU-Gold-6130 # The head node CPU type for not getting warnings or errors | ||
|
||
module use /projects/academic/cyberwksp21/MODULES | ||
module load cp2k/v24/avx512 | ||
mpirun -np 6 cp2k.psmp -i input.inp -o out | ||
|
||
|
||
## C. Input Example | ||
|
||
### C.1. Single point calculations of water molecule at the B3LYP level of theory: | ||
|
||
``` | ||
&GLOBAL | ||
# TRACE | ||
PRINT_LEVEL MEDIUM | ||
PROJECT H2O-hybrid-b3lyp_libxc | ||
&END GLOBAL | ||
|
||
&FORCE_EVAL | ||
METHOD Quickstep | ||
&DFT | ||
BASIS_SET_FILE_NAME EMSL_BASIS_SETS | ||
POTENTIAL_FILE_NAME POTENTIAL | ||
&MGRID | ||
CUTOFF 250 | ||
REL_CUTOFF 50 | ||
&END MGRID | ||
&POISSON | ||
PERIODIC NONE | ||
PSOLVER MT | ||
&END POISSON | ||
&QS | ||
METHOD GAPW | ||
&END QS | ||
&SCF | ||
EPS_SCF 1.0E-6 | ||
IGNORE_CONVERGENCE_FAILURE | ||
MAX_SCF 2 | ||
SCF_GUESS ATOMIC | ||
&END SCF | ||
#This is B3LYP using VWN3 | ||
&XC | ||
&HF | ||
FRACTION 0.20 | ||
!&MEMORY | ||
! MAX_MEMORY 5 | ||
!&END MEMORY | ||
&SCREENING | ||
EPS_SCHWARZ 1.0E-10 | ||
&END SCREENING | ||
&END HF | ||
&XC_FUNCTIONAL | ||
&HYB_GGA_XC_B3LYP | ||
&END HYB_GGA_XC_B3LYP | ||
&END XC_FUNCTIONAL | ||
&END XC | ||
&END DFT | ||
&SUBSYS | ||
&CELL | ||
ABC 6.0 6.0 6.0 | ||
PERIODIC NONE | ||
&END CELL | ||
&COORD | ||
O 0.000000 0.000000 -0.065587 | ||
H 0.000000 -0.757136 0.520545 | ||
H 0.000000 0.757136 0.520545 | ||
&END COORD | ||
&KIND H | ||
BASIS_SET 6-31Gxx | ||
POTENTIAL ALL | ||
&END KIND | ||
&KIND O | ||
BASIS_SET 6-31Gxx | ||
POTENTIAL ALL | ||
&END KIND | ||
&END SUBSYS | ||
&END FORCE_EVAL | ||
``` | ||
</xmp> | ||
|
||
|
||
<script type="text/javascript" src="https://cdn.rawgit.com/Naereen/StrapDown.js/master/strapdown.min.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.