I'm trying to use the append_buf_alloc_id(0), and append_buf_consume_id(0) instructions in IL from CAL. They work fine, however I cannot figure out how to initialise the initial value.
My question is, how do you initialise the GDS memory for these instructions?
My best guess currently is that a separate kernel must be launched to initialise the memory, however I haven't figured out what to do in such a kernel so as to initialise the counters...
Thanks Micah! Those functions worked a treat.
Now would it be possible to get any information about the signatures of the functions calBindAtomicCounter and calSyncAtomicCounter? 🙂