The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

jb4652 (9) [Avatar] Offline
Hi all,

When I run code in Listing 3.1 with my Nvidia Quadro FX 3600m card and 296.88 driver, I got the following result:
Main buffer size: 400
Sub-buffer size: 80
Main buffer memory address: 002DF9A8
Sub-buffer memory address: 002DFA20
Main array address: 002DF9A8

The addresses in line 3 & 5 are the same (different from the result presented in the book)

The specification indicates that CL_MEM_HOST_PTR returns the host_ptr argument value specified when memobj is created. So I do not know if there is something that I misunderstand.