Skip to content

Commit

Permalink
Update to work with dask-rapids 10.06
Browse files Browse the repository at this point in the history
  • Loading branch information
cjac committed Dec 29, 2022
1 parent 262e6ae commit e1b0e21
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions rapids/rapids.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@ function get_metadata_attribute() {
/usr/share/google/get_metadata_value "attributes/${attribute_name}" || echo -n "${default_value}"
}

readonly DEFAULT_DASK_RAPIDS_VERSION="22.04"
readonly DEFAULT_DASK_RAPIDS_VERSION="22.06"
readonly RAPIDS_VERSION=$(get_metadata_attribute 'rapids-version' ${DEFAULT_DASK_RAPIDS_VERSION})

readonly SPARK_VERSION_ENV=$(spark-submit --version 2>&1 | sed -n 's/.*version[[:blank:]]\+\([0-9]\+\.[0-9]\).*/\1/p' | head -n1)
readonly DEFAULT_SPARK_RAPIDS_VERSION="22.10.0"

if [[ "${SPARK_VERSION_ENV}" == "3"* ]]; then
if [[ "${SPARK_VERSION_ENV%%.*}" == "3" ]]; then
readonly DEFAULT_CUDA_VERSION="11.5"
readonly DEFAULT_CUDF_VERSION="22.10.0"
readonly DEFAULT_XGBOOST_VERSION="1.6.2"
readonly DEFAULT_XGBOOST_GPU_SUB_VERSION="0.3.0"
# TODO: uncomment when Spark 3.1 jars will be released - RAPIDS work with Spark 3.1, this is just for Maven URL
# readonly SPARK_VERSION="${SPARK_VERSION_ENV}"
readonly SPARK_VERSION="3.0"
readonly SPARK_VERSION="${SPARK_VERSION_ENV}"
else
readonly DEFAULT_CUDA_VERSION="10.1"
readonly DEFAULT_CUDF_VERSION="0.9.2"
Expand Down Expand Up @@ -66,8 +64,8 @@ function execute_with_retries() {

function install_dask_rapids() {
# Install RAPIDS, cudatoolkit
mamba install -y --no-channel-priority -c 'conda-forge' -c 'nvidia' -c 'rapidsai' \
"cudatoolkit=${CUDA_VERSION}" "rapids=${RAPIDS_VERSION}"
mamba install -n 'dask-rapids' -y --no-channel-priority -c 'conda-forge' -c 'nvidia' -c 'rapidsai' \
"cudatoolkit=${CUDA_VERSION}" "pandas<1.5" "rapids=${RAPIDS_VERSION}" "python=3.9"
}

function install_spark_rapids() {
Expand Down

0 comments on commit e1b0e21

Please sign in to comment.