You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// By default, nVidia finish causes a CPU busy wait. Instead, sleep for a while. Since we know how many items are enqueued after the marker we can make an
102
104
// educated guess of how long to sleep to keep CPU overhead low.
103
105
while (getEventInfo(markerEvent) != CL_COMPLETE) {
104
-
#if defined(__CYGWIN__)
105
-
sleep(1); // 1 second. A very steep overhead as 500 iterations won't take that long.
106
-
#else
107
-
usleep(1 + queueCount * squareTime / 10); // There are 4 kernels per squaring. Don't overestimate sleep time. Divide by 10 instead of 4.
108
-
#endif
106
+
// There are 4 kernels per squaring. Don't overestimate sleep time. Divide by 10 instead of 4.
0 commit comments