Giter Club home page Giter Club logo

Comments (2)

drossetti avatar drossetti commented on August 17, 2024

That text is quite old and is incorrect for coherent platforms, e.g. GH200 and POWER9+V100, where the GPU memory can be cached by the CPU. In that case, entire cache lines are exchanged and good performance is obtained.

Why GPU BAR cannot be prefetched?

On non-coherent platforms, the CPU can create MMIO mappings of the GPU BAR.
Prefetching per se refers to cache coherent platforms, and it does not apply to MMIO (UC) mappings.
Current CPU ISAs do not support reading or writing larger than 8B/16B granules when targeting MMIO mappings, even when using vector extensions.
On x86 platforms, Write-Combining (WC) mappings can improve write bandwidth, but do not help read performance.

Note that here I refer to CPU loads and stores, i.e. reads and writes generated by CPU instructions, which are interesting because of the their low latency properties.
Besides that, there can be DMA engines, similar to the GPU Copy Engines, which provide full performance in exchange of higher latencies.

In the README, no prefetched =>no PCIe burst reads transactions. Why the former leads to the latter?

That is an experimental statement.
When using cached mappings, loads and stores would trigger read/write transactions of entire cache lines, leading to large size PCIe transactions.
As of today, PCIe does not support a cache coherency protocol, so on non-coherent platforms, the CPU mappings of the GPU BAR cannot be cached (C). The best you can do there is to use MMIO or WC mappings.

I hope that helps.

from gdrcopy.

yuxuanliuuu avatar yuxuanliuuu commented on August 17, 2024

You have already solved my problem. Thanks a lot for your response!!!

from gdrcopy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.