Skip to content

Commit

Permalink
ensure PoCL finds newer OpenCL (#29)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* ensure PoCL finds newer OpenCL

* update LD_LIBRARY_PATH to ensure libgomp is found by gcc

Co-authored-by: Nikita Titov <[email protected]>
  • Loading branch information
jameslamb and StrikerRUS authored Nov 30, 2022
1 parent b944cfb commit 9121c28
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dockers/manylinux_2_28_x86_64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM quay.io/pypa/manylinux_2_28_x86_64

# ensure that libraries like libc++ built in this image can be found by the linker
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib:/usr/local/lib64"
ENV LD_LIBRARY_PATH="/usr/local/lib64:${LD_LIBRARY_PATH}:/usr/local/lib"

RUN yum update -y \
&& yum install -y \
Expand Down Expand Up @@ -72,6 +72,10 @@ RUN mkdir /usr/local/src/clang \

# Install PoCL
RUN git clone --depth 1 --branch v1.8 https://github.com/pocl/pocl.git \
&& yum update -y \
&& yum install -y \
ocl-icd-devel \
opencl-headers \
&& cmake \
-B pocl/build \
-S pocl \
Expand All @@ -91,7 +95,8 @@ RUN git clone --depth 1 --branch v1.8 https://github.com/pocl/pocl.git \
&& cmake --install pocl/build \
&& rm -f ./compile_test*.bc \
&& rm -f ./compile_test*.o \
&& rm -rf ./pocl
&& rm -rf ./pocl \
&& yum clean all

# Install Java
RUN yum install -y \
Expand Down

0 comments on commit 9121c28

Please sign in to comment.