cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

roddomi
Journeyman III

8-bit arena addressing

Hello,

I want to use a UAV arena to access an array of unsigned char (1 byte) elements. I am doing:

calResAlloclLocal1D(&Res, device, 10, CAL_FORMAT_UNSIGNED_INT8_1, CAL_RESALLOC_GLOBAL_BUFFER);

calCtxGetMem(&Mem, context, Res);

calModuleGetName(&Name, context, module, "uav0");

calCtxSetMem(context, Name, Mem);

 

but I am getting an 'Operational Error' at the calCtxSetMem. This doesn't happen with other formats (e.g. CAL_FORMAT_INT_1). What is the right way to format a UAV arena?

 

Thank you.

0 Likes
0 Replies