Skip to content

Commit 5b2c7ba

Browse files
authored
Update oneapi default version to 2025.3.1 (#711)
1 parent c6bc5d8 commit 5b2c7ba

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

script/get-oneapi/customize.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ def preprocess(i):
1212
recursion_spaces = i['recursion_spaces']
1313
file_name_c = 'icx.exe' if os_info['platform'] == 'windows' else 'icx'
1414

15+
if is_true(env.get('MLC_ONEAPI_CLEAN_INSTALL')):
16+
env['MLC_CLEAN_INSTALL'] = 'yes'
17+
1518
if 'MLC_ICX_BIN_WITH_PATH' not in env:
1619
if env.get('MLC_ONEAPI_DIR_PATH', '') != '':
1720
oneapi_path = env['MLC_ONEAPI_DIR_PATH']

script/get-oneapi/install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
function run() {
55
CMD=$1
6+
echo "$CMD"
67
# Run the install command and capture both output and exit code
78
OUTPUT=$(eval "$CMD" 2>&1)
89
STATUS=$?
@@ -22,11 +23,24 @@ function run() {
2223

2324
wget -nc ${MLC_ONEAPI_INSTALL_URL_BASE}/${MLC_ONEAPI_INSTALL_FILENAME}
2425
test $? -eq 0 || exit $?
26+
27+
if [[ ${MLC_CLEAN_INSTALL} == yes ]]; then
28+
rm -rf $HOME/intel
29+
fi
30+
2531
rm -rf install
2632
mkdir install
33+
2734
CMD="bash ./${MLC_ONEAPI_INSTALL_FILENAME} -a --silent --cli --eula accept --install-dir ${PWD}/install"
2835
run "$CMD"
2936

37+
if [[ ${MLC_ONEAPI_CXX} == 'yes' ]] then
38+
wget -nc ${MLC_ONEAPI_CXX_COMPILER_URL_BASE}/${MLC_ONEAPI_CXX_COMPILER_FILENAME}
39+
test $? -eq 0 || exit $?
40+
CMD="bash ./${MLC_ONEAPI_CXX_COMPILER_FILENAME} -a --silent --cli --eula accept --install-dir ${PWD}/install"
41+
run "$CMD"
42+
fi
43+
3044
if [[ ${MLC_ONEAPI_FORTRAN} == 'yes' ]] then
3145
wget -nc ${MLC_ONEAPI_FORTRAN_COMPILER_URL_BASE}/${MLC_ONEAPI_FORTRAN_COMPILER_FILENAME}
3246
test $? -eq 0 || exit $?

script/get-oneapi/meta.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ automation_uid: 5b4e0237da074764
44
cache: true
55
category: Compiler automation
66
clean_files: []
7-
default_version: 2025.2.1
7+
default_version: 2025.3.1
88
deps:
99
- tags: detect,os
1010
name: Detect or install OneAPI compiler
@@ -18,6 +18,7 @@ new_env_keys:
1818

1919
input_mapping:
2020
oneapi_dir: MLC_ONEAPI_DIR_PATH
21+
clean: MLC_ONEAPI_CLEAN_INSTALL
2122

2223
post_deps_off:
2324
- tags: get,compiler-flags
@@ -35,6 +36,17 @@ tests:
3536
- fortran
3637

3738
versions:
39+
2025.3.1:
40+
env:
41+
MLC_ONEAPI_INSTALL_URL_BASE: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/d640da34-77cc-4ab2-8019-ac5592f4ec19
42+
MLC_ONEAPI_INSTALL_FILENAME: intel-oneapi-base-toolkit-2025.3.0.375_offline.sh
43+
MLC_ONEAPI_CXX_COMPILER_URL_BASE: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/5adfc398-db78-488c-b98f-78461b3c5760
44+
MLC_ONEAPI_CXX_COMPILER_FILENAME: intel-dpcpp-cpp-compiler-2025.3.1.16_offline.sh
45+
MLC_ONEAPI_FORTRAN_COMPILER_URL_BASE: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/724303ca-6927-4327-a560-e0aabb55b010
46+
MLC_ONEAPI_FORTRAN_COMPILER_FILENAME: intel-fortran-compiler-2025.3.1.16_offline.sh
47+
MLC_ONEAPI_INSTALL_VERSION_PREFIX: '2025.3'
48+
MLC_VERSION: '2025.3.1'
49+
MLC_ONEAPI_CXX: 'yes'
3850
2025.2.1:
3951
env:
4052
MLC_ONEAPI_INSTALL_URL_BASE: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/3b7a16b3-a7b0-460f-be16-de0d64fa6b1e

0 commit comments

Comments
 (0)