Git Product home page Git Product logo

Comments (3)

chuckyount avatar chuckyount commented on May 26, 2024

Thanks for the feedback and the detailed issue. The call to storeTo_masked was left in calc_loop_of_clusters because the Intel C++ compiler recognizes when a constant "all-ones" (from constexpr idx_t write_mask = idx_t (-1);) mask is used in calc_loop_of_clusters, and it automatically replaces the masked store with a regular store (i.e., vmovups), at least for avx512. I have confirmed that this optimization is not applied for avx2. This is likely because the int mask has to be transformed into a ymm mask (realv.hpp line 491), and the compiler doesn't recognize this idiom. It would not be advisable to put a run-time conditional test inside storeTo_masked, because branches also have a large negative impact on performance. The better solution would be for the YASK compiler to generate storeTo instead of storeTo_masked directly inside calc_loop_of_clusters. I will investigate this enhancement.

from yask.

chuckyount avatar chuckyount commented on May 26, 2024

A fix has been pushed to the develop branch if you want to test it.

from yask.

christiealappatt avatar christiealappatt commented on May 26, 2024

Thanks a lot for the quick action. I tested the fix, it works :)

from yask.

Related Issues (20)

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.