Commit 4ee11fd
authored
Use std::optional to fix perf issues in device, result, and combined storage (#2545)
* Use std::optional to fix perf issues in device, result, and combined storage caused by default construction of sycl::queue
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
* Add asserts to check queue is present and avoid checks in release builds
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
---------
Signed-off-by: Matthew Michel <matthew.michel@intel.com>1 parent 15fcdcc commit 4ee11fd
File tree
1 file changed
+10
-6
lines changed- include/oneapi/dpl/pstl/hetero/dpcpp
1 file changed
+10
-6
lines changedLines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
399 | 401 | | |
400 | 402 | | |
401 | 403 | | |
402 | | - | |
| 404 | + | |
403 | 405 | | |
404 | 406 | | |
405 | 407 | | |
406 | 408 | | |
407 | | - | |
| 409 | + | |
| 410 | + | |
408 | 411 | | |
409 | 412 | | |
410 | 413 | | |
| |||
699 | 702 | | |
700 | 703 | | |
701 | 704 | | |
702 | | - | |
| 705 | + | |
703 | 706 | | |
704 | 707 | | |
705 | 708 | | |
706 | 709 | | |
707 | | - | |
| 710 | + | |
708 | 711 | | |
709 | 712 | | |
710 | 713 | | |
| |||
796 | 799 | | |
797 | 800 | | |
798 | 801 | | |
799 | | - | |
800 | | - | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
801 | 805 | | |
802 | 806 | | |
803 | 807 | | |
| |||
0 commit comments