cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

merlion
Journeyman III

Will the flag of clCreateBuffer influence the results?

Hi,

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?

Thanks!

0 Likes
5 Replies

This flag by itself should not influence the results. Can you share more about what the application is doing?

Additionally, please run memtest86 on your DDR3 memory to verify it has no faults.

0 Likes

Myocyte application models cardiac myocyte (heart muscle cell) .

http://www.cs.virginia.edu/~skadron/wiki/rodinia/index.php/Myocyte

I am trying to find out the reasons.


0 Likes

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.

0 Likes

Hello,

sorry for the late testing. I run the memtest86 2 times and no errer found. I paste the screen shot as follows:

Then what should I do?

IMG_3070.JPG

IMG_3072.JPG

0 Likes
jason
Adept III

On the off chance you use the rect copy functions somewhere:

clEnqueueWriteBufferRect does not work when region width is not equal to src pitch: broken again in ...

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.

0 Likes