I’m a newbie of SYCL. If I get it right, SYCL copies data between host and device automatically when the Buffer class is accessed. I wonder if the data will be copied each time when it is required?
Since in my program, I have a set of data which is going to be used many times for many kernels. I prefer to transfer it firstly and avoid repeatedly copying it during each kernel call.
I read the tutorial and find that there is a function of class Handler to achieve this: sycl::handler cgh.copy(), do you have any example codes for it?