1414
1515FROM ubuntu:22.04 AS builder
1616
17- RUN apt update && apt install -y --no-install-recommends \
18- gcc make patch autoconf automake libtool pkg-config curl ca-certificates \
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 \
1919 libjson-c-dev uuid-dev zlib1g-dev
2020
2121ARG ACCEL_CONFIG_VERSION="3.5.2"
@@ -24,8 +24,8 @@ ARG ACCEL_CONFIG_SHA256="a2d52007b4bfdc050a21893466e78328c6800f9a87b0806c7e7f577
2424
2525RUN 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
2626
27- ADD idxd-reset.patch /
28- ADD test_runner_disable_shared_queues.patch /
27+ COPY idxd-reset.patch /
28+ COPY test_runner_disable_shared_queues.patch /
2929
3030RUN cd idxd-config-accel-config-v$ACCEL_CONFIG_VERSION && \
3131 patch -p1 < ../idxd-reset.patch && \
@@ -35,9 +35,25 @@ RUN cd idxd-config-accel-config-v$ACCEL_CONFIG_VERSION && \
3535 ./configure -q --libdir=/usr/lib64 --enable-test=yes --disable-docs && \
3636 make install
3737
38+ COPY dml.patch /
39+ RUN cd / && git clone --recurse-submodules --branch v0.1.9-beta --depth 1 https://github.com/intel/DML.git && \
40+ mkdir DML/build && cd DML/build && \
41+ patch -d .. -p1 < /dml.patch && \
42+ cmake .. && \
43+ make install && \
44+ mv -v /usr/local/bin/tests /usr/local/bin/dml_tests && \
45+ mv -v /usr/local/bin/tests_mt /usr/local/bin/dml_tests_mt && \
46+ mv -v /usr/local/bin/job_api_samples /usr/local/bin/dml_job_api_samples
47+
48+ RUN cd / && git clone --recursive --depth 1 --branch v1.0.0 https://github.com/intel/qpl.git && \
49+ mkdir qpl/build && cd qpl/build && \
50+ sed -i '10i #include <stdexcept>' ../tools/benchmarks/include/types.hpp && \
51+ cmake -DLOG_HW_INIT=ON .. && \
52+ make install
53+
3854FROM ubuntu:22.04
3955
40- RUN apt update && apt install -y libjson-c5
56+ RUN apt-get update && apt-get install -y --no-install-recommends libjson-c5 && rm -rf /var/lib/apt/lists/ \*
4157
4258COPY --from=builder /usr/lib64/libaccel-config.so.1.0.0 "/lib/x86_64-linux-gnu/"
4359RUN ldconfig
@@ -46,4 +62,10 @@ COPY --from=builder /usr/bin/accel-config /usr/bin/
4662COPY --from=builder /usr/lib/accel-config/test /test
4763COPY --from=builder /idxd-reset.patch /usr/local/share/package-sources/
4864
65+ COPY --from=builder /usr/local /usr/local
66+ COPY --from=builder /qpl/build/examples /usr/local/bin/
67+
68+ COPY dml-test.sh /usr/local/bin/
69+ COPY qpl-test.sh /usr/local/bin/
70+
4971ENTRYPOINT cd /test && /bin/bash -e ./dsa_user_test_runner.sh
0 commit comments