forked from libprima/prima
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
230112.005017.CST deprecate some old features in the matlab code
Former-commit-id: f2aa1515587b0c13148123ec981d0bf55f919ca7 [formerly 80e1e6a9e60d99b68e15dc17e9e1d3b36c3eadfe] Former-commit-id: 7df1eb6fdd0eed7a41b8cc75e76deeae85164516
- Loading branch information
1 parent
19e77cb
commit be75209
Showing
16 changed files
with
132 additions
and
155 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,47 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-FileCopyrightText: 2020 Intel Corporation | ||
# This script installs the Fortran compilers ifort and ifx provided in Intel OneAPI. | ||
# See https://github.com/oneapi-src/oneapi-ci | ||
# https://github.com/oneapi-src/oneapi-ci/blob/master/scripts/install_macos.sh | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# Zaikun Zhang (www.zhangzk.net), January 9, 2023 | ||
|
||
# URL for the offline installer of Intel OneAPI Fortran compiler. See | ||
# https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html | ||
# Default: 2023.0.0 | ||
URL="https://registrationcenter-download.intel.com/akdlm/irc_nas/19106/m_fortran-compiler-classic_p_2023.0.0.25379_offline.dmg" | ||
if [[ $# -ge 1 ]] ; then | ||
if [[ $1 = "2022" ]] ; then | ||
URL="https://registrationcenter-download.intel.com/akdlm/irc_nas/18977/m_HPCKit_p_2022.3.1.15344_offline.dmg" | ||
fi | ||
if [[ $1 = "2021" ]] ; then | ||
URL="https://registrationcenter-download.intel.com/akdlm/irc_nas/18242/m_HPCKit_p_2021.4.0.3389_offline.dmg" | ||
fi | ||
fi | ||
|
||
URL=$1 | ||
COMPONENTS=$2 | ||
# Component to install. | ||
COMPONENTS=intel.oneapi.mac.ifort-compiler | ||
|
||
# Download the installer. curl is included by default in macOS. | ||
cd "$TMPDIR" || exit 42 | ||
curl --output webimage.dmg --url "$URL" --retry 5 --retry-delay 5 | ||
hdiutil attach webimage.dmg | ||
if [ -z "$COMPONENTS" ]; then | ||
sudo /Volumes/"$(basename "$URL" .dmg)"/bootstrapper.app/Contents/MacOS/bootstrapper -s --action install --eula=accept --continue-with-optional-error=yes --log-dir=. | ||
installer_exit_code=$? | ||
else | ||
sudo /Volumes/"$(basename "$URL" .dmg)"/bootstrapper.app/Contents/MacOS/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --log-dir=. | ||
installer_exit_code=$? | ||
fi | ||
|
||
# Install the compiler. | ||
/Volumes/"$(basename "$URL" .dmg)"/bootstrapper.app/Contents/MacOS/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --log-dir=. | ||
installer_exit_code=$? | ||
|
||
# Run the script that sets the environment variables. | ||
source /opt/intel/oneapi/setvars.sh | ||
|
||
# Show the result of the installation. | ||
echo "The latest ifort installed is:" | ||
ifort --version | ||
echo "The path to ifort is:" | ||
command -v ifort | ||
|
||
# Remove the installer | ||
rm webimage.dmg | ||
hdiutil detach /Volumes/"$(basename "$URL" .dmg)" -quiet | ||
|
||
# Exit with the installer exit code. | ||
exit $installer_exit_code |
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 |
---|---|---|
@@ -1,18 +1,47 @@ | ||
REM SPDX-FileCopyrightText: 2020 Intel Corporation | ||
REM | ||
REM SPDX-License-Identifier: MIT | ||
:: This script installs the Fortran compilers ifort and ifx provided in Intel OneAPI. | ||
:: See https://github.com/oneapi-src/oneapi-ci | ||
:: https://github.com/oneapi-src/oneapi-ci/blob/master/scripts/install_windows.bat | ||
:: | ||
:: Zaikun Zhang (www.zhangzk.net), January 9, 2023 | ||
|
||
set URL=%1 | ||
set COMPONENTS=%2 | ||
:: URL for the offline installer of Intel OneAPI Fortran compiler. See | ||
:: https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html | ||
:: Default version: 2023.0.0 | ||
set URL=https://registrationcenter-download.intel.com/akdlm/irc_nas/19107/w_fortran-compiler_p_2023.0.0.25579_offline.exe | ||
if "%1"=="2022" ( | ||
set URL=https://registrationcenter-download.intel.com/akdlm/irc_nas/18976/w_HPCKit_p_2022.3.1.19755_offline.exe | ||
) | ||
if "%1"=="2021" ( | ||
set URL=https://registrationcenter-download.intel.com/akdlm/irc_nas/18247/w_HPCKit_p_2021.4.0.3340_offline.exe | ||
) | ||
::set URL=https://registrationcenter-download.intel.com/akdlm/irc_nas/17940/w_HPCKit_p_2021.3.0.3227_offline.exe | ||
::set URL=https://registrationcenter-download.intel.com/akdlm/irc_nas/17762/w_HPCKit_p_2021.2.0.2901_offline.exe | ||
::set URL=https://registrationcenter-download.intel.com/akdlm/irc_nas/17392/w_HPCKit_p_2021.1.0.2682_offline.exe | ||
|
||
echo %URL% | ||
echo %COMPONENTS% | ||
:: Component to install. | ||
set COMPONENTS=intel.oneapi.win.ifort-compiler | ||
|
||
:: Download the installer. curl is included by default in Windows since Windows 10, version 1803. | ||
::cd %Temp% :: CD does not work if %Temp% is on a different drive. | ||
curl.exe --output webimage.exe --url %URL% --retry 5 --retry-delay 5 | ||
start /b /wait webimage.exe -s -x -f webimage_extracted --log extract.log | ||
|
||
:: Install the compiler. | ||
webimage_extracted\bootstrapper.exe -s --action install --components=%COMPONENTS% --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=. | ||
set installer_exit_code=%ERRORLEVEL% | ||
|
||
:: Run the script that sets the environment variables. | ||
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" | ||
|
||
:: Show the result of the installation. | ||
echo The path to ifort is: | ||
where ifort.exe | ||
echo The path to ifx is: | ||
where ifx.exe | ||
|
||
:: Remove the installer. | ||
del webimage.exe | ||
if "%COMPONENTS%"=="" ( | ||
webimage_extracted\bootstrapper.exe -s --action install --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=. | ||
) else ( | ||
webimage_extracted\bootstrapper.exe -s --action install --components=%COMPONENTS% --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=. | ||
) | ||
rd /s/q "webimage_extracted" | ||
|
||
:: Exit with the installer exit code. | ||
exit /b %installer_exit_code% |
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
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 was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.