I noticed that SYCL Version 2020 provisional add some new pointer-based momery management interfaces in SYCL(Unified shared memory). I wonder if computeCpp support these new features. If it support, how can I use it? Appreciate if there are some example codes. Thanks!
ComputeCpp provides experimental support for USM since version 2.0. The runtime side is mostly aligned with 2020 provisional, but the device compiler will still reject raw pointers. ComputeCpp version 2.2 (changelog) removed the need for the
experimental namespace, but you will still have to use the
cl::sycl::experimental::usm_wrapper class to wrap pointers before passing them into the kernel.
You can see some examples on SYCL Academy.
Got it. Thanks, Peter!