Why the memcpy from a mapped GPU memory is so slow on Intel Bay Trail?
Hello!
I'm developing some openCL application with Beignet in Ubuntu 14.04 x64 Desktop upon Bay Trail E3825.
And I found that reading data from GPU memory through whatever drm_intel gem_bo_map or drm_intel_gem_bo_get subdata cost about 0.002 ~ 0.003 second to fetch a 7MiB array, which is not quite satisfing. Could anybody help solve this problem?
Thanks.
Wenhua Shi
Tongji University
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · 三月!
Hello! I'm developing some openCL application with Beignet in Ubuntu 14.04 x64 Desktop upon Bay Trail E3825. And I found that reading data from GPU memory through whatever
drm_intelgem_bo_mapordrm_intel_gem_bo_getsubdata cost about 0.002 ~ 0.003 second to fetch a 7MiB array, which is not quite satisfing. Could anybody help solve this problem?
GPUs (except in the case of SNB/IVB/HSW where the CPU is coherent with the GPU other than the GPU's L1/2 caches) are extremely slow to read From because write-combining memory is effectively uncached performance for reads. You can get better streaming read performance using the movntdqa instruction, and you can see an example of code using it in streaming-load-memcpy.c in mesa (though it looks like that code is missing an mfence, which iirc is required).
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx