0 Replies Latest reply on May 27, 2010 5:53 PM by roddomi

    8-bit arena addressing

    roddomi

      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.