Giter Site home page Giter Site logo

Comments (1)

illuhad avatar illuhad commented on June 12, 2024

There is nothing in generic that causes perf to be inherently lower. Indeed, there are also cases where it performs notably better:
perf_O3

It is however simply a far newer compiler compared to the other compilation flows. I'm aware of multiple optimizations that could still be implemented on the SSCP side, and which I didn't yet get to implement. We also have plans to implement optimizations that are impossible in the other flows. So the expectation is that in the future performance should improve further, and eventually surpass the other compilation flow substantially on average. If you see a perf delta, it is likely not because of just-in-time compilation, it not knowing the target at compile time or the design of the compiler, but simply due to fewer development hours have so far gone into optimizing it. Optimization for generic targets primarily happens at runtime, when the target device is just as well known as when specifying cuda:sm_86 - perhaps it is even better known then, because we can also take runtime information into account.

If you observe very large performance differences (say >20%) I'd be interested in the code as performance differences are not expected to be that large.

If you believe that there is performance hit simply because to the additional latency due to the time it takes to JIT-compile, my advice is to design the application such that the first kernel invocation in a translation unit (which will trigger JIT) is outside the performance-critical path. This is in general sound application design, since every SYCL implementation targeting SPIR-V or PTX already inherently does just-in-time compilation, since GPU drivers JIT-compile those formats. So the same behavior can also be obverved with other SYCL compilers that output some form form of IR (like PTX or SPIR-V).

from adaptivecpp.

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.