cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

nibal
Challenger

Bad prototyping with latest catalyst 15.9

When compiling your sample FFT I get:

BUILD LOG

************************************************

"/tmp/OCL6501T5.cl", line 115: error: no instance of overloaded function

  "FFT::Init" matches the specified type

  void FFT::Init(__global float *real,__global float *imag,__local float *Localds)

  ^

"/tmp/OCL6501T5.cl", line 678: error: no instance of overloaded function

  "FFT::Init" matches the argument list

  argument types are: (__global float *, __global float *, __local

  float [2176])

  object type is: FFT

  fftObj.Init(greal,gimag,lds);

  ^

2 errors detected in the compilation of "/tmp/OCL6501T5.cl".

Frontend phase failed compilation.

Plz use attached sources. It should be, but is not exactly your sample.

0 Likes
1 Solution
dipak
Big Boss

When compiling your sample FFT I get:

As I tried to build the FFT kernel file (i.e. FFT_Kernels.cl) from APP SDK sample, it compiled fine. I even tried it using CodeXL also.

My setup: Ubuntu 14.04 64bit, latest 15.9-15.201.1151, Latest CodeXL 1.8, APP SDK 3.0

However, if you refer the error generated using the above attached code, it will work if you modify the code as shown below:

class FFT

{

...

public:

void Init(__global float *real,__global float *imag,__global float *Localds); ---> void Init(__global float *real,__global float *imag,__local float *Localds);

Regards,

View solution in original post

0 Likes
2 Replies
dipak
Big Boss

When compiling your sample FFT I get:

As I tried to build the FFT kernel file (i.e. FFT_Kernels.cl) from APP SDK sample, it compiled fine. I even tried it using CodeXL also.

My setup: Ubuntu 14.04 64bit, latest 15.9-15.201.1151, Latest CodeXL 1.8, APP SDK 3.0

However, if you refer the error generated using the above attached code, it will work if you modify the code as shown below:

class FFT

{

...

public:

void Init(__global float *real,__global float *imag,__global float *Localds); ---> void Init(__global float *real,__global float *imag,__local float *Localds);

Regards,

0 Likes

Yes. My mistake. Localds is __local, not __global.

Ty

0 Likes