Skip to content

Commit

Permalink
do pono earlier because it has no dependencies and it takes awhile
Browse files Browse the repository at this point in the history
  • Loading branch information
steveri committed Sep 25, 2023
1 parent fedfd2b commit 081552a
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,6 @@ RUN printf -- "--- TIME %s %s\n" `date +%H:%M` setup0 && \
# Switch shell to bash
SHELL ["/bin/bash", "--login", "-c"]

# Pono
COPY ./pono /aha/pono
COPY ./aha/bin/setup-smt-switch.sh /aha/pono/contrib/
WORKDIR /aha/pono
RUN pip install Cython==0.29 pytest toml scikit-build==0.13.0
RUN ./contrib/setup-bison.sh && ./contrib/setup-flex.sh && ./contrib/setup-smt-switch.sh --python && ./contrib/setup-btor2tools.sh
RUN ./configure.sh --python
WORKDIR /aha/pono/build
RUN make -j4 && pip install -e ./python
WORKDIR /aha

# Install top-level AHA and AHA Tools
# Seems like this should happen *first*, no?
COPY . /aha
Expand All @@ -88,6 +77,21 @@ RUN printf -- "--- TIME %s %s\n" `date +%H:%M` tools \
RUN printf -- "--- TIME %s %s\n" `date +%H:%M` pythunder && \
python -m pip install -e cgra_pnr/thunder

# Pono
COPY ./pono /aha/pono
COPY ./aha/bin/setup-smt-switch.sh /aha/pono/contrib/
WORKDIR /aha/pono
RUN printf -- "--- TIME %s %s\n" `date +%H:%M` pono &&\
pip install Cython==0.29 pytest toml scikit-build==0.13.0 &&\
./contrib/setup-bison.sh && ./contrib/setup-flex.sh &&\
./contrib/setup-smt-switch.sh --python && ./contrib/setup-btor2tools.sh &&\
./configure.sh --python &&\
(cd /aha/pono/build && make -j4 && pip install -e ./python) &&\
pip install -e deps/smt-switch/build/python &&\
echo -n "BEFORE CLEANUP: " && du -hs /aha/pono &&\
/bin/rm -rf deps build/tests/ build/CMakefiles/ build/CMakeTmp/ &&\
echo -n "AFTER CLEANUP: " && du -hs /aha/pono

# CoreIR
COPY ./coreir /aha/coreir
WORKDIR /aha/coreir/build
Expand Down

0 comments on commit 081552a

Please sign in to comment.