cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

malcolm3141
Journeyman III

Initialising GDS memory

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...

 

Malcolm

Tags (2)
0 Likes
2 Replies
MicahVillmow
Staff
Staff

Initialising GDS memory

Please try the calReadAtomicCounter/calWriteAtomicCounter functions in the cal_ext.h header file. However, please keep in mind that CAL support has been deprecated as of SDK 2.5, so there is no guarantee that what you write now will keep working. Please use the OpenCL extension as that is the way forward for our hardware/software.
0 Likes
malcolm3141
Journeyman III

Initialising GDS memory

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? 🙂

 

0 Likes