diff --git a/Libraries/GDRCopy/build b/Libraries/GDRCopy/build new file mode 100755 index 0000000..c8647cc --- /dev/null +++ b/Libraries/GDRCopy/build @@ -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 +} + diff --git a/Libraries/GDRCopy/modulefile b/Libraries/GDRCopy/modulefile new file mode 100644 index 0000000..2863383 --- /dev/null +++ b/Libraries/GDRCopy/modulefile @@ -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 " + +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 +"