"Fossies" - the Fresh Open Source Software Archive

Member "pocl-1.8/tools/docker/Ubuntu/18_04.64bit" (12 Oct 2021, 1309 Bytes) of package /linux/misc/pocl-1.8.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "18_04.64bit": 1.5_vs_1.6.

    1 FROM amd64/ubuntu:18.04
    2 ARG GIT_COMMIT=master
    3 ARG GH_PR
    4 ARG GH_SLUG=pocl/pocl
    5 ARG LLVM_VERSION=6.0
    6 LABEL git-commit=$GIT_COMMIT vendor=pocl distro=Ubuntu version=1.0
    7 ENV TERM dumb
    8 RUN apt update
    9 RUN apt upgrade -y
   10 RUN apt install -y software-properties-common wget
   11 RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
   12 RUN add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-${LLVM_VERSION} main" && apt update
   13 RUN apt install -y build-essential ocl-icd-libopencl1 cmake git pkg-config libclang-${LLVM_VERSION}-dev clang-${LLVM_VERSION} llvm-${LLVM_VERSION} make ninja-build ocl-icd-libopencl1 ocl-icd-dev ocl-icd-opencl-dev libhwloc-dev zlib1g zlib1g-dev clinfo dialog apt-utils
   14 RUN if [ "$LLVM_VERSION" -gt "9" ]; then apt install -y libclang-cpp${LLVM_VERSION} libclang-cpp${LLVM_VERSION}-dev ; fi
   15 
   16 RUN cd /home ; git clone https://github.com/$GH_SLUG.git ; cd /home/pocl ; git checkout $GIT_COMMIT
   17 RUN cd /home/pocl ; test -z "$GH_PR" || (git fetch origin +refs/pull/$GH_PR/merge && git checkout -qf FETCH_HEAD) && :
   18 RUN cd /home/pocl ; mkdir b ; cd b; cmake -G Ninja -DWITH_LLVM_CONFIG=/usr/bin/llvm-config-${LLVM_VERSION} -DCMAKE_INSTALL_PREFIX=/usr ..
   19 RUN cd /home/pocl/b ; ninja install
   20 CMD cd /home/pocl/b ; clinfo ; ctest -j4 --output-on-failure -L internal