Skip to content

Commit a2d27d5

Browse files
committed
demo: update idxd-config to v4.1.4
Signed-off-by: Mikko Ylinen <[email protected]>
1 parent c5c1127 commit a2d27d5

File tree

5 files changed

+20
-410
lines changed

5 files changed

+20
-410
lines changed

demo/accel-config-demo/Dockerfile

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,57 +12,33 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM ubuntu:22.04 AS builder
15+
FROM debian:unstable-slim AS builder
1616

17-
RUN apt-get update && apt-get install -y --no-install-recommends \
18-
gcc g++ nasm make cmake patch autoconf automake libtool pkg-config git curl ca-certificates \
19-
libjson-c-dev uuid-dev zlib1g-dev libssl-dev
17+
ARG ACCEL_CONFIG_VERSION="4.1.4-1"
2018

21-
ARG ACCEL_CONFIG_VERSION="4.1"
22-
ARG ACCEL_CONFIG_DOWNLOAD_URL="https://github.com/intel/idxd-config/archive/accel-config-v$ACCEL_CONFIG_VERSION.tar.gz"
23-
ARG ACCEL_CONFIG_SHA256="26bed5f5fdef226ae90aebf296f1fa355c7a134aa321a468fbc5be894ff0b91b"
19+
RUN apt-get update && apt-get install -y --no-install-recommends libaccel-config-dev=${ACCEL_CONFIG_VERSION} \
20+
gcc g++ nasm make cmake autoconf automake libtool pkg-config git ca-certificates uuid-dev
2421

25-
RUN curl -fsSL "$ACCEL_CONFIG_DOWNLOAD_URL" -o accel-config.tar.gz && echo "$ACCEL_CONFIG_SHA256 accel-config.tar.gz" | sha256sum -c - && tar -xzf accel-config.tar.gz
26-
27-
COPY idxd-reset.patch /
28-
COPY test_runner_disable_shared_queues.patch /
29-
30-
RUN cd idxd-config-accel-config-v$ACCEL_CONFIG_VERSION && \
31-
patch -p1 < ../idxd-reset.patch && \
32-
patch -p1 < ../test_runner_disable_shared_queues.patch && \
33-
./git-version-gen && \
34-
autoreconf -i && \
35-
./configure -q --libdir=/usr/lib64 --enable-test=yes --disable-docs && \
36-
make install
37-
38-
RUN cd / && git clone --recurse-submodules --branch v1.1.0 --depth 1 https://github.com/intel/DML.git && \
22+
RUN cd / && git clone --recurse-submodules --branch v1.1.1 --depth 1 https://github.com/intel/DML.git && \
3923
mkdir DML/build && cd DML/build && \
4024
cmake .. && \
4125
make install && \
4226
mv -v /usr/local/bin/tests /usr/local/bin/dml_tests && \
4327
mv -v /usr/local/bin/tests_mt /usr/local/bin/dml_tests_mt
4428

45-
RUN cd / && git clone --recursive --depth 1 --branch v1.3.0 https://github.com/intel/qpl.git && \
29+
RUN cd / && git clone --recursive --depth 1 --branch v1.3.1 https://github.com/intel/qpl.git && \
4630
mkdir qpl/build && cd qpl/build && \
4731
cmake -DLOG_HW_INIT=ON .. && \
4832
make install
4933

50-
FROM ubuntu:22.04
34+
FROM debian:unstable-slim
5135

52-
RUN apt-get update && apt-get install -y --no-install-recommends libjson-c5 libssl3 && rm -rf /var/lib/apt/lists/\*
53-
54-
COPY --from=builder /usr/lib64/libaccel-config.so.1.0.0 "/lib/x86_64-linux-gnu/"
55-
RUN ldconfig
56-
57-
COPY --from=builder /usr/bin/accel-config /usr/bin/
58-
COPY --from=builder /usr/libexec/accel-config/test /test
59-
COPY --from=builder /idxd-reset.patch /usr/local/share/package-sources/
60-
COPY --from=builder /test_runner_disable_shared_queues.patch /usr/local/share/package-sources/
36+
ARG ACCEL_CONFIG_VERSION="4.1.4-1"
37+
RUN apt-get update && apt-get install -y --no-install-recommends accel-config-test=${ACCEL_CONFIG_VERSION} && rm -rf /var/lib/apt/lists/\*
6138

39+
RUN sed -i -e '442,450d' /usr/libexec/accel-config/test/iaa_user_test_runner.sh
6240
COPY --from=builder /usr/local /usr/local
6341
COPY --from=builder /qpl/build/examples /usr/local/bin/
6442

6543
COPY dml-test.sh /usr/local/bin/
6644
COPY qpl-test.sh /usr/local/bin/
67-
68-
ENTRYPOINT cd /test && /bin/bash -e ./dsa_user_test_runner.sh

demo/accel-config-demo/idxd-reset.patch

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)