simulateqcd

SIMULATeQCD is a multi-GPU Lattice QCD framework that makes it easy for physicists to implement lattice QCD formulas while still providing competitive performance.

https://github.com/latticeqcd/simulateqcd

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 7 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.3%) to scientific vocabulary

Keywords

cuda gpu hip hpc lattice lattice-qcd mpi parallel physics
Last synced: 6 months ago · JSON representation

Repository

SIMULATeQCD is a multi-GPU Lattice QCD framework that makes it easy for physicists to implement lattice QCD formulas while still providing competitive performance.

Basic Info
Statistics
  • Stars: 35
  • Watchers: 3
  • Forks: 15
  • Open Issues: 42
  • Releases: 4
Topics
cuda gpu hip hpc lattice lattice-qcd mpi parallel physics
Created over 4 years ago · Last pushed 6 months ago
Metadata Files
Readme License Zenodo

README.md

SIMULATeQCD

Maintenance DOI

a SImple MUlti-GPU LATtice code for QCD calculations

SIMULATeQCD is a multi-GPU Lattice QCD framework that makes it easy for physicists to implement lattice QCD formulas while still providing competitive performance.

How to Build

There are two possible ways to build SIMULATeQCD. If you are running on your own laptop or desktop and have an NVIDIA GPU, we recommend that you use the container build. The container will automatically grab all software you need. If you are running on an HPC system or want to use AMD, we recommmend you compile manually and ensure that all needed software already exists on the system you're using. This README attempts to give a succinct overview of how to build and use SIMULATeQCD. If you run into problems building, first please have a look at the Getting Started section of the documentation.

Download SIMULATeQCD

You will need to install git-lfs before continuing or you will need to use a git client which natively supports it. This is needed for downloading configurations used in the unit tests. Then run shell git clone https://github.com/LatticeQCD/SIMULATeQCD.git -b v1.2.0

Compile Using Container

To build using the container, you need to have podman properly configured on your system.
You can find more detailed instructions about the container in the Getting Started section of the documentation. To run the container you need an NVIDIA GPU.

To build the code, you then simply

  1. Update config.yml with any settings you would like to use for your build. This includes your target output directory.
    1. You can run <where_you_downloaded>/simulate_qcd.sh list to get a list of possible build targets.
    2. If you want to change where the code outputs to, you need to update OUTPUT_DIRECTORY in config.yml. It will create a folder called build in the specified folder.
  2. Run chmod +x ./simulate_qcd.sh && ./simulate_qcd.sh build

Compile Manually

The following software is required to manually compile SIMULATeQCD:

  • cmake (Some versions have the "--phtread" compiler bug. Versions that definitely work are 3.14.6 or 3.19.2.)
  • C++ compiler with C++17 support.
  • MPI (e.g. openmpi-4.0.4).
  • CUDA Toolkit version 11+.
  • pip install -r requirements.txt to build the documentation.

To setup the compilation, create a folder outside of the code directory (e.g. ../buildSIMULATeQCD/) and from there call the following example script: shell cmake ../SIMULATeQCD/ \ -DARCHITECTURE="80" \ -DUSE_GPU_AWARE_MPI=ON \ -DUSE_GPU_P2P=ON \ Here, it is assumed that your source code folder is called SIMULATeQCD. You can set the path to CUDA by setting the cmake parameter -DCUDA_TOOLKIT_ROOT_DIR:PATH. -DARCHITECTURE sets the GPU architecture (i.e. compute capability version without the decimal point). For example use "70" for Volta or "80" for Ampere. Inside the build folder, you can now begin to use make to compile your executables, e.g. shell make NameOfExecutable If you would like to speed up the compiling process, add the option -j, which will compile in parallel using all available CPU threads. You can also specify the number of threads manually using, for example, -j 4.

Popular production-ready executables are: Shell rhmc # generate HISQ configurations generateQuenched # generate quenched gauge configurations using HB and OR gradientFlow # Apply Wilson/Zeuthen flow and measure various observables gaugeFixing # Gauge fixing Example parameter files for the above executables can be found in parameter/applications/. In the documentation you will find more information on how to execute these programs.

