Skip to content

enqueueXXX with events true extreamly slow after many iterations (NVIDIA) #47

Description

@jeremydiviney

after a few thousand iterations of this kind of loop

{
kernel_events = cl.enqueueNDRangeKernel(.......,true)
read_event =cl.enqueueReadBuffer(.......,true)
cl.waitForEvents([read_event]);
}

on my NVIDIA SDK/hardward (GTX 970), it start getting very very slow, like 1000x slower than the loop take for the first few thousand iteration.

The only thing that prevents this is passing false on the last parament, so no events are returned, this it runs fine for basically unlimited iterations.

on a side now, it also seems like with the NVIDIA SDK, the enqeueXXX functions block on their own without doing waitForEvents or cl.finish etc...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions