Giter Club home page Giter Club logo

Comments (3)

pakmarkthub avatar pakmarkthub commented on June 19, 2024 2

GDRCopy uses CPU to push/pull data from GPU. It has lower latency compared with using GPU's copy engine, which is used by cuMemcpy (with some exception). However, CPU is generally not as good as the copy engine for moving large data.

To clarify, GDRCopy is not a replacement of cuMemcpy. The most efficient way is to use GDRCopy for moving small data and cuMemcpy for large data. You will need to find the cross point of these two on each platform you want to run your applications so that you know what sizes you should use GDRCopy.

from gdrcopy.

pakmarkthub avatar pakmarkthub commented on June 19, 2024

Hi @nkflash,

GDRCopy is designed for small message sizes. Based on what you have shown, GDRCopy is faster than cuMemcpy in that regime. Can you elaborate on the issue?

Also, you may want to run the application with numactl -C <cpus> -l or numactl -N <nodes> -l. It will perform better if you pin it to the CPU core that is close to the GPU in the PCIe tree. The -l will make sure that the host buffer allocation is from that numa node or CPU core.

from gdrcopy.

nkflash avatar nkflash commented on June 19, 2024

Hi @nkflash,

GDRCopy is designed for small message sizes. Based on what you have shown, GDRCopy is faster than cuMemcpy in that regime. Can you elaborate on the issue?

Also, you may want to run the application with numactl -C <cpus> -l or numactl -N <nodes> -l. It will perform better if you pin it to the CPU core that is close to the GPU in the PCIe tree. The -l will make sure that the host buffer allocation is from that numa node or CPU core.

Thank you for your quick response.
Sure, I see the small size is better than large size. In this case I didn't bind special CPU. Is that(bind to special cpu) comparable to 'cuMemcpy' in large size?

BTW: Why gdrcopy only suitable for small message size?

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.