build_dgl_asv.sh 282 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

set -e

. /opt/conda/etc/profile.d/conda.sh

# Default building only with cpu
DEVICE=${DGL_BENCH_DEVICE:-cpu}

# build
if [[ $DEVICE == "cpu" ]]; then
    CMAKE_VARS=""
else
    CMAKE_VARS="-DUSE_CUDA=ON"
fi
mkdir -p build
pushd build
cmake $CMAKE_VARS ..
make -j
popd