llvm
llvm copied to clipboard
[SYCL][Doc] Fix root-group example
Fix several problems with the example in this extension:
-
The
use_root_syncproperty is a kernel property, not a kernel launch property. Therefore, it should decorate the kernel definition, not be passed to the launch command. -
The
max_num_work_group_syncwas renamed tomax_num_work_groupsa long time ago, but it seems like we forgot to update this example. -
Upgrade the example from a code snippet to a full example. I verified that it compiles and runs correctly.