5 Replies Latest reply on Apr 5, 2015 11:54 AM by jason

    Will the flag of clCreateBuffer influence the results?




      I'm optimizing the myocyte in Rodinia Benchmark on APU A10-7850K. I want to try different buffer flags.

      The original buffer is like this:

              d_initvalu = clCreateBuffer(context,                                    // context

                                                                      CL_MEM_READ_WRITE,                        // flags

                                                                      d_initvalu_mem,                         // size of buffer

                                                                      NULL,                                           // host pointer (optional)

                                                                      &error ); 

      I change the flag to CL_MEM_READ_WRITE|CL_MEM_ALLOC_HOST_PTR but the output results is different from original results.


      Would the flag influence the results?