Giter Site home page Giter Site logo

nemandza82 / symd Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 910 KB

C++ header only template library designed to make it easier to write high-performance SIMD (SSE, AVX, Neon) and multi-threaded code.

License: MIT License

C++ 99.84% Makefile 0.15% C 0.01%
avx convolution cpp library matrix multi-threading multithreading neon parallelisation performance simd simd-instructions sse sse2 tbb vector

symd's People

Contributors

0508994 avatar nemandza82 avatar nemanjagrujic avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

symd's Issues

Add blocking view

To support operations which take multiple consecutive elements of input collection and/or generate multiple consecutive elements of output collection, Symd bust have something like blocking view.

Examples of such operations are for instance color conversions. Here is example usage of such view:

    size_t width = 1920;
    size_t height = 1080;
    
    std::vector<float> YUV444(width * height * 3);
    std::vector<float> RGB24_mc(YUV444.size());

    symd::map(symd::views::block_view<3,1>(RGB24_mc), [](auto yuv)
          {
                return yuvToRgbKernel(yuv[1], yuv[0], v[2]);

          }, symd::views::block_view<3,1>(YUV444));

symd::views::block_view<3,1>(YUV444) creates block view of input collection where blocks are of 3x1 size.

Optimal implementation could be achieved by implementing block_view, and overriding all necessary view operations (getWidth, getHeight, getPitch, fetchData, fetchVecData, saveData, saveVecData and more).

Fetch and save methods should fetch and save all elements within block so they are accessible within the kernel.

For this we added failing test:

TEST_CASE("Mapping - blocking input YUV444 to RGB")

Which after correct implementation should pass.

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.