Giter VIP home page Giter VIP logo

symlbm_playground's Introduction

Symbolically generated GPU-based LBM

Experimental generation of OpenCL kernels using SymPy, Mako and PyOpenCL.

  • Implements a straight forward AB pattern
  • All memory offsets are statically resolved
  • Underlying symbolic formulation is optimized using CSE
  • Characteristic constants of D2Q9 and D3Q27 are transparently recovered using only discrete velocities

Performance

Theoretical maximum performance on tested hardware:

GPU Bandwidth D2Q9   D3Q19   D3Q27  
    single double single double single double
K2200 63.2 GiB/s 893 459 435 220 308 156
P100 512.6 GiB/s 7242 3719 3528 1787 2502 1262

Maximum measured performance...

GPU D2Q9   D3Q19   D3Q27  
  single double single double single double
K2200 843.4 326.4 423.2 163.8 303.0 116.0
P100 6957.4 3585.0 3420.2 1763.8 2374.6 1259.6

...relative to theoretical maximum

GPU D2Q9   D3Q19   D3Q27  
  single double single double single double
K2200 94.4% 71.1% 97.3% 74.5% 98.4% 74.4%
P100 96.1% 96.4% 96.9% 98.7% 94.9% 99.8%

CSE impact on P100

CSE D2Q9   D3Q19   D3Q27  
  single double single double single double
No 6957.4 2814.4 2581.8 998.8 1576.4 647.4
Yes 6922.4 3585.0 3420.2 1763.8 2374.6 1259.6
CSE D2Q9   D3Q19   D3Q27  
  single double single double single double
No 96.1% 75.7% 73.2% 55.9% 63.0% 51.3%
Yes 95.6% 96.4% 96.9% 98.7% 94.9% 99.8%

For more details see the results/ and notebook/ directories.

Visualization

Various real-time visualizations using OpenCL GL-interop are provided, e.g:

Lid driven cavity

Particles around a ball

Volumetric rendering

2d stream lines

Volumetric curl

Some fun fake fire:

Trugfeuer

symlbm_playground's People

Contributors

knairda avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

jiaqi-knight

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.