Hi there,
I’m performing some tests on an AMD fusion. I actually want to test the bandwidth of the host writing to buffers allocated in various positions (host, device, host-device accessible memory).
Now, suppose that I want to test the performance of writing into a generic buffer. I can do that by:
- allocating the buffer and doing an enqueueWriteBuffer(data)
or by:
- allocating the buffer, getting the pointer through enqueueMapBuffer, and “explicitely” writing into the buffer dereferencing the pointer (es. *p = x, *(p + 1) = y, etc).
Which is the differences between those two methods regarding limitations and performances issues?
Thank you very much for you help!
Gabriel