Skip to content

Commit

Permalink
Test ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
akawashiro committed Jul 24, 2024
1 parent 51f5a15 commit 91cd77d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ubuntu24.04.Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 91cd77d

Please sign in to comment.