n4o847 / gds-rs-example

Get GPUDirect Storage working in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gds-rs-example

This is a reference repository for getting NVIDIA GPUDirect Storage to work in Rust.

Structure

The folders related in GPUDirect Storage are:

  • cufile-sys
    • an FFI wrapper crate for cuFile API
  • gds-helloworld
    • a version of the GDS sample program written in Rust

The following folder is a port of Rust-CUDA:

  • cpu
    • a host-side crate to perform array addition
  • gpu
    • a device-side crate to perform array addition

Requirements

  • MLNX_OFED
  • CUDA
  • GPUDirect Storage
  • Rust
  • LLVM 7

Installation

git clone https://github.com/n4o847/gds-rs-example.git

Build

cargo build -p gds-helloworld

Run

TESTFILE=./foo.txt ./target/debug/gds-helloworld

Resources

I have written an article explaining this repository.

For others, see also:

About

Get GPUDirect Storage working in Rust


Languages

Language:Rust 99.8%Language:Shell 0.2%Language:C 0.0%