Last active
November 18, 2019 03:39
-
-
Save Harold2017/255586eaa1b47bd37701d7a6e1e8b97e to your computer and use it in GitHub Desktop.
OpenAcc docker image with gcc 9, cuda 10, OpenCV on ubuntu 18.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nvidia/cuda:10.1-devel-ubuntu18.04 | |
MAINTAINER Harold | |
# GCC 9 | |
RUN apt-get update && apt-get install -y software-properties-common | |
RUN add-apt-repository ppa:ubuntu-toolchain-r/test && \ | |
apt update && \ | |
apt install -y gcc-9-offload-nvptx g++-9 && \ | |
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 | |
# OpenCV | |
RUN apt-get install -y libopencv-dev | |
#install v3.12.2 cmake | |
ADD https://cmake.org/files/v3.12/cmake-3.12.2-Linux-x86_64.sh /cmake-3.12.2-Linux-x86_64.sh | |
RUN mkdir /opt/cmake && \ | |
sh /cmake-3.12.2-Linux-x86_64.sh --prefix=/opt/cmake --skip-license && \ | |
ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake | |
WORKDIR /root/ACC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment