CodeXL cannot run GPU profile

144 Views Asked by At

I write an OpenCL program and want to profile it with codeXL. But the GPU : Performance Counters didn't work. The program is a very easy vector-add example and it runs properly on Visual Studio 2017. The codeXL displays cannot open vecAdd.cl, failed to create CL program from source. It is strange, who can give me some advice? The operating system is

  • Windows 10 x64 pro,
  • codeXL 2.5.67,
  • AMD FirePro w7100,
  • AMD APP SDK 3.0 x86.

codeXL error message

The vecAdd.cl is as follows:

__kernel void vector_add(global const float *a, global const float *b,
    global float *result)
{

    int gid = get_global_id(0);
    result[gid] = a[gid] + b[gid];

}
1

There are 1 best solutions below

2
Baifeng On

OK,I have solved it. Because I set the wrong categories and codeXL cannot find the vecAdd.cl.