From 9359dc36f18703a6067788de1828b82c73d6df9a Mon Sep 17 00:00:00 2001 From: Kellen Sunderland Date: Sat, 24 Nov 2018 10:21:57 -0800 Subject: [PATCH] [MXNET-703] Install CUDA 10 compatible cmake This works around a CUDA 10 cmake issue documented here: https://github.com/clab/dynet/issues/1457 This fix is temporary; once an updated cmake package is published to Ubuntu's package repo it may be reverted. --- ci/docker/install/ubuntu_core.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ci/docker/install/ubuntu_core.sh b/ci/docker/install/ubuntu_core.sh index 64f8af3e0444..35430f2d3aa5 100755 --- a/ci/docker/install/ubuntu_core.sh +++ b/ci/docker/install/ubuntu_core.sh @@ -26,7 +26,6 @@ apt-get install -y \ apt-transport-https \ build-essential \ ca-certificates \ - cmake \ curl \ git \ libatlas-base-dev \ @@ -41,3 +40,12 @@ apt-get install -y \ sudo \ unzip \ wget + +# Note: we specify an exact cmake version to work around a cmake 3.10 CUDA 10 issue. +# Reference: https://github.com/clab/dynet/issues/1457 +mkdir /opt/cmake && cd /opt/cmake +wget -nv https://cmake.org/files/v3.12/cmake-3.12.4-Linux-x86_64.sh +sh cmake-3.12.4-Linux-x86_64.sh --prefix=/opt/cmake --skip-license +ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake +rm cmake-3.12.4-Linux-x86_64.sh +cmake --version