Coder Social home page Coder Social logo

abdammar / qmcchem2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trex-coe/qmcchem2

0.0 0.0 0.0 504 KB

QMC=Chem version 2

License: GNU General Public License v3.0

Shell 0.01% Python 2.25% C 2.74% OCaml 20.80% Fortran 68.54% Forth 1.11% Makefile 0.95% M4 3.60%

qmcchem2's Introduction

QMC=Chem logo

This repository contains version 2 of QMC=Chem. Version 1 is available on GitLab. QMC=Chem is a quantum Monte Carlo program meant to be used after preparing a trial wave function with the Quantum Package code.

The documentation is available on ReadTheDocs.

Requirements

To install the required OCaml packages, run

opam install ocamlbuild cryptokit zmq sexplib ppx_sexp_conv ppx_deriving getopt trexio

If you have trouble installing OCaml, on x86 systems you can download the this file and run

tar -zxf ocaml-bundle_x86.tar.gz
./ocaml-bundle/bootstrap.sh
./ocaml-bundle/configure.sh
./ocaml-bundle/compile.sh 

Installation

To compile the program, run

$ ./autogen.sh
$ ./configure && make

Before using QMC=Chem, environment variables need to be loaded. The environment variables are located in the qmcchemrc file:

$ source qmcchemrc

The QMCCHEM_NIC environment variable should be set to the proper network interface, usually ib0 on HPC machines.

Tuning for the HPC system

The Intel compiler is preferred for better performance. With gfortan >= 12, the option -fallow-argument-mismatch should be added.

Here are a few examples:

# Ifort
./configure FC=ifort FCFLAGS="-O2 -g -ip -ftz -finline -xCORE-AVX2 -mkl=sequential"

# GCC >= 12
./configure FCFLAGS="-fallow-argument-mismatch -g -O2  -ffast-math  -march=native   -fno-trapping-math -fno-math-errno -ftree-vectorize -fno-stack-protector -fopenmp"

File preparation

To create files suitable for QMC=Chem, the save_for_qmcchem plugin needs to be installed in Quandtum Package. This can be done as

qp plugins download https://gitlab.com/scemama/qp_plugins_scemama
qp plugins install qmcchem
cd $QP_ROOT/src/qmcchem
ninja

Then, after running a Quantum Package calculation you should run

qp run save_for_qmcchem

to prepare the directory for use in QMC=Chem.


European flag TREX: Targeting Real Chemical Accuracy at the Exascale project has received funding from the European Union’s Horizon 2020 - Research and Innovation program - under grant agreement no. 952165. The content of this document does not represent the opinion of the European Union, and the European Union is not responsible for any use that might be made of such content.

qmcchem2's People

Contributors

scemama avatar abdammar avatar q-posev avatar v1j4y avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.