Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
e8bde29
ENH Change bash mode to output commands
mike-wendt Sep 25, 2020
235517c
FIX Remove dead py3.6 code
mike-wendt Sep 25, 2020
d13df3d
DOC Update header
mike-wendt Sep 25, 2020
1e1fc23
ENH Switch from in-script logger to gpuci_logger
mike-wendt Sep 25, 2020
5ad0f81
FIX Use rapids conda env instead
mike-wendt Sep 25, 2020
4761d92
ENH Increase PARALLEL_LEVEL
mike-wendt Sep 25, 2020
0b82bb7
DOC Fix example conda command
mike-wendt Sep 25, 2020
81d9df5
ENH Provide more detail about conda env
mike-wendt Sep 25, 2020
7729b1d
ENH Add missing logger messages
mike-wendt Sep 25, 2020
6881552
DOC Update section header
mike-wendt Sep 25, 2020
a459ae8
DOC Add comments on directory change
mike-wendt Sep 25, 2020
72fb367
DOC Update logger messages to drop '...'
mike-wendt Sep 25, 2020
a080c7c
ENH Switch bash mode to verbos and remove in-script logger
mike-wendt Sep 25, 2020
a7e565e
DOC Update header
mike-wendt Sep 25, 2020
7141f39
ENH Increase PARALLEL_LEVEL for new instance types
mike-wendt Sep 25, 2020
dbc25b7
FIX Use rapids conda env instead
mike-wendt Sep 25, 2020
c635d32
ENH Switch from in-script logger to gpuci_logger
mike-wendt Sep 25, 2020
bb73992
ENH Provide more detail about conda env
mike-wendt Sep 25, 2020
48f4745
DOC Update section header
mike-wendt Sep 25, 2020
6627e2b
ENH Switch to use env vars CC/CXX for version check
mike-wendt Sep 25, 2020
1265dbb
ENH Remove verbose output
mike-wendt Sep 25, 2020
c89492c
ENH Enable verbose output for pip and testing
mike-wendt Sep 25, 2020
8f3d516
FIX Default to 8 PARALLEL_LEVEL if not defined
mike-wendt Sep 25, 2020
1e7f139
DOC Add section header and update comments
mike-wendt Sep 25, 2020
8361b67
FIX Change old logger instances and add missing log msg
mike-wendt Sep 25, 2020
97742c6
ENH Move checks to start of file to reduce time
mike-wendt Sep 25, 2020
ee858b9
FIX Remove old code
mike-wendt Sep 25, 2020
5916dc4
DOC Add comments and logger messages
mike-wendt Sep 25, 2020
a516a01
ENH Consolidate LABEL_OPTIONs allow for gpuCI setting
mike-wendt Sep 25, 2020
eac73c4
ENH Standardize name for upload.sh
mike-wendt Sep 25, 2020
d96d9fc
ENH Move positioning to match ci/cpu/build.sh
mike-wendt Sep 25, 2020
49b9b3e
ENH Reorder positioning to match build order
mike-wendt Sep 25, 2020
185a802
ENH Add CUDA_REL used by conda builds
mike-wendt Sep 25, 2020
8c9f0f7
ENH Consolidate scripts to a single CPU script
mike-wendt Sep 25, 2020
8fb1c80
ENH Update use from logger to gpuci_logger
mike-wendt Sep 25, 2020
dd7eede
REV Change directory then lookup git info
mike-wendt Sep 25, 2020
06b7806
TST Manually set MINOR_VERSION for testing
mike-wendt Sep 25, 2020
0aefd32
DOC Fix spelling mistake
mike-wendt Sep 28, 2020
65cad4b
DOC Add PR to CHANGELOG
mike-wendt Sep 28, 2020
2671cff
REV Remove testing override
mike-wendt Sep 29, 2020
f6722f5
FIX Set default PARALLEL_LEVEL to 4, allow override
mike-wendt Oct 1, 2020
c4aaca7
ENH Use updated method for conda activate
mike-wendt Oct 1, 2020
99bb6a5
ENH Use gpuci_conda_retry for conda installs
mike-wendt Oct 1, 2020
c22033b
ENH Remove git clean from conda build.sh
mike-wendt Oct 1, 2020
02f92bd
FIX Add source script to enable `conda activate`
mike-wendt Oct 8, 2020
dcd3fcd
Merge branch 'branch-0.16' into enh-gpuci-updates
mike-wendt Oct 8, 2020
d1deddd
ENH Reorder install deps and add logger msg
mike-wendt Oct 8, 2020
a2915dd
FIX Correct conda list to conda info
mike-wendt Oct 8, 2020
3e8e4f1
ENH Add conda info prior to install deps step
mike-wendt Oct 8, 2020
2cb5d48
Merge branch 'branch-0.16' into enh-gpuci-updates
mike-wendt Oct 12, 2020
5bc45e0
ENH Force install over any cached pkgs
mike-wendt Oct 15, 2020
d75608b
ENH Retry anaconda uploads on error
mike-wendt Oct 15, 2020
8249a4d
REV Remove force install
mike-wendt Oct 15, 2020
d46cade
ENH Retry conda builds once after failure
mike-wendt Oct 15, 2020
e5f5ffc
ENH Retry uploads three total times
mike-wendt Oct 15, 2020
2166107
FIX Correct `conda list` to `conda info`
mike-wendt Oct 16, 2020
442578d
ENH Add more detailed conda info for debugging
mike-wendt Oct 16, 2020
f43da99
FIX Use gpuci_conda_retry instead to fix build errors
mike-wendt Oct 16, 2020
fd56ff1
ENH Retry 3 times on uploads instead of 2
mike-wendt Oct 16, 2020
864ffa6
DOC Correct spelling
mike-wendt Oct 16, 2020
a1c064c
ENH Remove duplicate installs
mike-wendt Oct 16, 2020
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
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@
- PR #6273 Update JNI to use ORC options builder
- PR #6293 Replace shuffle warp reduce with cub calls
- PR #6287 Make java aggregate API follow C++ API
- PR #6303 Use cudf test dtypes so timedelta tests are deterministic
- PR #6329 Update and clean-up gpuCI scripts
- PR #6299 Add lead and lag to java
- PR #6303 Use cudf test dtypes so timedelta tests are determinstic
- PR #6327 Add dictionary specialization to `cudf::replace_nulls`
- PR #6306 Remove cpw macros from page encode kernels
- PR #6375 Parallelize Cython compilation in addition to Cythonization
Expand Down Expand Up @@ -168,7 +169,7 @@
- PR #6294 Fix read parquet key error when reading empty pandas DataFrame with cudf
- PR #6285 Removed unsafe `reinterpret_cast` and implicit pointer-to-bool casts
- PR #6281 Fix unreachable code warning in datetime.cuh
- PR #6286 Fix `read_csv` `int32` overflow
- PR #6286 Fix `read_csv` `int32` overflow
- PR #6466 Fix ORC reader issue with decimal type
- PR #6310 Replace a misspelled reference to `master` branch with `main` branch in a comment in changelog.sh
- PR #6289 Revert #6206
Expand Down
9 changes: 6 additions & 3 deletions ci/benchmark/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ logger "Check GPU usage..."
nvidia-smi

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

