Code Monkey home page Code Monkey logo

Comments (10)

michaelld avatar michaelld commented on August 19, 2024

Looks like this intrinsic is not part of GCC 4.7, but it is part of GCC 4.8. It is not part of Clang 3.6, but it is in Clang 3.7. So, to use these kernels we need to be checking for compiler version & not building or using them if the compiler is too old.

from volk.

n-west avatar n-west commented on August 19, 2024

I'm aware of this and just haven't had time to think about how to handle it. I'll probably be able to get to it tomorrow evening along with the PR queue.

Note to anyone interested: Currently we glob to get all of the headers in kernels/volk/*.h. This might require changing that (lib/CMakeLists.txt:322) so we can include the new polar stuff conditionally based on the compiler version. The alternative is to add a new arch for this intrinsic which is pretty ugly.

from volk.

michaelld avatar michaelld commented on August 19, 2024

OK; glad you're aware of it. Taking a look at the CMakeLists.txt where you say, I'll let you take the lead on this. I'm happy to do testing & some tweaks, of course.

from volk.

n-west avatar n-west commented on August 19, 2024

I thought I might come up with something while this sat in the back of my mind while I recovered from grcon and caught up with other things. I think I'm mostly caught up with the rest of VOLK, but not much has come to mind on this issue. Any more insights on compiler versions?

from volk.

michaelld avatar michaelld commented on August 19, 2024

Yes. Testing this week (maybe even today). If it works I'll do a PR & note that here.

from volk.

michaelld avatar michaelld commented on August 19, 2024

Per discussion on IRC freenode #volk, looks like we can use _mm_srli_si128 instead of _mm_bsrli_si128. This intrinsic goes all the way back to LLVM 3.3 or earlier; GCC 4.2 or earlier. Very nice!

from volk.

michaelld avatar michaelld commented on August 19, 2024

replacing "s/_mm_bsrli_si128/_mm_srli_si128/g" works for me here, no special compiler checking needed!

from volk.

michaelld avatar michaelld commented on August 19, 2024

Do you want me to do a PR with this change? Seems simple enough, but it might save you a few steps.

from volk.

n-west avatar n-west commented on August 19, 2024

Yea, you can do a PR or I'll get around to when I get home tonight.

from volk.

michaelld avatar michaelld commented on August 19, 2024

PR issued.

from volk.

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.