2 Replies Latest reply on Jan 4, 2012 4:58 PM by rouellet

    Function selection not working in KernelAnalyzer 11.11

    Marix

      If multiple kernels are contained within one source file loaded into the Kernel Analyzer the Compiler Statistics window always displays the data from the first kernel in the file, independent of which kernel is selected in the function drop down menu. The Object Code window seems to be updated correctly.

      The problem can be reproduced using the attached code. Not that the Fetch column stays at 2 if the vecMulAdd-Function is selected via the dropdown. If the order of the kernels is changed it changes to 3, and stays at that value even if vecAdd is selected via the dropdown.

      I am aware that the code needs to be recompiled after the function selection for the statistics to be updated, however it seems only to update the Object Code.

      Please not that I am using the workaround described in http://forums.amd.com/devforum/messageview.cfm?catid=347&threadid=157841&enterthread=y to run the Kernel Analyzer on a system without an AMD GPU. If the issue does not exist on a system with an AMD GPU this would also be valuable information to me.

      __kernel void vecAdd(__global float * const restrict out, __global const float * const restrict in1, __global const float * const restrict in2) { const size_t id = get_global_id(0); out[id] = in1[id] + in2[id]; } __kernel void vecMulAdd(__global float * const restrict out, __global const float * const restrict in1, __global const float * const restrict in2, __global const float * const restrict in3) { const size_t id = get_global_id(0); out[id] = in1[id] * in2[id] + in3[id]; }