Skip to content

Commit

Permalink
updated shell scripts and improved cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
neoblizz committed Oct 29, 2019
1 parent e5e4ae6 commit 1816d51
Show file tree
Hide file tree
Showing 10 changed files with 659 additions and 24 deletions.
18 changes: 7 additions & 11 deletions CMakeLists.txt
Expand Up @@ -37,7 +37,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -fPIC")
option(CMAKE_VERBOSE_MAKEFILE OFF)

# begin /* Find and set CUDA arch */
set(gunrock_REQUIRED_CUDA_VERSION 7.5)
set(gunrock_REQUIRED_CUDA_VERSION 9.0)
FIND_PACKAGE(CUDA ${gunrock_REQUIRED_CUDA_VERSION} REQUIRED)
# /* enables relocatable device code linking */
SET(CUDA_SEPARABLE_COMPILATION ON)
Expand All @@ -52,10 +52,6 @@ endif()
include(${CMAKE_SOURCE_DIR}/cmake/FindBoostHeaders.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/FindBoost.cmake)

if(${CUDA_VERSION} EQUAL "8.0" AND ${Boost_VERSION} EQUAL "106400")
message(FATAL_ERROR "Boost 1.64 is not compatible with CUDA 8.0 due to a bug in CUDA, this is resolved in CUDA 9. Please either use Boost 1.58 or upgrade CUDA to 9.0.")
endif()

include(${CMAKE_SOURCE_DIR}/cmake/FindOpenMP.cmake)
if (METIS_LIBRARY)
include(${CMAKE_SOURCE_DIR}/cmake/FindMetis.cmake)
Expand Down Expand Up @@ -243,28 +239,28 @@ option(GUNROCK_GENCODE_SM30

option(GUNROCK_GENCODE_SM35
"ON to generate code for Compute Capability 3.5 devices (e.g. Tesla K40)"
OFF)
ON)

option(GUNROCK_GENCODE_SM37
"ON to generate code for Compute Capability 3.7 devices (e.g. Tesla K80)"
OFF)

option(GUNROCK_GENCODE_SM50
"ON to generate code for Compute Capability 5.0 devices (e.g. GeForce GTX 750 TI)"
OFF)
ON)

option(GUNROCK_GENCODE_SM52
"ON to generate code for Compute Capability 5.2 devices (e.g. GeForce Titan X)"
OFF)
ON)

#Pascal Architecture: CUDA 8
if (CUDA_VERSION VERSION_EQUAL "8.0" OR CUDA_VERSION VERSION_GREATER "8.0")
option(GUNROCK_GENCODE_SM60
"ON to generate code for Compute Capability 6.0 devices (e.g. Tesla P100)"
OFF)
ON)
option(GUNROCK_GENCODE_SM61
"ON to generate code for Compute Capability 6.1 devices (e.g. GeForce GTX 1080)"
OFF)
ON)
endif ()

#Volta Architecture: CUDA 9
Expand All @@ -281,7 +277,7 @@ endif ()
if (CUDA_VERSION VERSION_EQUAL "10.0" OR CUDA_VERSION VERSION_GREATER "10.0")
option(GUNROCK_GENCODE_SM75
"ON to generate code for Compute Capability 7.5 devices (e.g. GTX 1160 or RTX 2080)"
OFF)
ON)
endif ()

