Open tverho opened 4 years ago
I sympathize with this. Do you think this should be a global or per-array setting?
Good point, maybe global. At least I cannot easily imagine a case where one would need to control it on a per array basis. Ultimately, I think it can be either way, it probably wouldn't be too cumbersome to set it for each array either, at least not in my case (I have only 2 arrays that are passed to gpyfft).
Currently the
add_event()
method incl.array
has a hard coded limit of 12 for the number of queued events. I think it would be better if this was a configurable property. I'm trying to use gpyfft while using the build-in event management incl.array
. However, gpyfft has a hard-coded limitDEF MAX_WAITFOR_EVENTS = 10
which is lower than inadd_event()
(and leads to an assertion error), basically forcing me to periodically callcl.array.finish()
which is nonideal. I would like to be able to do