Tony,
Thanks for sharing that scenario. We do have a plan to support it, but no ETA currently. Thanks, Zhigang Gong. From: Beignet [mailto:[email protected]] On Behalf Of Tony Moore Sent: Monday, November 10, 2014 1:44 PM To: Zhigang Gong Cc: [email protected] Subject: Re: [Beignet] Assembly with Source Lines Hi. I'm in the process of optimizing a relatively large kernel and it would help me to match up which assembly instructions corresponds to which source lines. For example, the original code indexed into a global array using the same index multiple times and at first I assumed the compiler would optimize it to be a single load but after changing the code to store the value in a local variable I saw a performance boost. Having the assembly with source I might have noticed some inefficiencies. Thanks On Sun, Nov 9, 2014, 9:45 PM Zhigang Gong <[email protected] <mailto:[email protected]> > wrote: This is doable but hasn't been done yet. It need to get LOC information from the LLVM/Clang side, and then map this LOC information to GEN IR and to the finally assembly code after the post instruction scheduling. Could you share with us what's the scenario you need to get this information? Thanks. On Sun, Nov 09, 2014 at 07:06:06PM +0000, Tony Moore wrote: > Hello- > Is there a method to match up a line of assembly from the OCL_OUTPUT_ASM=1 > option to the OpenCL source code? If not, do you know what kind of changes > would need to be done? > > thanks! > _______________________________________________ > Beignet mailing list > [email protected] <mailto:[email protected]> > http://lists.freedesktop.org/mailman/listinfo/beignet
_______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
