2 Replies Latest reply on Oct 15, 2015 5:05 AM by nibal

    Bad prototyping with latest catalyst 15.9

    nibal

      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.

        • Re: Bad prototyping with latest catalyst 15.9
          dipak

          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,