Maximum UAV width in calResAllocLocal1D

Discussion created by roddomi on Oct 26, 2010
Latest reply on Nov 19, 2010 by malcolm3141


I need to allocate a large UAV using calResAllocLocal1D with CAL_FORMAT_UNSIGNED_INT32_1 format. This is the only UAV in my application. What is the maximum width I can allocate? Is the width given in bytes or in units of UNSIGNED_INT32_1 (i.e. four bytes)? My card is an HD5870 and according to CLInfo:

Max memory allocation:                         268435456

Is this the maximum width I can pass to calResAllocLocal1D (256 MB)?

Thank you.