forked from Xilinx/finn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Xilinx#348 from Xilinx/dev
FINN v0.6
- Loading branch information
Showing
124 changed files
with
6,786 additions
and
1,600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ __pycache__/* | |
*.ipynb_checkpoints* | ||
|
||
# Project files | ||
.vscode | ||
.ropeproject | ||
.project | ||
.pydevproject | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,26 +27,50 @@ | |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
FROM pytorch/pytorch:1.1.0-cuda10.0-cudnn7.5-devel | ||
MAINTAINER Yaman Umuroglu <[email protected]> | ||
LABEL maintainer="Yaman Umuroglu <[email protected]>" | ||
|
||
WORKDIR /workspace | ||
|
||
# some Vitis deps require a timezone to be specified, which hangs in Docker | ||
# use workaround from https://grigorkh.medium.com/fix-tzdata-hangs-docker-image-build-cdb52cc3360d | ||
ENV TZ="Europe/Dublin" | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN apt-get update | ||
RUN apt-get -y upgrade | ||
RUN apt-get install -y build-essential libglib2.0-0 libsm6 libxext6 libxrender-dev | ||
RUN apt-get install -y verilator zsh nano | ||
RUN apt-get install -y sshpass wget unzip | ||
RUN apt-get install -y build-essential | ||
RUN apt-get install -y libglib2.0-0 | ||
RUN apt-get install -y libsm6 | ||
RUN apt-get install -y libxext6 | ||
RUN apt-get install -y libxrender-dev | ||
RUN apt-get install -y verilator | ||
RUN apt-get install -y nano | ||
RUN apt-get install -y zsh | ||
RUN apt-get install -y rsync | ||
RUN apt-get install -y git | ||
RUN apt-get install -y sshpass | ||
RUN apt-get install -y wget | ||
RUN apt-get install -y unzip | ||
RUN apt-get install -y zip | ||
RUN echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config | ||
|
||
# XRT deps | ||
RUN wget https://raw.githubusercontent.com/Xilinx/XRT/master/src/runtime_src/tools/scripts/xrtdeps.sh | ||
RUN apt-get update | ||
RUN bash xrtdeps.sh -docker | ||
RUN rm xrtdeps.sh | ||
# install vitis deps if required | ||
ARG INSTALL_XRT_DEPS="0" | ||
ARG XRT_DEB_VERSION="xrt_202010.2.7.766_18.04-amd64-xrt" | ||
RUN if [ "$INSTALL_XRT_DEPS" = "1" ] ; then \ | ||
echo "Installing XRT: $XRT_DEB_VERSION"; \ | ||
wget https://www.xilinx.com/bin/public/openDownload?filename=$XRT_DEB_VERSION.deb -O /tmp/$XRT_DEB_VERSION.deb; \ | ||
apt install -y /tmp/$XRT_DEB_VERSION.deb; \ | ||
else \ | ||
echo "Skipping installation of XRT dependencies"; \ | ||
fi | ||
|
||
# cloning dependency repos | ||
# finn-base | ||
RUN git clone https://github.com/Xilinx/finn-base.git /workspace/finn-base | ||
# finn-experimental | ||
RUN git clone https://github.com/Xilinx/finn-experimental.git /workspace/finn-experimental | ||
# Brevitas | ||
RUN git clone https://github.com/Xilinx/brevitas.git /workspace/brevitas | ||
# CNPY | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,8 @@ | |
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
FROM pytorch/pytorch:1.1.0-cuda10.0-cudnn7.5-devel | ||
MAINTAINER Yaman Umuroglu <[email protected]> | ||
FROM pytorch/pytorch:1.7.1-cuda11.0-cudnn8-runtime | ||
LABEL maintainer="Yaman Umuroglu <[email protected]>" | ||
ARG GID | ||
ARG GNAME | ||
ARG UNAME | ||
|
@@ -36,11 +36,28 @@ ARG PASSWD | |
|
||
WORKDIR /workspace | ||
|
||
# some Vitis deps require a timezone to be specified, which hangs in Docker | ||
# use workaround from https://grigorkh.medium.com/fix-tzdata-hangs-docker-image-build-cdb52cc3360d | ||
ENV TZ="Europe/Dublin" | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
|
||
RUN apt-get update | ||
RUN apt-get -y upgrade | ||
RUN apt-get install -y build-essential libglib2.0-0 libsm6 libxext6 libxrender-dev | ||
RUN apt-get install -y verilator nano zsh rsync | ||
RUN apt-get -y install sshpass wget unzip | ||
RUN apt-get install -y build-essential | ||
RUN apt-get install -y libglib2.0-0 | ||
RUN apt-get install -y libsm6 | ||
RUN apt-get install -y libxext6 | ||
RUN apt-get install -y libxrender-dev | ||
RUN apt-get install -y verilator | ||
RUN apt-get install -y nano | ||
RUN apt-get install -y zsh | ||
RUN apt-get install -y rsync | ||
RUN apt-get install -y git | ||
RUN apt-get install -y sshpass | ||
RUN apt-get install -y wget | ||
RUN apt-get install -y unzip | ||
RUN apt-get install -y zip | ||
RUN echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config | ||
|
||
COPY requirements.txt . | ||
|
@@ -54,22 +71,29 @@ RUN pip install sphinx==3.1.2 | |
RUN pip install sphinx_rtd_theme==0.5.0 | ||
RUN pip install pytest-xdist==2.0.0 | ||
RUN pip install pytest-parallel==0.1.0 | ||
RUN pip install netron | ||
RUN pip install netron>=4.7.9 | ||
RUN pip install pandas==1.1.5 | ||
RUN pip install scikit-learn==0.24.1 | ||
RUN pip install tqdm==4.31.1 | ||
RUN pip install -e git+https://github.com/fbcotter/[email protected]#egg=dataset_loading | ||
|
||
|
||
# switch user | ||
RUN groupadd -g $GID $GNAME | ||
RUN useradd -M -u $UID $UNAME -g $GNAME | ||
RUN usermod -aG sudo $UNAME | ||
RUN echo "$UNAME:$PASSWD" | chpasswd | ||
RUN echo "root:$PASSWD" | chpasswd | ||
RUN chown -R $UNAME:$GNAME /workspace | ||
RUN ln -s /workspace /home/$UNAME | ||
RUN chown -R $UNAME:$GNAME /home/$UNAME | ||
USER $UNAME | ||
|
||
|
||
# cloning dependency repos (as user) | ||
# finn-base | ||
RUN git clone https://github.com/Xilinx/finn-base.git /workspace/finn-base | ||
# finn-experimental | ||
RUN git clone https://github.com/Xilinx/finn-experimental.git /workspace/finn-experimental | ||
# Brevitas | ||
RUN git clone https://github.com/Xilinx/brevitas.git /workspace/brevitas | ||
# CNPY | ||
|
@@ -98,12 +122,11 @@ RUN chmod 755 /usr/local/bin/finn_entrypoint.sh | |
RUN chmod 755 /usr/local/bin/quicktest.sh | ||
# install vitis deps if required | ||
ARG INSTALL_XRT_DEPS | ||
ARG XRT_DEB_VERSION | ||
RUN if [ "$INSTALL_XRT_DEPS" = "1" ] ; then \ | ||
echo "Installing XRT dependencies"; \ | ||
wget https://raw.githubusercontent.com/Xilinx/XRT/master/src/runtime_src/tools/scripts/xrtdeps.sh; \ | ||
apt-get update; \ | ||
bash xrtdeps.sh -docker; \ | ||
rm xrtdeps.sh; \ | ||
echo "Installing XRT: $XRT_DEB_VERSION"; \ | ||
wget https://www.xilinx.com/bin/public/openDownload?filename=$XRT_DEB_VERSION.deb -O /tmp/$XRT_DEB_VERSION.deb; \ | ||
apt install -y /tmp/$XRT_DEB_VERSION.deb; \ | ||
else \ | ||
echo "Skipping installation of XRT dependencies"; \ | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.