Example: Plaquette action computation

Here we showcase a snippet of code. It is not important that you understand all details: We just want to emphasize that these two blocks are roughly all that is required to compute the plaquette at every site for every orientation. These blocks take care of periodic BCs, GPU parallelization, and communication between neighboring GPUs behind the scenes. See this Full code example for a more detailed understanding.

```C++ template struct CalcPlaq { SU3Accessor gaugeAccessor; CalcPlaq(Gaugefield &gauge) : gaugeAccessor(gauge.getAccessor()){} device host floatT operator()(gSite site) { floatT result = 0; for (int nu = 1; nu < 4; nu++) { for (int mu = 0; mu < nu; mu++) { result += tr_d(gaugeAccessor.template getLinkPath(site, mu, nu, Back(mu), Back(nu))); } } return result; } };

(... main ...) gauge.updateAll() latticeContainer.template iterateOverBulk(CalcPlaq(gauge)) latticeContainer.reduce(plaq, elems); ```

Documentation

Please check out the documentation to learn how to use SIMULATeQCD in detail, including how to make contributions, details for installation, and to see what kinds of modules and applications are already available.

Getting help and bug report

Open an issue, if... - you have troubles compiling/running the code. - you have questions on how to implement your own routine. - you have found a bug. - you have a feature request.

If none of the above cases apply, you may also send an email to lukas.mazur(at)uni-paderborn(dot)de or clarke(dot)davida(at)gmail.com.

Contributors

L. Mazur, S. Ali, L. Altenkort, D. Bollweg, D. A. Clarke, G. Curell, H. Dick, J. Goswami, O. Kaczmarek, J. Kim, R. Larsen, M. Neumann, M. Rodekamp, H. Sandmeyer, C. Schmidt, P. Scior, H.-T. Shu

Citing SIMULATeQCD

If you are using this code in your research please cite:

Acknowledgments

  • This work is supported by the U.S. Department of Energy, Office of Science within the framework of Scientific Discovery through Advance Computing (SciDAC).
  • We acknowledge support by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) through the CRC-TR 211 'Strong-interaction matter under extreme conditions'– project number 315477589 – TRR 211.
  • This work was partly performed in the framework of the PUNCH4NFDI consortium supported by DFG fund "NFDI 39/1", Germany.
  • We would also like to acknowedge enlightening technical discussions with the ILDG team, in particular H. Simma.
  • The authors gratefully acknowledge computing time provided to them on the high-performance computers Noctua2 at the NHR Center PC2. These are funded by the Federal Ministry of Education and Research and the state governments participating on the basis of the resolutions of the GWK for the national highperformance computing at universities (www.nhr-verein.de/unsere-partner).

Owner

  • Name: LatticeQCD
  • Login: LatticeQCD
  • Kind: organization

GitHub Events

Total
  • Issues event: 3
  • Watch event: 5
  • Issue comment event: 6
  • Push event: 36
  • Fork event: 4
  • Create event: 5
Last Year
  • Issues event: 3
  • Watch event: 5
  • Issue comment event: 6
  • Push event: 36
  • Fork event: 4
  • Create event: 5

Dependencies

requirements.txt pypi
  • Babel *
  • Jinja2 *
  • MarkupSafe *
  • PyYAML *
  • Pygments *
  • Sphinx *
  • alabaster *
  • attrs *
  • certifi *
  • charset-normalizer *
  • docutils *
  • idna *
  • imagesize *
  • markdown-it-py *
  • mdit-py-plugins *
  • myst-parser *
  • packaging *
  • pyparsing *
  • pytz *
  • requests *
  • snowballstemmer *
  • sphinx-rtd-theme *
  • sphinx-togglebutton *
  • sphinxcontrib-applehelp *
  • sphinxcontrib-devhelp *
  • sphinxcontrib-htmlhelp *
  • sphinxcontrib-jsmath *
  • sphinxcontrib-qthelp *
  • sphinxcontrib-serializinghtml *
  • typing-extensions *
  • urllib3 *