Coder Social home page Coder Social logo

clqcd / pyquda Goto Github PK

View Code? Open in Web Editor NEW
14.0 11.0 4.0 1.2 MB

Use Python for lattice QCD research based on the QUDA library.

License: MIT License

Python 62.62% Cython 11.90% C 19.07% C++ 1.19% Jupyter Notebook 5.22%
cython-wrapper gpu lattice-qcd python3 mpi4py lattice-field-theory lattice-gauge-theory qcd hep hep-lat

pyquda's Introduction

PyQUDA

Python wrapper for QUDA written in Cython.

This project aims to benefit from the optimized linear algebra library CuPy in Python based on CUDA. CuPy and QUDA will allow us to perform most lattice QCD research operations with high performance. PyTorch is an alternative option.

This project is based on the latest QUDA develop branch. PyQUDA should be compatible with any commit of QUDA after May 2023, but leave some features disabled.

Installation

Refer to https://github.com/CLQCD/PyQUDA/wiki/Installation for detailed instruction to install PyQUDA from source.

Benchmark

Refer to https://github.com/CLQCD/PyQUDA/wiki/Benchmark for detailed instruction to run PyQUDA benchmark.

Development

We recommend building PyQUDA using in-place mode instead of installing PyQUDA for development.

git clone https://github.com/CLQCD/PyQUDA.git
cd PyQUDA
export QUDA_PATH=/path/to/quda/build/usqcd
python3 setup.py build_ext --inplace

Now you can modify Python files in the project and immediately get the new result by running scripts. Adding the root directory to sys.path is needed if you are running scripts from other directories.

Maintenance

Function definitions (mainly in quda.in.pxd and pyquda.in.pyx) and most docstrings (mainly in pyquda.pyi and enum_quda.in.py) should be manually updated as they cannot be autogenerated now. This also means PyQUDA should work well with future versions if the API remains unchanged.

pyquda's People

Contributors

chunjiang-shi avatar saltychiang avatar zhangxin8069 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.