Giter Site home page Giter Site logo

ccm_simd_demo's Introduction

simd demo

This C++ code shows how to accelerate a simple O(N^2) direct kernel summation of the type common in integral equation solvers, FMMs, etc. It compares 3 methods: explicit SIMD vectorization via the VCL library (which for convenience is included in this repo), and letting the compiler vectorize for different inner-outer loop orders.

For more on what "SIMD vectorization" means, see here:
https://en.wikipedia.org/wiki/SIMD
https://software.intel.com/en-us/articles/improve-performance-using-vectorization-and-intel-xeon-scalable-processors
https://software.intel.com/en-us/blogs/2012/01/31/vectorization-find-out-what-it-is-find-out-more
https://www.codingame.com/playgrounds/283/sse-avx-vectorization/what-is-sse-and-avx

For some speedups in the Helmholtz kernel context, see demo_slides.pdf.
Wen Yan's simd demo https://github.com/wenyan4work/DemoSIMD, which also has simd speed up tests and memory cache tutorials.

test autovec for icc and gcc

  • icpc -fPIC -g -O3 -march=native -funroll-loops -fopenmp -std=c++17 -DVCL -I./version1 main.cc; ./a.out
  • g++ -fPIC -g -O3 -march=native -funroll-loops -fopenmp -std=c++17 -DVCL -I./version1 main.cc; ./a.out

explicit vectorization(simd) libraries, there are more on github

ccm_simd_demo's People

Contributors

lu1and10 avatar lulibin avatar

Stargazers

 avatar  avatar

Watchers

 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.