Comments (1)
There is nothing in generic
that causes perf to be inherently lower. Indeed, there are also cases where it performs notably better:
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)
- joint_exclusive_scan does not work in-place HOT 1
- [stdpar] amdgcn-link command failed with exit code 1 HOT 3
- cuda error HOT 1
- SMCP for OpenCL? HOT 3
- cannot find memory and stdio HOT 2
- sycl::queue::memcpy doesn't work from device to host memory HOT 1
- Linking Error with HIP SDK 5.7 (Windows) HOT 2
- Problem when using HIP backend with `hip.explicit-multipass` (Windows)
- cmake error HOT 14
- test code fails on first run HOT 1
- cmake error: Could not find a package configuration file HOT 2
- GoogleTest DeathTests not working correctly with --acpp-stdpar
- undefined symbol in libaccp-clang.so HOT 8
- Typo in error report HOT 1
- Using `sycl::atomic_ref<...>{}.store()` defaults to `__ATOMIC_SEQ_CST` leading to a compiler error. HOT 3
- Problem with CUDA backend HOT 2
- Compatibility issue with latest Microsoft C++ Library on Windows HOT 2
- [stdpar] Hang inside std::transform_reduce in TeaLeaf on Intel(R) Data Center GPU Max 1100 / OpenCL HOT 5
- Host-to-host memcpy broken with with instant submission on CUDA backend HOT 1
- Simple reduction example fails with an assert when AdaptiveCpp is compiled in debug mode.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adaptivecpp.