AnsweredAssumed Answered

Marking OpenCL function as __noinline__

Question asked by savage309 on Apr 28, 2015
Latest reply on Jul 7, 2015 by realhet

Hey there,

Is there a way to make real function call using GCN 1.2 and OpenCL ?


What I am having is an OpenCL app with heavy register spilling (lets just assume that splitting to multi kernels is not an option). Is there an option to mark a function as noinline, so when a function call is made, all the register used by the current function will be stored to the global memory and the new function will have all the registers for itself - thus if the function is not being called/used there will be no drawback from having it (it will not impact the register spilling in the function, from where it is being called). We are doing similiar stuff for other platforms where this seems to help us improve the performance.


If there is a way, what is the OpenCL keyword to do so ?




p.s. if there is a way to do funciton call, what abour recursion ?