-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16008b9
commit 4cc713c
Showing
2 changed files
with
22 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
# perform a binary install on x86 machines | ||
# on ARM, it is skipped | ||
|
||
if [ "${HW_ARCH}" = "x86_64" ]; then | ||
cd /root | ||
apt-get update && apt-get install -y gpg-agent wget | ||
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null | ||
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list | ||
apt-get update && apt-get install -y intel-oneapi-mkl | ||
echo 'source /opt/intel/oneapi/mkl/latest/env/vars.sh' >> ~/.bashrc | ||
|
||
elif [ "${HW_ARCH}" = "aarch64" ]; then | ||
echo 'Skipping MKL on ARM' | ||
fi | ||
|
||
|
||
exit 0 |