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)
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?
As Tzachi noted, the flag should have no impact on the results. One thing that can is memory. As opposed to discrete graphics, on APUs the user may choose to install low grade memory modules that lead to GPU memory corruption. So please run Memtest86 on your system and confirm that your DDR3 memory modules are fine.
On the off chance you use the rect copy functions somewhere:
Yes, under specific circumstances that flag has been known to change things up. Now what can happen with an APU specifically with regards to that I'm not sure.