Commit ac30c32
authored
[SYCL] Split
For the following code (note no submit, just bare minimum
`cgh.single_task`):
```
int main() {
int *p;
sycl::detail::loop<2>([&](auto outer_idx) {
sycl::detail::loop<200>([&](auto idx) {
auto krn = [=]() { *p = 42; };
auto s = [&](sycl::handler &cgh) { cgh.single_task(krn); };
(void)sycl::detail::type_erased_cgfo_ty{s};
});
});
}
```
compiled as
` $ time clang++ -isystem ~/sycl/build/include a.cpp -c -o /dev/null
-Wno-deprecated`
(to simulate host-only compilation), improves 3.4s -> 3.0s.throwOnKernelParameterMisuse to improve compile time (#17670)1 parent af4c2fa commit ac30c32
File tree
2 files changed
+15
-7
lines changed- sycl
- include/sycl
- test/abi
2 files changed
+15
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3779 | 3779 | | |
3780 | 3780 | | |
3781 | 3781 | | |
3782 | | - | |
3783 | | - | |
3784 | | - | |
3785 | | - | |
3786 | | - | |
3787 | | - | |
3788 | | - | |
| 3782 | + | |
| 3783 | + | |
| 3784 | + | |
| 3785 | + | |
| 3786 | + | |
| 3787 | + | |
| 3788 | + | |
3789 | 3789 | | |
3790 | 3790 | | |
3791 | 3791 | | |
| |||
3805 | 3805 | | |
3806 | 3806 | | |
3807 | 3807 | | |
| 3808 | + | |
| 3809 | + | |
| 3810 | + | |
| 3811 | + | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
3808 | 3815 | | |
3809 | 3816 | | |
3810 | 3817 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4408 | 4408 | | |
4409 | 4409 | | |
4410 | 4410 | | |
| 4411 | + | |
4411 | 4412 | | |
4412 | 4413 | | |
4413 | 4414 | | |
| |||
0 commit comments