NVIDIA GDRCopy

This commit is contained in:
Caubet Serrabou Marc
2021-03-16 17:29:13 +01:00
parent 8cc49a0614
commit 9d9d2d4939
2 changed files with 36 additions and 0 deletions

13
Libraries/GDRCopy/build Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env modbuild
pbuild::set_download_url "https://github.com/NVIDIA/gdrcopy/archive/v${V_MAJOR}.${V_MINOR}.tar.gz"
pbuild::add_to_group 'Libraries'
pbuild::install_docfiles README.md CHANGELOG.md LICENSE
pbuild::compile_in_sourcetree
pbuild::install() {
PKG_CONFIG_PATH="${PREFIX}" make prefix="${PREFIX}" CUDA="${CUDA_HOME}" all install
}

View File

@@ -0,0 +1,23 @@
#%Module1.0
module-whatis "NVIDIA GDRCopy"
module-url "https://github.com/NVIDIA/gdrcopy"
module-license "$PREFIX/share/doc/GDRCopy/LICENSE"
module-maintainer "Marc Caubet Serrabou <marc.caubet@psi.ch>"
module-help "
GDR COPY is a fast copy library from NVIDIA, used to transfer files
between the host and the GPU. Communication libraries (MVAPICH2, UCX)
can take advantage of GDRCopy. if available on the systems.
While GPUDirect RDMA is meant for direct access to GPU memory from
third-party devices, it is possible to use these same APIs to create
perfectly valid CPU mappings of the GPU memory.
The advantage of a CPU driven copy is the very small overhead involved.
That might be useful when low latencies are required.
To use it, please check whether the GDR COPY module is loaded on the
involed machines.
# lsmod | grep gdrdrv
"