Skip to content
Snippets Groups Projects
Commit 7415e395 authored by Jonathan Mace's avatar Jonathan Mace
Browse files

Bugfix in rate limiting

parent a80e14c8
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,9 @@ public:
void limit(cudaStream_t stream) {
if (count++ == skip) {
CUDA_CALL(cudaEventSynchronize(events[position]));
CUDA_CALL(cudaEventRecord(events[position]));
CUDA_CALL(cudaEventRecord(events[position], stream));
position = position++ % num_events;
position = (position+1) % num_events;
count = 0;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment