Giter VIP home page Giter VIP logo

qpb's Introduction

Dependencies:

Instructions:

  • Clone 'qpb' project locally inside a directory of your preference, say 'qpb_build'.

  • Change to a different directory of your preference other than and outside 'qpb'.

  • Go to: https://github.com/usqcd-software/c-lime and clone C-lime locally.

  • Change directory to 'c-lime'.

  • Now you need to build C-lime:

    • First do: ./autogen.sh

      • If you get error: "line 3: autoreconf: command not found", then GNU Autotools is not yet installed.
      • If you get additional errors of the form "macro ... is obsolete", you need first to run the "autoupdate" command from the terminal. Then run again: ./autogen.sh. No output or warning means it run properly and, among others, a 'configure' binary file must now appear.
    • Next you need to decide where to install C-lime such that 'qpb' can find it easily. Suggestion: in an 'install' directory inside 'qpb', say qpb_build/qpb/install/.

    • Then set the a variable 'LIMEPREFIX' on the terminal to the FULL path of the aforementioned 'install' directory.

    • While still in the 'c-lime' directory, run: './configure --prefix=$LIMEPREFIX CC=mpicc CFLAGS=-O3'.

      NOTE the use of 'mpicc'; 'gcc' will not work with QPB.

    • Run 'make' and 'make install'. Ignore 'Nothing to be done for ...' warnings. Now C-lime should have been installed properly.

  • Next, change directory back to qpb_build/qpb.

  • You need to choose which of the 'Makefile.in.<...>' files you prefer to link with a generic 'Makefile.in' file (not constructed yet) to be used by the Makefiles. You can run for example: 'ln -s Makefile.in.CYCLONE Makefile.in', but you necessarily need to make sure that the 'CFLAGS' and 'LDFLAGS' variables inside this file contain the correct full paths to the 'qpb/install/include/' and 'qpb/install/lib/' directories. After running the command a 'Makefile.in' should appear.

  • Now you can run the Makefiles. Better though take things a step at a time; let's first to change directory to 'qpb/lib/' and run 'make' there.

    • If you get an error: './qpb_types.h:131:10: fatal error: gsl/gsl_rng.h: No such file or directory', then GSL is not installed.

    It should take about 2 mins for the makefile to run for the first time inside 'qpb/lib/'.

  • Finally, you need to change directory to one of the 'qpb/mainprogs' and run make there to make ready all the 'mainprogs' programs, or change to one of the 'mainprogs' directories of your choice such as: 'overlap-kl' and run make there.

  • Each 'mainprogs' directory contains a 'params.ini' file for controlling the parameters of the program and for indicating the full path of the SU(3) gauge links configurations file. An example of how to run one of these programs using MPI is the following:

mpirun -n 8 --bind-to core --report-bindings ./ginsparg-wilson-relation geom=2,2,2 params.ini

qpb's People

Contributors

g-koutsou avatar stylianos29 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.