[Beignet] Assembly with Source Lines
Zhigang Gong
zhigang.gong at linux.intel.com
Mon Nov 10 02:39:39 PST 2014
Tony,
Thanks for sharing that scenario. We do have a plan to support it, but no ETA currently.
Thanks,
Zhigang Gong.
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Tony Moore
Sent: Monday, November 10, 2014 1:44 PM
To: Zhigang Gong
Cc: beignet at lists.freedesktop.org
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 <zhigang.gong at linux.intel.com <mailto:zhigang.gong at linux.intel.com> > 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
> Beignet at lists.freedesktop.org <mailto:Beignet at lists.freedesktop.org>
> http://lists.freedesktop.org/mailman/listinfo/beignet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20141110/84ad6c4b/attachment-0001.html>
More information about the Beignet
mailing list