AnsweredAssumed Answered

CodeXL truncate float on when profiling openCL

Question asked by festi on Jul 21, 2014
Latest reply on Aug 29, 2014 by chesik

Hello,

 

I have a problem when using the "Application Timeline Trace" tool in profile mode. Float constants are truncated

 

Here an example:

__kernel void useFloats(__global float* in,

                        __global float* out){

    if(get_global_id(0) == 0){

        out[0] += in[0] + 2.5f;

    }

}

If I run this kernel with in pointing to 0.3 and I read out I get 2.8, which is normal because 0.3 + 2.5 = 2.8.

If I run the same kernel with the same input using the "Application Timeline Trace" tool I get 2.3 (the constant 2.5 is truncated to 2.0).

 

I am running Fedora 19 with an HD7990 and CodeXl 1.4.5728.0.

 

Does anyone have a solution?

Outcomes