Changes between Version 11 and Version 12 of AmdCl2Abi
- Timestamp:
- 12/29/17 08:00:29 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AmdCl2Abi
v11 v12 5 5 <p>This chapter describes how kernel gets its argument, how access to constant data. Because 6 6 Kernel setup is AMD HSA configuration, hence we recommend to refer to ROCm-ABI documentation 7 to get information about kernel setup and kernel arguments passing. Now a ssembler have7 to get information about kernel setup and kernel arguments passing. Now an assembler have 8 8 all the AMD HSA configuration's pseudo-ops to do it.</p> 9 9 <p>In this chapter, size is given in dwords. Dword is 4-byte value.</p> … … 18 18 <li>usegeneric - enable generic pointers support</li> 19 19 </ul> 20 <p> Number of user data registers depends on set of an enabled features. Following rules will20 <p>The number of user data registers depends on set of an enabled features. Following rules will 21 21 be applied:</p> 22 22 <ul> … … 53 53 <li>void* aqlwrap_pointer - 32-bit or 64-bit</li> 54 54 </ul> 55 <p>Further arguments in that buffer are an user arguments defined for kernel. Any pointer,55 <p>Further arguments in that buffer are an user arguments defined for a kernel. Any pointer, 56 56 command queue, image, sampler, structure tooks 8 bytes (64-bit pointer) or 57 57 4 bytes (32-bit pointer) in 32-bit AMD OpenCL 2.0. 58 58 3 component vector tooks number of bytes of 4 element vector. 59 Smaller types likes (char, short) tooks 1-3 bytes. A lignment depends on same type59 Smaller types likes (char, short) tooks 1-3 bytes. An alignment depends on same type 60 60 or type of element (for vectors).</p> 61 61 <p>For 64-bit AMD OpenCL 2.0 all setup arguments and pointers are 64-bit.