forked from kurapov-peter/dwarf_bench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (34 loc) · 1.47 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM intel/oneapi-basekit
ARG DEBIAN_FRONTEND=noninteractive
ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1
RUN apt-get update -y && apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
sudo \
wget \
--
ARG GIT_SSL_NO_VERIFY=1
ARG oclhelpers_version=0.1.3
RUN mkdir /oclhelpers \
&& cd /oclhelpers \
&& wget https://github.com/kurapov-peter/oclhelpers/releases/download/v${oclhelpers_version}/oclhelpers-v${oclhelpers_version}-Release.tar.gz \
&& tar -xzvf oclhelpers-v${oclhelpers_version}-Release.tar.gz
#Set oclheaders_Dir
ENV oclhelpers_DIR=/oclhelpers/lib/cmake/
RUN apt-get install -y ninja-build libboost-all-dev
# Todo: enable for cuda support
#ENV DPCPP_HOME="/dpcpp"
#RUN mkdir ${DPCPP_HOME} && cd ${DPCPP_HOME}
#ARG sycl_llvm_sha="f71a1d5c6088c82f2ec0aa1d8b88c19db227d802"
#RUN cd ${DPCPP_HOME} && git clone https://github.com/intel/llvm -b sycl
# RUN python3 ${DPCPP_HOME}/llvm/buildbot/configure.py
# RUN python3 ${DPCPP_HOME}/llvm/buildbot/compile.py
# ENV PATH="${DPCPP_HOME}/llvm/build/bin:${PATH}"
# ENV LD_LIBRARY_PATH="${DPCPP_HOME}/llvm/build/lib:${LD_LIBRARY_PATH}"
RUN apt-get install -y ocl-icd-* opencl-headers intel-opencl-icd
RUN mkdir /cmake && cd /cmake \
&& wget https://github.com/Kitware/CMake/releases/download/v3.21.0/cmake-3.21.0-linux-x86_64.tar.gz \
&& tar xf cmake-3.21.0-linux-x86_64.tar.gz \
&& rm cmake-3.21.0-linux-x86_64.tar.gz
ENV PATH="/cmake/cmake-3.21.0-linux-x86_64/bin:${PATH}"