I’ve read This Article and tried the corresponding code From Here
The results I’ve got are not as expected. I can’t see any significant bandwidth increase for the “pinned memory” case. In some test runs it’s even worse then for “usual” memory. Any idea, why, please?
./memtst
Device: NVIDIA GeForce GTX 1060 6GB
Transfer size (MB): 16
Pageable transfers
Host to Device bandwidth (GB/s): 0.388620
Device to Host bandwidth (GB/s): 0.417222
Pinned transfers
Host to Device bandwidth (GB/s): 0.359622
Device to Host bandwidth (GB/s): 0.419293
./memtst
Device: NVIDIA GeForce GTX 1060 6GB
Transfer size (MB): 16
Pageable transfers
Host to Device bandwidth (GB/s): 0.387992
Device to Host bandwidth (GB/s): 0.417588
Pinned transfers
Host to Device bandwidth (GB/s): 0.390906
Device to Host bandwidth (GB/s): 0.418569
./memtst
Device: NVIDIA GeForce GTX 1060 6GB
Transfer size (MB): 16
Pageable transfers
Host to Device bandwidth (GB/s): 0.387717
Device to Host bandwidth (GB/s): 0.416807
Pinned transfers
Host to Device bandwidth (GB/s): 0.390276
Device to Host bandwidth (GB/s): 0.419327
./memtst
Device: NVIDIA GeForce GTX 1060 6GB
Transfer size (MB): 16
Pageable transfers
Host to Device bandwidth (GB/s): 0.387582
Device to Host bandwidth (GB/s): 0.417603
Pinned transfers
Host to Device bandwidth (GB/s): 0.389954
Device to Host bandwidth (GB/s): 0.419298