2 Replies Latest reply on Aug 30, 2010 9:19 AM by genaganna

    compilation error which I don't understand

    mihzaha
      Running pass 'AMDIL Assembly Printer' on function

      clGetProgramBuildInfo sais:

      Compilation from LLVMIR binary to IL textfailed!

      and here is what I see at the output:

       

       

      Stack dump:

      0.      Program arguments: C:\Program Files (x86)\ATIStream\bin\x86_64\llc -mcp

      u=teddy -mattr=mwgs-3-256-1-1,+byte_addressable_store,+images -regalloc=linearsc

      an -mtriple=amdil-pc-amdopencl D:\Users\Mihai\AppData\Local\Temp\OCL1C86.tmp.bc

      -f -o D:\Users\Mihai\AppData\Local\Temp\OCL1C86.tmp.il

      1.      Running pass 'AMDIL Assembly Printer' on function '@__OpenCL_Randeaza_kernel'

       

       

      and the Randeaza code, which I saw in the error:

       

       

      __kernel void Randeaza(__global raza *ListaRazeActive, __global voxel *ListaVoxeli, __global uint *ListaVoxeliModificati, __global variabile *Var, __global uchar4 *Imagine)

      {

      uint index_curent;

      index_curent=get_global_id(0);

       

       

      raza raza_crt=ListaRazeActive[index_curent];

       

      Imagine[index_curent]=as_uchar4(raza_crt.pixel);

      }



       

      I have 5870 card with ati stream 2.1 win7 64 and CCC 10.6 win7 64.

        • compilation error which I don't understand
          mihzaha

          it works without the '__global variabile *Var' parameter.

          here's the structure:

           

           

          struct Variabile

          {

          uint cap1_lista_raze, cap2_lista_raze;

          uint cap_lista_raze_active;

          uint cap_lista_voxeli_incompleti;

           

          uint radacina;

          uint dimensiune_univers;

           

          uint max_raze, max_raze_active, max_voxeli, max_buffer_indecsi, max_buffer;

           

          void* cl_Buffer;

          uint* cl_BufferIndecsi;

          voxel* cl_ListaVoxeli;

          uint* cl_ListaVoxeliIncompleti;

          uint* cl_HashVoxeliIncompleti;

          raza* cl_ListaRaze;

          raza* cl_ListaRazeActive;

          struct Variabile *cl_Var;

          uchar4* cl_Imagine;

          }__attribute__((packed));

           

          typedef struct Variabile variabile;



            • compilation error which I don't understand
              genaganna

               

              Originally posted by: mihzaha it works without the '__global variabile *Var' parameter.

               

              here's the structure:

               

               

               

              struct Variabile

               

              {

               

              uint cap1_lista_raze, cap2_lista_raze;

               

              uint cap_lista_raze_active;

               

              uint cap_lista_voxeli_incompleti;

               

               

               

              uint radacina;

               

              uint dimensiune_univers;

               

               

               

              uint max_raze, max_raze_active, max_voxeli, max_buffer_indecsi, max_buffer;

               

               

               

              void* cl_Buffer;

               

              uint* cl_BufferIndecsi;

               

              voxel* cl_ListaVoxeli;

               

              uint* cl_ListaVoxeliIncompleti;

               

              uint* cl_HashVoxeliIncompleti;

               

              raza* cl_ListaRaze;

               

              raza* cl_ListaRazeActive;

               

              struct Variabile *cl_Var;

               

              uchar4* cl_Imagine;

               

              }__attribute__((packed));

               

               

               

              typedef struct Variabile variabile;

               

               



              Please try with SDK2.2 and 10.8.