Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • ocladock ocladock
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • docking
  • ocladockocladock
  • Issues
  • #31
Closed
Open
Issue created Aug 03, 2018 by Leonardo Solis@solisOwner

Missing synchronization after asynchronous copies?

This error was found with oclgrind and points to the last asynchronous copies in kernel4 and kernel_gradient:

Work-item finished without waiting for events.

Other kernels might suffer from this too:

  • See master -> kernel3 and kernel4.
  • See [debugfastergrad](https://git.esa.informatik.tu- darmstadt.de/docking/ocladock/blob/debugfastergrad/device/kernel4.cl#L311) -> kernel3, kernel4, kernel_gradient, and kernel_fire.

Keep in mind the following information from the v2.0 standard:

This function does not perform any implicit synchronization of source data such as using a barrier before performing the copy.

The kernel must wait for the completion of all async copies using the wait_group_events built-in function before exiting; otherwise the behavior is undefined.

Edited Aug 13, 2018 by Leonardo Solis
Assignee
Assign to
Time tracking