Skip to content

Commit

Permalink
Default build image use cuda 11.8 (NVIDIA#847)
Browse files Browse the repository at this point in the history
* Default build image use cuda 11.8

Signed-off-by: Peixin Li <pxli@nyu.edu>

* fix invalid comments

Signed-off-by: Peixin Li <pxli@nyu.edu>
  • Loading branch information
pxLi authored Dec 28, 2022
1 parent bb633ae commit bd0c644
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/run-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set -e
SCRIPTDIR=$(cd $(dirname $0); pwd)
REPODIR=$SCRIPTDIR/..

CUDA_VERSION=${CUDA_VERSION:-11.5.0}
CUDA_VERSION=${CUDA_VERSION:-11.8.0}
DOCKER_CMD=${DOCKER_CMD:-docker}
DOCKER_BUILD_EXTRA_ARGS=${DOCKER_BUILD_EXTRA_ARGS:-""}
DOCKER_RUN_EXTRA_ARGS=${DOCKER_RUN_EXTRA_ARGS:-""}
Expand Down
9 changes: 6 additions & 3 deletions ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
###
# Build the image for spark-rapids-jni development environment.
#
# Arguments: CUDA_VERSION=11.5.0
# Arguments: CUDA_VERSION=11.8.0
#
###
ARG CUDA_VERSION=11.5.0
FROM gpuci/cuda:$CUDA_VERSION-devel-centos7
ARG CUDA_VERSION=11.8.0
FROM nvidia/cuda:$CUDA_VERSION-devel-centos7
ARG DEVTOOLSET_VERSION=9
### Install basic requirements
RUN yum install -y centos-release-scl
Expand Down Expand Up @@ -68,3 +68,6 @@ RUN cd /usr/local && wget --quiet https://boostorg.jfrog.io/artifactory/main/rel
./b2 install --prefix=/usr/local --with-filesystem --with-system && \
cd /usr/local && \
rm -rf boost_1_79_0

# disable cuda container constraints to allow running w/ elder drivers on data-center GPUs
ENV NVIDIA_DISABLE_REQUIRE="true"
4 changes: 2 additions & 2 deletions ci/Jenkinsfile.premerge
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import ipp.blossom.*

def githubHelper // blossom github helper
def TEMP_IMAGE_BUILD = true
def IMAGE_PREMERGE = "${common.ARTIFACTORY_NAME}/sw-spark-docker/plugin-jni:centos7-cuda11.5.0-blossom"
def IMAGE_PREMERGE = "${common.ARTIFACTORY_NAME}/sw-spark-docker/plugin-jni:centos7-cuda11.8.0-blossom"
def cpuImage = pod.getCPUYAML(IMAGE_PREMERGE)
def PREMERGE_DOCKERFILE = 'ci/Dockerfile'
def PREMERGE_TAG
Expand Down Expand Up @@ -149,7 +149,7 @@ pipeline {
}

if (TEMP_IMAGE_BUILD) {
PREMERGE_TAG = "centos7-cuda11.5.0-blossom-dev-${BUILD_TAG}"
PREMERGE_TAG = "centos7-cuda11.8.0-blossom-dev-${BUILD_TAG}"
IMAGE_PREMERGE = "${ARTIFACTORY_NAME}/sw-spark-docker-local/plugin-jni:${PREMERGE_TAG}"
docker.build(IMAGE_PREMERGE, "-f ${PREMERGE_DOCKERFILE} -t $IMAGE_PREMERGE .")
uploadDocker(IMAGE_PREMERGE)
Expand Down

0 comments on commit bd0c644

Please sign in to comment.