Skip to content

Commit b76f12e

Browse files
authored
[Devops] Small containers clean-up (#20219)
- The `get_release.py` script is unused. Removing. - don't check *.sum week, it was only needed for 45th week of 2024. - We don't test fpga anymore. Removing runtime installation steps. - Do not download .deb.gpg & .ddeb assets.
1 parent 9e74edc commit b76f12e

File tree

5 files changed

+4
-60
lines changed

5 files changed

+4
-60
lines changed

devops/containers/ubuntu2204_intel_drivers.Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ USER root
99

1010
RUN apt update && apt install -yqq wget
1111

12-
COPY scripts/get_release.py /
1312
COPY scripts/install_drivers.sh /
1413
COPY dependencies.json /
1514

devops/containers/ubuntu2404_intel_drivers.Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ USER root
99

1010
RUN apt update && apt install -yqq wget
1111

12-
COPY scripts/get_release.py /
1312
COPY scripts/install_drivers.sh /
1413
COPY dependencies.json /
1514

devops/containers/ubuntu2404_intel_drivers_igc_dev.Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ USER root
99

1010
RUN apt update && apt install -yqq libllvm14 libllvm15 libz3-4
1111

12-
COPY scripts/get_release.py /
1312
COPY scripts/install_drivers.sh /
1413
COPY dependencies.json /
1514
COPY dependencies-igc-dev.json /

devops/scripts/get_release.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

devops/scripts/install_drivers.sh

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,16 @@ InstallIGFX () {
114114
| grep ".*deb" \
115115
| wget -qi -
116116
get_release intel/compute-runtime $CR_TAG \
117-
| grep -E ".*((deb)|(sum))" \
117+
| grep -E ".*((\.deb)|(sum))" \
118118
| wget -qi -
119-
# Perform the checksum conditionally and then get the release
120-
# Skip the ww45 checksum because the igc_dev driver was manually updated
121-
# so the package versions don't exactly match.
122-
if [ ! -f "ww45.sum" ]; then
123-
sha256sum -c *.sum
124-
fi
119+
# We don't download .ddeb packages, so ignore missing ones.
120+
sha256sum -c *.sum --ignore-missing
125121
get_release intel/cm-compiler $CM_TAG \
126122
| grep ".*deb" \
127123
| grep -v "u18" \
128124
| wget -qi -
129125
get_release oneapi-src/level-zero $L0_TAG \
130-
| grep ".*$UBUNTU_VER.*deb" \
126+
| grep ".*$UBUNTU_VER.*deb$" \
131127
| wget -qi -
132128
dpkg -i --force-all *.deb && rm *.deb *.sum
133129
mkdir -p /usr/local/lib/igc/
@@ -177,33 +173,12 @@ InstallCPURT () {
177173
fi
178174
}
179175

180-
InstallFPGAEmu () {
181-
echo "Installing Intel FPGA Fast Emulator..."
182-
echo "FPGA Emulator version $FPGA_TAG"
183-
mkdir -p $INSTALL_LOCATION
184-
cd $INSTALL_LOCATION
185-
if [ -d "$INSTALL_LOCATION/fpgaemu" ]; then
186-
echo "$INSTALL_LOCATION/fpgaemu exists and will be removed!"
187-
rm -Rf $INSTALL_LOCATION/fpgaemu;
188-
fi
189-
get_release intel/llvm $FPGA_TAG \
190-
| grep -E ".*fpgaemu.*tar.gz" \
191-
| wget -qi - && \
192-
mkdir fpgaemu && tar -xf *.tar.gz -C fpgaemu && rm *.tar.gz
193-
if [ -e /runtimes/fpgaemu/install.sh ]; then
194-
bash -x /runtimes/fpgaemu/install.sh
195-
else
196-
echo /runtimes/fpgaemu/x64/libintelocl_emu.so > /etc/OpenCL/vendors/intel_fpgaemu.icd
197-
fi
198-
}
199-
200176
if [[ $# -eq 0 ]] ; then
201177
echo "No options were specified. Please, specify one or more of the following:"
202178
echo "--all - Install all Intel drivers"
203179
echo "--igfx - Install Intel Graphics drivers"
204180
echo "--use-dev-igc - Install development version of Intel Graphics drivers instead"
205181
echo "--cpu - Install Intel CPU OpenCL runtime"
206-
echo "--fpga-emu - Install Intel FPGA Fast emulator"
207182
echo "Set INSTALL_LOCATION env variable to specify install location"
208183
exit 0
209184
fi
@@ -221,7 +196,6 @@ while [ "${1:-}" != "" ]; do
221196
InstallIGFX
222197
InstallTBB
223198
InstallCPURT
224-
InstallFPGAEmu
225199
;;
226200
"--igfx")
227201
InstallIGFX
@@ -230,10 +204,6 @@ while [ "${1:-}" != "" ]; do
230204
InstallTBB
231205
InstallCPURT
232206
;;
233-
"--fpga-emu")
234-
InstallTBB
235-
InstallFPGAEmu
236-
;;
237207
esac
238208
shift
239209
done

0 commit comments

Comments
 (0)