message: Added more comments to simple example
diff: @@ -91,16 +91,28 @@ static void run(const ISPCRTDeviceType device_type, const unsigned int SIZE) {
  std::generate(vin.begin(), vin.end(), [i = 0]() mutable { return i++; });
  + // ispcrt::Array objects which used as inputs for ISPC kernel should be
  + // explicitly copied to device from host
  queue.copyToDevice(p_dev);
  queue.copyToDevice(vin_dev);
  +
  + // Make sure that input arrays were copied
  queue.barrier();
  - // Launch the kernel on the device
  + // Launch the kernel on the device using 1 thread
  queue.launch(kernel, p_dev, 1);
  +
  + // Make sure that execution completed
  queue.barrier();
  + // ispcrt::Array objects which used as outputs of ISPC kernel should be
  + // explicitly copied to host from device
  queue.copyToHost(vout_dev);
  +
  + // Make sure that input arrays were copied
  queue.barrier();
  +
  + // Execute queue and sync
  queue.sync();
  std::cout << "Executed on: " << device_type << '\n' << std::setprecision(6) << std::fixed;
  