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.
[Deps] Introduce env var to skip xrt download
- Loading branch information
Showing
4 changed files
with
9 additions
and
5 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 |
---|---|---|
|
@@ -31,6 +31,7 @@ FROM ubuntu:jammy-20230126 | |
LABEL maintainer="Jakoba Petri-Koenig <[email protected]>, Yaman Umuroglu <[email protected]>" | ||
|
||
ARG XRT_DEB_VERSION="xrt_202220.2.14.354_22.04-amd64-xrt" | ||
ARG SKIP_XRT | ||
|
||
WORKDIR /workspace | ||
|
||
|
@@ -78,9 +79,10 @@ RUN cd verilator && \ | |
make install | ||
|
||
# install XRT | ||
RUN wget -U 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.27 Safari/537.17' "https://www.amd.com/bin/public/amdOpenDownload?filename=$XRT_DEB_VERSION.deb" -O /tmp/$XRT_DEB_VERSION.deb --debug | ||
RUN apt install -y /tmp/$XRT_DEB_VERSION.deb | ||
RUN rm /tmp/$XRT_DEB_VERSION.deb | ||
RUN if [ -z "$SKIP_XRT" ];then \ | ||
wget -U 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.27 Safari/537.17' "https://www.amd.com/bin/public/amdOpenDownload?filename=$XRT_DEB_VERSION.deb" -O /tmp/$XRT_DEB_VERSION.deb --debug && \ | ||
apt install -y /tmp/$XRT_DEB_VERSION.deb && \ | ||
rm /tmp/$XRT_DEB_VERSION.deb; fi | ||
|
||
# versioned Python package requirements for FINN compiler | ||
# these are given in requirements.txt | ||
|
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