Giter Site home page Giter Site logo

libc++-14 incompatibility about onedpl HOT 3 OPEN

dbs4261 avatar dbs4261 commented on July 23, 2024
libc++-14 incompatibility

from onedpl.

Comments (3)

jwakely avatar jwakely commented on July 23, 2024

libc++ is part of LLVM, I guess you mean libstdc++.

from onedpl.

jwakely avatar jwakely commented on July 23, 2024

The problem is that the upstream PSTL (which is also part of LLVM!) changed the definition of that macro:
llvm/llvm-project@3b9a1bb#diff-4c6821476cefc699b801f5fdbeda3341e3c64626dcf39a79621ea02031bdd50eL113

It's no longer defined to 1, which seems like a bad decision in the upstream code IMHO.

But the real problem is that onedpl is not including its own pstl_config.h and is relying on an incompatible "third-party" header of the same name, found elsewhere in the include path.

from onedpl.

dbs4261 avatar dbs4261 commented on July 23, 2024

Quick correction, libc++-13 and libc++-14 are the apt packages proving those files. However your point is a good one that both GNU C++ and Clang++ use LLVM's PSTL implementation. I tried adding #include "pstl_config.h" to the top of algorithm_impl.h, and that made me realize both the LLVM PSTL and oneDPL implementation use the same include guard, so that wont work. Looks like this will need to be resolved by either changing the code that checks for _PSTL_UDR_PRESENT or by fixing the upstream header. I think fixing the LLVM PSTL header is the better choice for backwards compatibility reasons.

from onedpl.

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.