AnsweredAssumed Answered

Will the flag of clCreateBuffer influence the results?

Question asked by merlion on Mar 8, 2015
Latest reply on Apr 5, 2015 by jason



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?