From 91cd77dc520ad72518971bd8371c5cb99abe4f4f Mon Sep 17 00:00:00 2001 From: Akira Kawata Date: Wed, 24 Jul 2024 21:41:06 +0900 Subject: [PATCH] Test ubuntu 24.04 --- ubuntu24.04.Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ubuntu24.04.Dockerfile diff --git a/ubuntu24.04.Dockerfile b/ubuntu24.04.Dockerfile new file mode 100644 index 0000000..5e2eac4 --- /dev/null +++ b/ubuntu24.04.Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:22.04 +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update +RUN apt-get install -y ninja-build cmake gcc g++ git python3 python3-distutils python3-dev python3-pip g++-aarch64-linux-gnu qemu qemu-system-aarch64 qemu-user rsync +RUN pip3 install pytest numpy torch==2.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html +COPY . /sold +WORKDIR /sold +RUN rm -rf build +RUN mkdir build && cd build && cmake -DTorch_DIR=$(python3 -c "import site; print (site.getsitepackages()[0])")/torch/share/cmake/Torch -GNinja -DSOLD_PYBIND_TEST=ON -DSOLD_LIBTORCH_TEST=ON .. +RUN cmake --build build +RUN cd build && ctest