[SYCL] Unnecessary read_write dependencies when multiple devices read same buffer
- Dominant language
- LLVM
- Stars
- 1.5k
- Forks
- 854
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 137
Description
I have some code that launches multiple kernels and distributes them on multiple queues which are for different CUDA devices. When only 1 gpu is used, we get the following dependency graph:

When the kernels are distributed among different devices, then we get the following graph:

I would expect the graph not to change much and I would expect no dependencies between different "tri_kernel" kernels. The kernels access buffers in read-only mode and these buffers are shared between different kernel launches. In the latter dependency graph, even though I am using multiple devices, I observe that only one of them runs at a time because of dependencies.
Contributor guide
Assessment
This issue has not been assessed yet.