Giter Club home page Giter Club logo

nvortexsimd's Introduction

nvortexSimd

Simple N-body codes using C++ experimental simd support

Compile and run

On a Linux workstation with GCC 11+ (or clang?), this should be as easy as

make
./nvortex2d.bin
./nvortex3d.bin -n=30000

To do

We should be able to iterate over a std::vector<float> but cast it to a simd type just before the kernel.

About

This will be a copy of nvortexVc but using the C++-built-in experimental simd extensions. Learn more about experimental/simd at cppreference and stackoverflow.

Note that GCC will auto-vectorize the 2D code, but not the 3D code (too many registers?). Unlike Vc, there is no vectorized square root yet, so the 3D code is much slower than the 2D code now.

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.