option(CUDA_VERBOSE_PTXAS
Expand Down
3 changes: 3 additions & 0 deletions examples/proj/run.sh
@@ -0,0 +1,3 @@
#!/bin/bash

./bin/test_proj* --graph-type market --graph-file ../../dataset/small/chesapeake.mtx
7 changes: 0 additions & 7 deletions examples/proj/test.sh

This file was deleted.

124 changes: 124 additions & 0 deletions scripts/v1.x.x/perf/bc.sh
@@ -0,0 +1,124 @@
# ------------------------------------------------------------------------
# Gunrock (v1.x.x): Performance Testing Script(s)
# ------------------------------------------------------------------------

#!/bin/bash

EXEDIR=${1:-"../../../build/bin"}
DATADIR=${2:-"/data/gunrock_dataset/large"}
DEVICE=${3:-"0"}
TAG=${4:-""}

APPLICATION="bc"
EXECUTION="$EXEDIR/$APPLICATION"

ORG_OPTIONS=""
ORG_OPTIONS="$ORG_OPTIONS --num-runs=10"
ORG_OPTIONS="$ORG_OPTIONS --quick"
ORG_OPTIONS="$ORG_OPTIONS --device=$DEVICE"
ORG_OPTIONS="$ORG_OPTIONS --src=random"
ORG_OPTIONS="$ORG_OPTIONS --64bit-SizeT=false,true"
ORG_OPTIONS="$ORG_OPTIONS --64bit-VertexT=false,true"
ORG_OPTIONS="$ORG_OPTIONS --advance-mode=LB_CULL,LB,TWC"
ORG_OPTIONS="$ORG_OPTIONS --tag=$TAG"

EVAL_DIR="BC"

NAME[0 ]="ak2010"

NAME[1 ]="delaunay_n10"
NAME[2 ]="delaunay_n11"
NAME[3 ]="delaunay_n12"
NAME[4 ]="delaunay_n13"
NAME[5 ]="delaunay_n14"
NAME[6 ]="delaunay_n15"
NAME[7 ]="delaunay_n16"
NAME[8 ]="delaunay_n17"
NAME[9 ]="delaunay_n18"
NAME[10]="delaunay_n19"
NAME[11]="delaunay_n20"
NAME[12]="delaunay_n21"
NAME[13]="delaunay_n22"
NAME[14]="delaunay_n23"
NAME[15]="delaunay_n24"

NAME[21]="kron_g500-logn16"
NAME[22]="kron_g500-logn17"
NAME[23]="kron_g500-logn18"
NAME[24]="kron_g500-logn19"
NAME[25]="kron_g500-logn20"
NAME[26]="kron_g500-logn21"

NAME[27]="rmat_n24_e16" && GRAPH[27]="rmat --graph-scale=24 --graph-edgefactor=16"
NAME[28]="rmat_n23_e32" && GRAPH[28]="rmat --graph-scale=23 --graph-edgefactor=32"
NAME[29]="rmat_n22_e64" && GRAPH[29]="rmat --graph-scale=22 --graph-edgefactor=64"

NAME[31]="coAuthorsDBLP"
NAME[32]="coAuthorsCiteseer"
NAME[33]="coPapersDBLP"
NAME[34]="coPapersCiteseer"
NAME[35]="citationCiteseer"
NAME[36]="preferentialAttachment"

NAME[41]="soc-LiveJournal1"
NAME[42]="soc-twitter-2010"
NAME[43]="soc-orkut"
NAME[44]="hollywood-2009"
NAME[45]="soc-sinaweibo"


NAME[51]="webbase-1M"
NAME[52]="arabic-2005"
NAME[53]="uk-2002"
NAME[54]="uk-2005"
NAME[55]="webbase-2001"
NAME[56]="indochina-2004"
NAME[57]="caidaRouterLevel"

NAME[61]="roadNet-CA"
NAME[62]="belgium_osm"
NAME[63]="netherlands_osm"
NAME[64]="italy_osm"
NAME[65]="luxembourg_osm"
NAME[66]="great-britain_osm"
NAME[67]="germany_osm"
NAME[68]="asia_osm"
NAME[69]="europe_osm"
NAME[70]="road_usa"
NAME[71]="road_central"

#NAME[41]="tweets"
#NAME[42]="bitcoin"

mkdir -p $EVAL_DIR

for i in {0..71}; do
if [ "${NAME[$i]}" = "" ]; then
continue
fi

SUFFIX=${NAME[$i]}
mkdir -p $EVAL_DIR/$SUFFIX

for undirected in "true" "false"; do
OPTIONS=$ORG_OPTIONS

if [ "${GRAPH[$i]}" = "" ]; then
GRAPH_="market $DATADIR/${NAME[$i]}/${NAME[$i]}.mtx"
else
GRAPH_="${GRAPH[$i]}"
fi

if [ "$undirected" = "true" ]; then
OPTIONS_="$OPTIONS --undirected=true"
MARKS="UDIR"
else
OPTIONS_="$OPTIONS"
MARKS="DIR"
fi

echo $EXECUTION $GRAPH_ $OPTIONS_ --jsondir=./$EVAL_DIR/$SUFFIX "> ./$EVAL_DIR/$SUFFIX/${NAME[$i]}.${MARKS}.txt"
$EXECUTION $GRAPH_ $OPTIONS_ --jsondir=./$EVAL_DIR/$SUFFIX > ./$EVAL_DIR/$SUFFIX/${NAME[$i]}.${MARKS}.txt
sleep 1
done
done
17 changes: 11 additions & 6 deletions scripts/v1.x.x/perf/bfs.sh
Expand Up @@ -9,22 +9,24 @@ DATADIR=${2:-"/data/gunrock_dataset/large"}
DEVICE=${3:-"0"}
TAG=${4:-""}

SUFFIX=${TAG}
APPLICATION="bfs"
EXECUTION="$EXEDIR/$APPLICATION"

ORG_OPTIONS=""
ORG_OPTIONS="$ORG_OPTIONS --num-runs=10"
ORG_OPTIONS="$ORG_OPTIONS --validation=each"
# ORG_OPTIONS="$ORG_OPTIONS --validation=each"
ORG_OPTIONS="$ORG_OPTIONS --quick"
ORG_OPTIONS="$ORG_OPTIONS --device=$DEVICE"
ORG_OPTIONS="$ORG_OPTIONS --jsondir=./eval/$SUFFIX"
ORG_OPTIONS="$ORG_OPTIONS --src=random"
ORG_OPTIONS="$ORG_OPTIONS --64bit-SizeT=false,true"
ORG_OPTIONS="$ORG_OPTIONS --64bit-VertexT=false,true"
ORG_OPTIONS="$ORG_OPTIONS --idempotence=false,true"
ORG_OPTIONS="$ORG_OPTIONS --mark-pred=false,true"
ORG_OPTIONS="$ORG_OPTIONS --direction-optimized=true,false"
ORG_OPTIONS="$ORG_OPTIONS --advance-mode=LB_CULL,LB,TWC"
ORG_OPTIONS="$ORG_OPTIONS --tag=$TAG"

EVAL_DIR="BFS"

NAME[ 0]="ak2010" && OPT_DIR[ 0]=""

Expand Down Expand Up @@ -104,13 +106,16 @@ NAME[71]="road_central" && OPT_UDIR[71]="--do-a=0.1 --do-b=0.00001 --q
#NAME[41]="tweets" && OPT_DIR[41]="--queue-factor=5.00" && I_SIZE_DIR[41]="2.00" && OPT_UDIR[41]="--queue-factor=5.00" && I_SIZE_UDIR[41]="2.00"
#NAME[42]="bitcoin" && OPT_DIR[42]="--queue-factor=5.00" && I_SIZE_DIR[42]="2.00" && OPT_UDIR[42]="--queue-factor=10.0" && I_SIZE_UDIR[42]="2.00"

mkdir -p eval/$SUFFIX
mkdir -p $EVAL_DIR

for i in {0..71}; do
if [ "${NAME[$i]}" = "" ]; then
continue
fi

SUFFIX=${NAME[$i]}
mkdir -p $EVAL_DIR/$SUFFIX

for undirected in "true" "false"; do
OPTIONS=$ORG_OPTIONS
MARKS=""
Expand All @@ -132,8 +137,8 @@ for i in {0..71}; do
MARKS="DIR"
fi

echo $EXECUTION $GRAPH_ $OPTIONS_ "> ./eval/$SUFFIX/${NAME[$i]}.${MARKS}.txt"
$EXECUTION $GRAPH_ $OPTIONS_ > ./eval/$SUFFIX/${NAME[$i]}.${MARKS}.txt
echo $EXECUTION $GRAPH_ $OPTIONS_ --jsondir=./$EVAL_DIR/$SUFFIX "> ./$EVAL_DIR/$SUFFIX/${NAME[$i]}.${MARKS}.txt"
$EXECUTION $GRAPH_ $OPTIONS_ --jsondir=./$EVAL_DIR/$SUFFIX > ./$EVAL_DIR/$SUFFIX/${NAME[$i]}.${MARKS}.txt
sleep 1
done
done
126 changes: 126 additions & 0 deletions scripts/v1.x.x/perf/pr.sh
@@ -0,0 +1,126 @@
# ------------------------------------------------------------------------
# Gunrock (v1.x.x): Performance Testing Script(s)
# ------------------------------------------------------------------------

#!/bin/bash

EXEDIR=${1:-"../../../build/bin"}
DATADIR=${2:-"/data/gunrock_dataset/large"}
DEVICE=${3:-"0"}
TAG=${4:-""}

APPLICATION="pr"
EXECUTION="$EXEDIR/$APPLICATION"

ORG_OPTIONS=""
ORG_OPTIONS="$ORG_OPTIONS --num-runs=10"
# ORG_OPTIONS="$ORG_OPTIONS --validation=each"
ORG_OPTIONS="$ORG_OPTIONS --quick"
ORG_OPTIONS="$ORG_OPTIONS --device=$DEVICE"
ORG_OPTIONS="$ORG_OPTIONS --src=random"
ORG_OPTIONS="$ORG_OPTIONS --64bit-SizeT=false,true"
ORG_OPTIONS="$ORG_OPTIONS --64bit-VertexT=false,true"
ORG_OPTIONS="$ORG_OPTIONS --pull=false,true"
ORG_OPTIONS="$ORG_OPTIONS --advance-mode=LB_CULL,LB,TWC"
ORG_OPTIONS="$ORG_OPTIONS --tag=$TAG"

EVAL_DIR="PR"

NAME[0 ]="ak2010"

NAME[1 ]="delaunay_n10"
NAME[2 ]="delaunay_n11"
NAME[3 ]="delaunay_n12"
NAME[4 ]="delaunay_n13"
NAME[5 ]="delaunay_n14"
NAME[6 ]="delaunay_n15"
NAME[7 ]="delaunay_n16"
NAME[8 ]="delaunay_n17"
NAME[9 ]="delaunay_n18"
NAME[10]="delaunay_n19"
NAME[11]="delaunay_n20"
NAME[12]="delaunay_n21"
NAME[13]="delaunay_n22"
NAME[14]="delaunay_n23"
NAME[15]="delaunay_n24"

NAME[21]="kron_g500-logn16"
NAME[22]="kron_g500-logn17"
NAME[23]="kron_g500-logn18"
NAME[24]="kron_g500-logn19"
NAME[25]="kron_g500-logn20"
NAME[26]="kron_g500-logn21"

NAME[27]="rmat_n24_e16" && GRAPH[27]="rmat --graph-scale=24 --graph-edgefactor=16"
NAME[28]="rmat_n23_e32" && GRAPH[28]="rmat --graph-scale=23 --graph-edgefactor=32"
NAME[29]="rmat_n22_e64" && GRAPH[29]="rmat --graph-scale=22 --graph-edgefactor=64"

NAME[31]="coAuthorsDBLP"
NAME[32]="coAuthorsCiteseer"
NAME[33]="coPapersDBLP"
NAME[34]="coPapersCiteseer"
NAME[35]="citationCiteseer"
NAME[36]="preferentialAttachment"

NAME[41]="soc-LiveJournal1"
NAME[42]="soc-twitter-2010"
NAME[43]="soc-orkut"
NAME[44]="hollywood-2009"
NAME[45]="soc-sinaweibo"


NAME[51]="webbase-1M"
NAME[52]="arabic-2005"
NAME[53]="uk-2002"
NAME[54]="uk-2005"
NAME[55]="webbase-2001"
NAME[56]="indochina-2004"
NAME[57]="caidaRouterLevel"

NAME[61]="roadNet-CA"
NAME[62]="belgium_osm"
NAME[63]="netherlands_osm"
NAME[64]="italy_osm"
NAME[65]="luxembourg_osm"
NAME[66]="great-britain_osm"
NAME[67]="germany_osm"
NAME[68]="asia_osm"
NAME[69]="europe_osm"
NAME[70]="road_usa"
NAME[71]="road_central"

#NAME[41]="tweets"
#NAME[42]="bitcoin"

mkdir -p $EVAL_DIR

for i in {0..71}; do
if [ "${NAME[$i]}" = "" ]; then
continue
fi

SUFFIX=${NAME[$i]}
mkdir -p $EVAL_DIR/$SUFFIX

for undirected in "true" "false"; do
OPTIONS=$ORG_OPTIONS

if [ "${GRAPH[$i]}" = "" ]; then
GRAPH_="market $DATADIR/${NAME[$i]}/${NAME[$i]}.mtx"
else
GRAPH_="${GRAPH[$i]}"
fi

if [ "$undirected" = "true" ]; then
OPTIONS_="$OPTIONS --undirected=true"
MARKS="UDIR"
else
OPTIONS_="$OPTIONS"
MARKS="DIR"
fi

echo $EXECUTION $GRAPH_ $OPTIONS_ --jsondir=./$EVAL_DIR/$SUFFIX "> ./$EVAL_DIR/$SUFFIX/${NAME[$i]}.${MARKS}.txt"
$EXECUTION $GRAPH_ $OPTIONS_ --jsondir=./$EVAL_DIR/$SUFFIX > ./$EVAL_DIR/$SUFFIX/${NAME[$i]}.${MARKS}.txt
sleep 1
done
done
15 changes: 15 additions & 0 deletions scripts/v1.x.x/perf/run.sh
@@ -0,0 +1,15 @@
# ------------------------------------------------------------------------
# Gunrock (v1.x.x): Performance Testing Script(s)
# ------------------------------------------------------------------------

#!/bin/bash

TIMESTAMP=`date '+%Y-%m-%d_%H:%M:%S'`
EXEDIR="../../../build/bin"
DATADIR="/data/gunrock_dataset/large"
DEVICE="2"
TAG="Gunrock-v1-0-0_TitanXp"

for algo in bc; do # sssp bc pr cc; do
./${algo}.sh "$EXEDIR" "$DATADIR" "$DEVICE" "$TAG"
done

0 comments on commit 1816d51

Please sign in to comment.