5 Replies Latest reply on Mar 25, 2014 3:35 AM by roger512

    clBuildProgram performance?

    likewind

      I have a problem similar to this topic clBuildProgram performance and limits?

       

      I'm trying to compile OpenCL program on my 7850. It is strange that clBuildProgram takes 100s ms.When I using graphic card of other brands, it  only takes 1-2 ms.

       

      Is this normal? Or did I use it in a wrong way?

       

      cl_program program = clCreateProgramWithSource(cl_gpu_context_,1,(const char **)&ptr_program_source,&program_length,&cl_error_num);
      if(cl_error_num != CL_SUCCESS)
      {
         return cl_error_num;
      }

       

      cl_error_num = clBuildProgram(program,0,NULL,ptr_build_option,NULL,NULL);

       

       

      My environment:

      OS: Win7 64bits

      SDK:AMD-APP-SDK-v2.8

      Graphic card: AMD Radeon HD 7850

       

      Thanks~