Skip to content
This repository was archived by the owner on Sep 25, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/checks/changelog.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright (c) 2019, NVIDIA CORPORATION.
# Copyright (c) 2020, NVIDIA CORPORATION.
#############################
# cuSignal CHANGELOG Tester #
#############################
Expand Down
7 changes: 4 additions & 3 deletions ci/checks/style.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#!/bin/bash
# Copyright (c) 2019, NVIDIA CORPORATION.
# Copyright (c) 2020, NVIDIA CORPORATION.
#########################
# cuSignal Style Tester #
#########################

# Ignore errors and set path
set +e
PATH=/conda/bin:$PATH
PATH=/opt/conda/bin:$PATH

# Activate common conda env
source activate gdf
. /opt/conda/etc/profile.d/conda.sh
conda activate rapids

cd $WORKSPACE/python

Expand Down
35 changes: 21 additions & 14 deletions ci/cpu/build.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/bash
# Copyright (c) 2018, NVIDIA CORPORATION.
# Copyright (c) 2020, NVIDIA CORPORATION.
##########################################
# cuSignal CPU conda build script for CI #
##########################################
set -e

# Logger function for build status output
function logger() {
function gpuci_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 PATH=/opt/conda/bin:/usr/local/cuda/bin:$PATH
export PARALLEL_LEVEL=-4

# Set home to the job's workspace
export HOME=$WORKSPACE
Expand All @@ -29,17 +29,20 @@ fi
# SETUP - Check environment
################################################################################

logger "Get env..."
gpuci_logger "Get env"
env

logger "Activate conda env..."
source activate gdf
gpuci_logger "Activate conda env"
. /opt/conda/etc/profile.d/conda.sh
conda activate rapids

logger "Check versions..."
gpuci_logger "Check versions"
python --version
gcc --version
g++ --version
conda list
$CC --version
$CXX --version
conda info
conda config --show-sources
conda list --show-channel-urls

# FIX Added to deal with Anancoda SSL verification issues during conda builds
conda config --set ssl_verify False
Expand All @@ -48,12 +51,16 @@ conda config --set ssl_verify False
# BUILD - Conda package build
################################################################################

logger "Build conda pkg for cuSignal..."
conda build conda/recipes/cusignal --python=${PYTHON}
# Setup 'gpuci_conda_retry' for build retries (results in 2 total attempts)
export GPUCI_CONDA_RETRY_MAX=1
export GPUCI_CONDA_RETRY_SLEEP=30

gpuci_logger "Build conda pkg for cuSignal"
gpuci_conda_retry build conda/recipes/cusignal --python=${PYTHON}

################################################################################
# UPLOAD - Conda packages
################################################################################

logger "Upload conda pkgs for cuSignal..."
gpuci_logger "Upload conda pkgs for cuSignal"
source ci/cpu/upload-anaconda.sh
2 changes: 1 addition & 1 deletion ci/cpu/upload-anaconda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

CUDA_REL=${CUDA_VERSION%.*}

export UPLOADFILE=`conda build conda/recipes/cusignal --python=${PYTHON} --output`
export UPLOADFILE=`gpuci_conda_retry build conda/recipes/cusignal --python=${PYTHON} --output`


LABEL_OPTION="--label main"
Expand Down
21 changes: 12 additions & 9 deletions ci/docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,37 @@ if [ -z "$PROJECT_WORKSPACE" ]; then
fi

export DOCS_WORKSPACE=$WORKSPACE/docs
export PATH=/conda/bin:/usr/local/cuda/bin:$PATH
export PATH=/opt/conda/bin:/usr/local/cuda/bin:$PATH
export HOME=$WORKSPACE
export PROJECT_WORKSPACE=/rapids/cusignal
export LIBCUDF_KERNEL_CACHE_PATH="$HOME/.jitify-cache"
export NIGHTLY_VERSION=$(echo $BRANCH_VERSION | awk -F. '{print $2}')
export PROJECTS=(cusignal)

logger "Check environment..."
gpuci_logger "Check environment"
env

logger "Check GPU usage..."
gpuci_logger "Check GPU usage"
nvidia-smi

logger "Activate conda env..."
source activate rapids
gpuci_logger "Activate conda env"
. /opt/conda/etc/profile.d/conda.sh
conda activate rapids
# TODO: Move installs to docs-build-env meta package
conda install -c anaconda markdown beautifulsoup4 jq
gpuci_conda_retry install -c anaconda markdown beautifulsoup4 jq
pip install sphinx-markdown-tables


logger "Check versions..."
gpuci_logger "Check versions"
python --version
$CC --version
$CXX --version
conda list
conda info
conda config --show-sources
conda list --show-channel-urls

# Build Python docs
logger "Build Sphinx docs..."
gpuci_logger "Build Sphinx docs"
cd $PROJECT_WORKSPACE/docs
make html

Expand Down
37 changes: 20 additions & 17 deletions ci/gpu/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright (c) 2018-2019, NVIDIA CORPORATION.
# Copyright (c) 2018-2020, NVIDIA CORPORATION.
#############################################
# cuSignal GPU build and test script for CI #
#############################################
Expand All @@ -8,7 +8,7 @@ NUMARGS=$#
ARGS=$*

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

Expand All @@ -18,8 +18,8 @@ function hasArg {
}

# Set path and build parallel level
export PATH=/conda/bin:/usr/local/cuda/bin:$PATH
export PARALLEL_LEVEL=4
export PATH=/opt/conda/bin:/usr/local/cuda/bin:$PATH
export PARALLEL_LEVEL=-4
export CUDA_REL=${CUDA_VERSION%.*}

# Set home to the job's workspace
Expand All @@ -34,34 +34,37 @@ export MINOR_VERSION=`echo $GIT_DESCRIBE_TAG | grep -o -E '([0-9]+\.[0-9]+)'`
# SETUP - Check environment
################################################################################

logger "Check environment..."
gpuci_logger "Check environment"
env

logger "Check GPU usage..."
gpuci_logger "Check GPU usage"
nvidia-smi

logger "Activate conda env..."
source activate rapids
conda install -c rapidsai -c rapidsai-nightly -c nvidia -c conda-forge \
gpuci_logger "Activate conda env"
. /opt/conda/etc/profile.d/conda.sh
conda activate rapids
gpuci_conda_retry install -c rapidsai -c rapidsai-nightly -c nvidia -c conda-forge \
cudatoolkit=${CUDA_REL} \
"rapids-build-env=$MINOR_VERSION.*" \
"rapids-notebook-env=$MINOR_VERSION."

# https://docs.rapids.ai/maintainers/depmgmt/
# conda remove -f rapids-build-env rapids-notebook-env
# conda install "your-pkg=1.0.0"
# gpuci_conda_retry install "your-pkg=1.0.0"

logger "Check versions..."
gpuci_logger "Check versions"
python --version
$CC --version
$CXX --version
conda list
conda info
conda config --show-sources
conda list --show-channel-urls

################################################################################
# BUILD - Build cusignal
################################################################################

logger "Build cusignal..."
gpuci_logger "Build cusignal"
$WORKSPACE/build.sh clean cusignal

################################################################################
Expand All @@ -73,20 +76,20 @@ EXITCODE=0
trap "EXITCODE=1" ERR

if hasArg --skip-tests; then
logger "Skipping Tests..."
gpuci_logger "Skipping Tests"
exit 0
fi

logger "Check GPU usage..."
gpuci_logger "Check GPU usage"
nvidia-smi

logger "Python pytest for cusignal..."
gpuci_logger "Python pytest for cusignal"
cd $WORKSPACE/python

pytest --cache-clear --junitxml=${WORKSPACE}/junit-cusignal.xml -v -s -m "not cpu"

conda remove -y --force blas nomkl rapids-build-env rapids-notebook-env
conda install -y -c pytorch "pytorch>=1.4"
gpuci_conda_retry install -y -c pytorch "pytorch>=1.4"

${WORKSPACE}/ci/gpu/test-notebooks.sh 2>&1 | tee nbtest.log
python ${WORKSPACE}/ci/utils/nbtestlog2junitxml.py nbtest.log
Expand Down
4 changes: 3 additions & 1 deletion ci/gpu/test-notebooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ SKIPNBS="sdr_wfm_demod.ipynb sdr_integration.ipynb io_examples.ipynb estimation_

## Check env
env
conda list
conda info
conda config --show-sources
conda list --show-channel-urls

EXITCODE=0

Expand Down
3 changes: 2 additions & 1 deletion ci/local/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ For a full list of available gpuCI docker images, visit our [DockerHub](https://
Style Check:
```bash
$ bash ci/local/build.sh -r ~/rapids/cusignal -s
$ source activate rapids # Activate gpuCI conda environment
$ . /opt/conda/etc/profile.d/conda.sh
$ conda activate rapids # Activate gpuCI conda environment
$ cd rapids
$ flake8 python
```
Expand Down
2 changes: 1 addition & 1 deletion ci/release/update-version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright (c) 2019, NVIDIA CORPORATION.
# Copyright (c) 2020, NVIDIA CORPORATION.
########################
# cuML Version Updater #
########################
Expand Down