0

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];

}

Baifeng
  • 21
  • 2
  • Are you using OpenCL with the C-header or some other way? – Jovasa May 09 '18 at 05:46
  • The main program is written by C. and C-header just and . It is a simple program. The goal is to use GPU to calculate vector-add. a[1000] + b[1000]=c[1000]. I just suspect if I configure codeXL wrongly. – Baifeng May 09 '18 at 11:53

1 Answers1

0

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

Baifeng
  • 21
  • 2