Skip to content

Commit 48181a0

Browse files
authored
Update AI tools (#83)
Updates AI tools link and workflows for v2024.0.1 Signed-off-by: Jesus Hector Robles Gutierrez <[email protected]>
1 parent 78bab4d commit 48181a0

File tree

5 files changed

+72
-9
lines changed

5 files changed

+72
-9
lines changed

.github/workflows/build_all.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env:
1111
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/5b36181e-4974-4733-91c7-0c10c54900a5/w_HPCKit_p_2024.0.0.49588_offline.exe
1212
LINUX_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/20f4e6a1-6b0b-4752-b8c1-e5eacba10e01/l_BaseKit_p_2024.0.0.49564_offline.sh
1313
LINUX_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/1b2baedd-a757-4a79-8abb-a5bf15adae9a/l_HPCKit_p_2024.0.0.49589_offline.sh
14+
LINUX_AIKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/4c0e0228-7d3b-40e2-8a2c-eae82f77b0c8/l_AITools.2024.0.1.3.sh
1415
MACOS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/edb4dc2f-266f-47f2-8d56-21bc7764e119/m_HPCKit_p_2023.2.0.49443_offline.dmg
1516
WINDOWS_CPP_COMPONENTS: intel.oneapi.win.cpp-dpcpp-common
1617
WINDOWS_FORTRAN_COMPONENTS: intel.oneapi.win.ifort-compiler
@@ -23,7 +24,7 @@ env:
2324
LINUX_DPCPP_COMPONENTS_WEB: intel.oneapi.lin.dpcpp-cpp-compiler
2425
MACOS_CPP_COMPONENTS: intel.oneapi.mac.cpp-compiler
2526
MACOS_FORTRAN_COMPONENTS: intel.oneapi.mac.ifort-compiler
26-
CACHE_NUMBER: 7
27+
CACHE_NUMBER: 6
2728
SAMPLES_TAG: 2024.0.0
2829
COMPILER_VERSION: 2024.0.0
2930
TBB_VERSION: 2021.11.0
@@ -249,6 +250,40 @@ jobs:
249250
installer*
250251
retention-days: 7
251252

253+
build_linux_aitools:
254+
runs-on: ubuntu-20.04
255+
defaults:
256+
run:
257+
shell: bash
258+
steps:
259+
- uses: actions/checkout@v2
260+
- name: cache install
261+
id: cache-install
262+
uses: actions/cache@v2
263+
with:
264+
path: |
265+
/intel/oneapi/intelpython
266+
key: install-${{ env.CACHE_NUMBER }}-${{ env.LINUX_AIKIT_URL }}-compiler-tbb-${{ hashFiles('**/scripts/cache_exclude_linux.sh') }}
267+
- name: install
268+
if: steps.cache-install.outputs.cache-hit != 'true'
269+
run: scripts/install_linux_aitools.sh $LINUX_AIKIT_URL
270+
- name: build
271+
run: scripts/build_linux_aitools.sh $SAMPLES_TAG
272+
- name: exclude unused files from cache
273+
if: steps.cache-install.outputs.cache-hit != 'true'
274+
run: scripts/cache_exclude_linux.sh
275+
276+
# Delete the following if you don't want to save install logs
277+
- name: Saving install logs
278+
if: steps.cache-install.outputs.cache-hit != 'true'
279+
uses: actions/upload-artifact@v2
280+
with:
281+
name: InstallLogs_${{ github.job }}
282+
path: |
283+
bootstrapper*
284+
installer*
285+
retention-days: 7
286+
252287
build_linux_apt_cpp:
253288
runs-on: ubuntu-20.04
254289
defaults:

.github/workflows/list_components.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
LINUX_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/20f4e6a1-6b0b-4752-b8c1-e5eacba10e01/l_BaseKit_p_2024.0.0.49564.sh
1919
LINUX_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/1b2baedd-a757-4a79-8abb-a5bf15adae9a/l_HPCKit_p_2024.0.0.49589.sh
2020
LINUX_IOTKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/792937e1-5667-47a9-a9df-e1142fce55b5/l_IoTKit_p_2023.2.0.49273.sh
21-
LINUX_AIKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/249dd907-b3ed-4aae-a9d2-f8e303c02dbe/l_AITools.2024.0.0.21.sh
21+
LINUX_AIKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/4c0e0228-7d3b-40e2-8a2c-eae82f77b0c8/l_AITools.2024.0.1.3.sh
2222
LINUX_RENDERKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/18e978f0-5a80-4006-bf34-207f205b8f4f/l_RenderKit_p_2024.0.0.49659.sh
2323
MACOS_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/cd013e6c-49c4-488b-8b86-25df6693a9b7/m_BaseKit_p_2023.2.0.49398.dmg
2424
MACOS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/edb4dc2f-266f-47f2-8d56-21bc7764e119/m_HPCKit_p_2023.2.0.49443.dmg
@@ -66,10 +66,10 @@ jobs:
6666
run: scripts/list_components_linux.sh $LINUX_HPCKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_hpckit.txt
6767
- name: Intel® oneAPI IoT Toolkit
6868
run: scripts/list_components_linux.sh $LINUX_IOTKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_iotkit.txt
69-
- name: Intel® AI Tools Toolkit
70-
run: scripts/list_components_linux_aitools.sh $LINUX_AIKIT_URL
7169
- name: Intel® oneAPI Rendering Toolkit
7270
run: scripts/list_components_linux.sh $LINUX_RENDERKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_renderkit.txt
71+
- name: Intel® AI Tools Toolkit
72+
run: scripts/list_components_linux_aitools.sh $LINUX_AIKIT_URL doc/source/${{ github.workflow }}/${{ github.job }}_aitools.txt
7373

7474
- name: Upload artifacts
7575
uses: actions/upload-artifact@v2

scripts/build_linux_aitools.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# SPDX-FileCopyrightText: 2020 Intel Corporation
4+
#
5+
# SPDX-License-Identifier: MIT
6+
7+
SAMPLES_TAG=$1
8+
9+
git clone --depth 1 --branch "$SAMPLES_TAG" https://github.com/oneapi-src/oneAPI-samples.git
10+
11+
source /intel/oneapi/intelpython/bin/activate tensorflow
12+
cd oneAPI-samples/AI-and-Analytics/Getting-Started-Samples/IntelTensorFlow_GettingStarted
13+
python TensorFlow_HelloWorld.py

scripts/install_linux_aitools.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# SPDX-FileCopyrightText: 2020 Intel Corporation
4+
#
5+
# SPDX-License-Identifier: MIT
6+
7+
URL=$1
8+
9+
curl --output webimage.sh --url "$URL" --retry 5 --retry-delay 5
10+
chmod +x webimage.sh
11+
sudo ./webimage.sh -b -p /intel/oneapi/intelpython -k
12+
installer_exit_code=$?
13+
exit $installer_exit_code

scripts/list_components_linux_aitools.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
# SPDX-License-Identifier: MIT
66

77
URL=$1
8+
FILENAME=$2
89

910
curl --output webimage.sh --url "$URL" --retry 5 --retry-delay 5
1011
chmod +x webimage.sh
11-
./webimage.sh -b -p webimage_extracted
12-
installer_exit_code=$?
12+
sudo ./webimage.sh -b -p webimage_extracted -k
1313
rm -rf webimage.sh
14-
WEBIMAGE_NAME=$(ls -1 webimage_extracted/)
15-
echo "$WEBIMAGE_NAME"
16-
rm -rf webimage_extracted
14+
source webimage_extracted/bin/activate base
15+
installer_exit_code=$?
16+
conda env list > "$FILENAME"
17+
cat "$FILENAME"
18+
sudo rm -rf webimage_extracted
1719
exit $installer_exit_code

0 commit comments

Comments
 (0)