-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
39 lines (35 loc) · 1.05 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
FROM quay.io/pypa/manylinux2014_aarch64
RUN yum update \
&& yum install -y \
epel-release \
gcc-c++ \
hwloc-devel \
sudo \
&& yum clean all \
&& rm -rf /var/cache/yum
RUN yum install -y \
llvm-toolset-7.0-clang-devel \
llvm-toolset-7.0-llvm-devel \
ocl-icd-devel \
&& yum clean all \
&& rm -rf /var/cache/yum
ENV LD_LIBRARY_PATH "/opt/rh/llvm-toolset-7.0/root/usr/lib64:${LD_LIBRARY_PATH}"
ENV PATH "/opt/rh/llvm-toolset-7.0/root/usr/bin:${PATH}"
RUN git clone --depth 1 --branch v1.8 https://github.com/pocl/pocl.git \
&& cmake \
-B pocl/build \
-S pocl \
-DCMAKE_BUILD_TYPE=release \
-DCMAKE_C_COMPILER=/usr/bin/gcc \
-DCMAKE_CXX_COMPILER=/usr/bin/g++ \
-DCMAKE_C_FLAGS=-std=gnu99 \
-DPOCL_INSTALL_ICD_VENDORDIR=/etc/OpenCL/vendors \
-DPOCL_DEBUG_MESSAGES=OFF \
-DINSTALL_OPENCL_HEADERS=OFF \
-DENABLE_SPIR=OFF \
-DENABLE_POCLCC=OFF \
-DENABLE_TESTS=OFF \
-DENABLE_EXAMPLES=OFF \
-DLLC_HOST_CPU=generic \
&& cmake --build pocl/build -j4 \
&& sudo cmake --install pocl/build