# Enter dependencies to be shown in ASV tooltips.
CUDF_DEPS=(librmm)
Expand All @@ -85,7 +86,9 @@ logger "Check versions..."
python --version
$CC --version
$CXX --version
conda list
conda info
conda config --show-sources
conda list --show-channel-urls

################################################################################
# BUILD - Build libcudf, cuDF and dask_cudf from source
Expand Down Expand Up @@ -164,7 +167,7 @@ set -e
rm ${WORKSPACE}/tmp/benchmark/benchmarks.txt
cd ${WORKSPACE}
mv ${GBENCH_BENCHMARKS_DIR}/*.json ${WORKSPACE}/tmp/benchmark/
python GBenchToASV.py -d ${WORKSPACE}/tmp/benchmark/ -t ${S3_ASV_DIR} -n libcudf -b branch-${MINOR_VERSION} -r "${REQS}"
python GBenchToASV.py -d ${WORKSPACE}/tmp/benchmark/ -t ${S3_ASV_DIR} -n libcudf -b branch-${MINOR_VERSION} -r "${REQS}"

###
# Run Python Benchmarks
Expand Down
74 changes: 41 additions & 33 deletions ci/cpu/build.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
#!/bin/bash
# Copyright (c) 2018, NVIDIA CORPORATION.
######################################
# cuDF CPU conda build script for CI #
######################################
# Copyright (c) 2018-2020, NVIDIA CORPORATION.
##############################################
# cuDF CPU conda build script for CI #
##############################################
set -e

# 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 PATH=/opt/conda/bin:/usr/local/cuda/bin:$PATH
export PARALLEL_LEVEL=${PARALLEL_LEVEL:-4}

# Set home to the job's workspace
export HOME=$WORKSPACE

# Determine CUDA release version
export CUDA_REL=${CUDA_VERSION%.*}

# Setup 'gpuci_conda_retry' for build retries (results in 2 total attempts)
export GPUCI_CONDA_RETRY_MAX=1
export GPUCI_CONDA_RETRY_SLEEP=30

# Switch to project root; also root of repo checkout
cd $WORKSPACE

Expand All @@ -29,45 +31,51 @@ fi
# SETUP - Check environment
################################################################################

logger "Get env..."
gpuci_logger "Check environment variables"
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 compiler versions"
python --version
gcc --version
g++ --version
conda list
$CC --version
$CXX --version

gpuci_logger "Check conda environment"
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

################################################################################
# BUILD - Conda package builds (conda deps: libcudf <- libcudf_cffi <- cudf)
# BUILD - Conda package builds
################################################################################

logger "Build conda pkg for libcudf..."
source ci/cpu/libcudf/build_libcudf.sh
gpuci_logger "Build conda pkg for libcudf"
gpuci_conda_retry build conda/recipes/libcudf

gpuci_logger "Build conda pkg for libcudf_kafka"
gpuci_conda_retry build conda/recipes/libcudf_kafka

logger "Build conda pkg for libcudf_kafka..."
source ci/cpu/libcudf_kafka/build_libcudf_kafka.sh
gpuci_logger "Build conda pkg for cudf"
gpuci_conda_retry build conda/recipes/cudf --python=$PYTHON

logger "Build conda pkg for cudf..."
source ci/cpu/cudf/build_cudf.sh
gpuci_logger "Build conda pkg for dask-cudf"
gpuci_conda_retry build conda/recipes/dask-cudf --python=$PYTHON

logger "Build conda pkg for dask-cudf..."
source ci/cpu/dask-cudf/build_dask_cudf.sh
gpuci_logger "Build conda pkg for cudf_kafka"
gpuci_conda_retry build conda/recipes/cudf_kafka --python=$PYTHON

logger "Build conda pkg for cudf_kafka..."
source ci/cpu/cudf_kafka/build_cudf_kafka.sh
gpuci_logger "Build conda pkg for custreamz"
gpuci_conda_retry build conda/recipes/custreamz --python=$PYTHON

logger "Build conda pkg for custreamz..."
source ci/cpu/custreamz/build_custreamz.sh
################################################################################
# UPLOAD - Conda packages
################################################################################

logger "Upload conda pkgs..."
source ci/cpu/upload_anaconda.sh
gpuci_logger "Upload conda pkgs"
source ci/cpu/upload.sh
4 changes: 0 additions & 4 deletions ci/cpu/cudf/build_cudf.sh

This file was deleted.

10 changes: 0 additions & 10 deletions ci/cpu/cudf_kafka/build_cudf_kafka.sh

This file was deleted.

15 changes: 0 additions & 15 deletions ci/cpu/custreamz/build_custreamz.sh

This file was deleted.

10 changes: 0 additions & 10 deletions ci/cpu/dask-cudf/build_dask_cudf.sh

This file was deleted.

6 changes: 0 additions & 6 deletions ci/cpu/libcudf/build_libcudf.sh

This file was deleted.

6 changes: 0 additions & 6 deletions ci/cpu/libcudf_kafka/build_libcudf_kafka.sh

This file was deleted.

79 changes: 79 additions & 0 deletions ci/cpu/upload.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
#!/bin/bash
#
# Adopted from https://github.com/tmcdonell/travis-scripts/blob/dfaac280ac2082cd6bcaba3217428347899f2975/update-accelerate-buildbot.sh

set -e

# Setup 'gpuci_retry' for upload retries (results in 4 total attempts)
export GPUCI_RETRY_MAX=3
export GPUCI_RETRY_SLEEP=30

# Set default label options if they are not defined elsewhere
export LABEL_OPTION=${LABEL_OPTION:-"--label main"}

# Skip uploads unless BUILD_MODE == "branch"
if [ ${BUILD_MODE} != "branch" ]; then
echo "Skipping upload"
return 0
fi

# Skip uploads if there is no upload key
if [ -z "$MY_UPLOAD_KEY" ]; then
echo "No upload key"
return 0
fi

################################################################################
# SETUP - Get conda file output locations
################################################################################

gpuci_logger "Get conda file output locations"
export LIBCUDF_FILE=`conda build conda/recipes/libcudf --output`
export LIBCUDF_KAFKA_FILE=`conda build conda/recipes/libcudf_kafka --output`
export CUDF_FILE=`conda build conda/recipes/cudf --python=$PYTHON --output`
export DASK_CUDF_FILE=`conda build conda/recipes/dask-cudf --python=$PYTHON --output`
export CUDF_KAFKA_FILE=`conda build conda/recipes/cudf_kafka --python=$PYTHON --output`
export CUSTREAMZ_FILE=`conda build conda/recipes/custreamz --python=$PYTHON --output`

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

gpuci_logger "Starting conda uploads"
if [ "$UPLOAD_LIBCUDF" == "1" ]; then
test -e ${LIBCUDF_FILE}
echo "Upload libcudf"
echo ${LIBCUDF_FILE}
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${LIBCUDF_FILE}
fi

if [ "$UPLOAD_CUDF" == "1" ]; then
test -e ${CUDF_FILE}
echo "Upload cudf"
echo ${CUDF_FILE}
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${CUDF_FILE}

test -e ${DASK_CUDF_FILE}
echo "Upload dask-cudf"
echo ${DASK_CUDF_FILE}
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${DASK_CUDF_FILE}

test -e ${CUSTREAMZ_FILE}
echo "Upload custreamz"
echo ${CUSTREAMZ_FILE}
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${CUSTREAMZ_FILE}
fi

if [ "$UPLOAD_LIBCUDF_KAFKA" == "1" ]; then
test -e ${LIBCUDF_KAFKA_FILE}
echo "Upload libcudf_kafka"
echo ${LIBCUDF_KAFKA_FILE}
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${LIBCUDF_KAFKA_FILE}
fi

if [ "$UPLOAD_CUDF_KAFKA" == "1" ]; then
test -e ${CUDF_KAFKA_FILE}
echo "Upload cudf_kafka"
echo ${CUDF_KAFKA_FILE}
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${CUDF_KAFKA_FILE}
fi
74 changes: 0 additions & 74 deletions ci/cpu/upload_anaconda.sh

This file was deleted.

Loading