Skip to content

Commit

Permalink
Merge pull request #80 from dillon-cullinan/docsbuild
Browse files Browse the repository at this point in the history
[REVIEW] Add docs build script to RMM [skip ci]
  • Loading branch information
raydouglass committed May 7, 2019
2 parents 9d2813f + 63bc84d commit 6f7264a
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@
- PR #67 Add random_allocate microbenchmark in tests/performance
- PR #70 Create conda environments and conda recipes
- PR #77 Add local build script to mimic gpuCI
- PR #80 Add build script for docs

## Improvements

Expand Down
74 changes: 74 additions & 0 deletions ci/docs/build.sh
@@ -0,0 +1,74 @@
#!/bin/bash
# Copyright (c) 2018, NVIDIA CORPORATION.
######################################
# rmm GPU build & testscript for CI #
######################################
set -ex

# Logger function for build status output
function logger() {
echo -e "\n>>>> $@\n"
}

# Set path and build parallel level
export PATH=/conda/bin:/usr/local/cuda/bin:$PATH
export PARALLEL_LEVEL=4
export HOME=$WORKSPACE
export DOCS_DIR=/data/docs/html

while getopts "d" option; do
case ${option} in
d)
DOCS_DIR=${OPTARG}
;;
esac
done

################################################################################
# SETUP - Check environment
################################################################################

logger "Get env..."
env

logger "Activate conda env..."
source activate gdf
conda install -c conda-forge doxygen

logger "Check versions..."
python --version
gcc --version
g++ --version
conda list

################################################################################
# BUILD - Build librmm
################################################################################

#logger "Build librmm..."
CMAKE_COMMON_VARIABLES=" -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX11_ABI=$BUILD_ABI"

# Use CMake-based build procedure
mkdir -p $WORKSPACE/build
cd build
# configure
cmake $CMAKE_COMMON_VARIABLES ..
# build
make -j${PARALLEL_LEVEL} VERBOSE=1 install

################################################################################
# BUILD - Build librmm_cffi
################################################################################

logger "Build librmm_cffi..."
make rmm_python_cffi
make rmm_install_python

################################################################################
# Docs - Build RMM docs
################################################################################
make rmm_doc

cd $WORKSPACE
rm -rf ${DOCS_DIR}/*
mv doxygen/html/* $DOCS_DIR

0 comments on commit 6f7264a

Please sign in to comment.