Install/build Gunrock on CentOS

This post is in continuation of with my earlier blog post. The recent version (v1.2) of gunrock requires std=c++14 for building. We have modified some of the steps there. Let’s build SSSP. Do check out the 5 minute-video at the end.

Step 1: Setting up env

scl enable devtoolset-8 bash

CUDA_BIN_PATH=/usr/local/cuda-10.2 # edit accordingly.


If you do not have devtoolset-8: Root user to run yum install devtoolset-8

Step 2: cmake 3.10+ required

~/install/cmake-3.16.1-Linux-x86_64/bin/cmake --version

cmake version 3.16.1

If you do not have: Download cmake binary of cmake-x.xx.x-linux-x86_64.tar.gz from official site and extract locally.

Step 3: Downloading

git clone --recursive

cd gunrock

Step 4: Building

mkdir build

cd build

~/install/cmake-3.16.1-Linux-x86_64/bin/cmake -DGUNROCK_BUILD_APPLICATIONS=OFF -DGUNROCK_APP_SSSP=ON ..

make -j8 #edit to suit your config

Step 5: Running

./bin/sssp market ../dataset/small/test_mst.mtx

Short 5 Min video

★ 2 min read · Rajesh Pandian M · cuda , gunrock , install