Skip to content

Commit

Permalink
Disable CUDA for OSD when DTS-9/CUDA-10
Browse files Browse the repository at this point in the history
Signed-off-by: Aloys Baillet <aloys.baillet+github@gmail.com>
  • Loading branch information
aloysbaillet committed Jun 3, 2020
1 parent c79bc9e commit 67240b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ FROM nvidia/cudagl:${CUDA_VERSION}-devel-centos7 as ci-centos7-gl-packages

ARG CI_COMMON_VERSION
ARG DTS_VERSION
ARG CUDA_VERSION

COPY ../scripts/common/install_yumpackages.sh \
../scripts/${CI_COMMON_VERSION}/versions_common.sh \
Expand All @@ -39,7 +40,8 @@ ENV CI_COMMON_VERSION=${CI_COMMON_VERSION} \
CCACHE_DIR=/tmp/ccache \
ASWF_INSTALL_PREFIX=/usr/local \
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64:/opt/rh/devtoolset-${DTS_VERSION}/root/usr/lib64:/opt/rh/devtoolset-${DTS_VERSION}/root/usr/lib:${LD_LIBRARY_PATH} \
PATH=/opt/aswfbuilder/bin:/usr/local/bin:/opt/rh/devtoolset-${DTS_VERSION}/root/usr/bin:/opt/app-root/src/bin:/opt/rh/devtoolset-${DTS_VERSION}/root/usr/bin/:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
PATH=/opt/aswfbuilder/bin:/usr/local/bin:/opt/rh/devtoolset-${DTS_VERSION}/root/usr/bin:/opt/app-root/src/bin:/opt/rh/devtoolset-${DTS_VERSION}/root/usr/bin/:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin \
CUDA_VERSION=${CUDA_VERSION}

RUN --mount=type=cache,sharing=private,target=/tmp/downloads \
source /tmp/versions_common.sh && \
Expand Down
10 changes: 9 additions & 1 deletion scripts/vfx/build_opensubdiv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ index 4f3cd9d40..e01dc0915 100644
#-------------------------------------------------------------------------------
EOF

if [[ $DTS_VERSION == 9 && $CUDA_VERSION == 10* ]]; then
# CUDA-10 is not compatible with GCC-9...
EXTRA_ARGS=-DNO_CUDA=1
else
EXTRA_ARGS=""
fi

mkdir build
cd build

Expand All @@ -48,7 +55,8 @@ cmake .. \
-DNO_REGRESSION=1 \
-DNO_DOC=1 \
-DNO_TUTORIALS=ON \
-DOSD_CUDA_NVCC_FLAGS="--gpu-architecture compute_30"
-DOSD_CUDA_NVCC_FLAGS="--gpu-architecture compute_30" \
$EXTRA_ARGS
make # random cuda build failure when more than one job in //...
make install

Expand Down

0 comments on commit 67240b9

Please sign in to comment.