This is a Go interface for SPDK which is also a work in progress. Building this requires a local SPDK build, so start there first.
- Initial support will be for NVMe driver utilities.
This is a Go project, so a Go development tools are naturally required. We recommend the most current Go release available. As of July 2018, the project has been built and tested with Go 1.9.
Setup environment and build. This assumes SPDK shared lib it installed in /usr/local/lib/libspdk.so
.
In order to use some of the SPDK API, please also follow Hugepages and Device Binding.
export GOPATH=$HOME/go
export LD_LIBRARY_PATH=/usr/local/lib
export PATH=/usr/local/bin:$PATH
export CGO_CPPFLAGS="-I/usr/local/include"
export CGO_LDFLAGS=-"-L/usr/local/lib -lspdk"