5 Replies Latest reply on Aug 21, 2013 5:53 PM by sylze

    clBuildProgram and KernelAnalyzer2 crash

    sylze

      Hello everyone.

       

      This simple Kernel:

      struct foo{
        float a;
      };
      
      __kernel
      void asdf(__global float* a) {
        struct foo asdf = (struct foo){1};
        a[get_global_id(0)] = asdf.a;
      }
        
      

      crashes clBuildProgram and the KernelAnalyzer2 for me, but only if the struct foo is initialized with a non zero value. The type of foo.a does not seem to matter, even bool crashes them. To make it clear:

      struct foo{
        float a;
      };
      
      __kernel
      void asdf(__global float* a) {
        struct foo asdf = (struct foo){0};
        a[get_global_id(0)] = asdf.a;
      }
      

      and

      struct foo{
        float a;
      };
      
      __kernel
      void asdf(__global float* a) {
        float b = 1;
        struct foo asdf = (struct foo){b};
        a[get_global_id(0)] = asdf.a;
      }
      

      do not cause a crash.

       

      I am using  the Catalyst Driver 13.4 for my Radeon HD 7870 on Windows 7.

      The KernelAnalyzer2 is at Version 2.1.880.

       

      I hope this is the right place to post this

       

      sylze