File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff 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' ]
Original file line number Diff line number Diff line change 33
44function 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
2324wget -nc ${MLC_ONEAPI_INSTALL_URL_BASE} /${MLC_ONEAPI_INSTALL_FILENAME}
2425test $? -eq 0 || exit $?
26+
27+ if [[ ${MLC_CLEAN_INSTALL} == yes ]]; then
28+ rm -rf $HOME /intel
29+ fi
30+
2531rm -rf install
2632mkdir install
33+
2734CMD=" bash ./${MLC_ONEAPI_INSTALL_FILENAME} -a --silent --cli --eula accept --install-dir ${PWD} /install"
2835run " $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+
3044if [[ ${MLC_ONEAPI_FORTRAN} == ' yes' ]] then
3145 wget -nc ${MLC_ONEAPI_FORTRAN_COMPILER_URL_BASE} /${MLC_ONEAPI_FORTRAN_COMPILER_FILENAME}
3246 test $? -eq 0 || exit $?
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ automation_uid: 5b4e0237da074764
44cache : true
55category : Compiler automation
66clean_files : []
7- default_version : 2025.2 .1
7+ default_version : 2025.3 .1
88deps :
99- tags : detect,os
1010name : Detect or install OneAPI compiler
@@ -18,6 +18,7 @@ new_env_keys:
1818
1919input_mapping :
2020 oneapi_dir : MLC_ONEAPI_DIR_PATH
21+ clean : MLC_ONEAPI_CLEAN_INSTALL
2122
2223post_deps_off :
2324- tags : get,compiler-flags
@@ -35,6 +36,17 @@ tests:
3536 - fortran
3637
3738versions :
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
You can’t perform that action at this time.
0 commit comments