Files
compute-runtime/scripts/docker/Dockerfile-ubuntu-18.04-llvm-8
Jacek Danecki 0547f5b9d5 ci: update IGC builds on Semaphore CI
- add build on Ubuntu 18.04 with llvm 8
    - Neo is built with clang 8
    - IGC components are built using llvm/clang 8
    - gmmlib is downloaded from launchpad ppa
- update IGC to 1.0.10-2314
- limit number of make jobs to 1 to avoid problems with
  "virtual memory exhausted: Cannot allocate memory" and to workaround
   compilation issue:
Scanning dependencies of target elf_packager
Building CXX object IGC/ElfPackager/CMakeFiles/elf_packager.dir/main.cpp.o
In file included from /root/build-igc/igc/IGC/ElfPackager/main.cpp:53:0:
/root/build-igc/igc/IGC/ElfPackager/../GenISAIntrinsics/GenIntrinsics.h:44:10:
 fatal error: IntrinsicGenISA.gen: No such file or directory
 #include "IntrinsicGenISA.gen"
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

https://github.com/intel/compute-runtime/pull/190

Change-Id: I2fc6d297555c826d48eccdc8ba5f9d5e8fd46d7a
2019-07-22 13:25:10 +02:00

16 lines
877 B
Plaintext

FROM docker.io/ubuntu:18.04
MAINTAINER Jacek Danecki <jacek.danecki@intel.com>
COPY neo /root/neo
COPY scripts/build-igc-llvm8.sh /root
RUN apt-get -y update ; apt-get install -y --allow-unauthenticated gpg cmake git pkg-config ninja-build clang-8 wget llvm-8-dev libclang-8-dev bison python2.7 flex python procps dos2unix; \
echo "deb http://ppa.launchpad.net/ocl-dev/intel-opencl/ubuntu bionic main" >> /etc/apt/sources.list; \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C3086B78CC05B8B1; \
apt-get -y update ; apt-get install -y --allow-unauthenticated intel-gmmlib-dev
RUN /root/build-igc-llvm8.sh
RUN mkdir /root/build; cd /root/build ; cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=clang-8 -DCMAKE_CXX_COMPILER=clang++-8 \
-DDO_NOT_RUN_AUB_TESTS=1 -DDONT_CARE_OF_VIRTUALS=1 ../neo ; ninja -j `nproc`
CMD ["/bin/bash"]