JCSDA / spack-stack

Creative Commons Zero v1.0 Universal
22 stars 42 forks source link

Install Intel Classic 2023.2.4 on various systems #1170

Open AlexanderRichert-NOAA opened 4 days ago

AlexanderRichert-NOAA commented 4 days ago

UFS S2S needs Intel Classic 2023.2.1+, and it's a good idea to have the last Classic release anyway. I've put in requests for install on Orion, Hercules, and Gaea C5, but intend to install our own at least for short term use (1.6.0). Related to #1147.

2023.2.4 is the last Intel Classic release.

2023.2.x is already on Hera, Jet, and Gaea C6.

Steps: Under /path/to/platform/spack-stack:

mkdir compilers
cd compilers

wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b00a4b0e-bd21-41fa-ab34-19e8e2a77c5a/l_dpcpp-cpp-compiler_p_2023.2.4.24_offline.sh
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/5bfaa204-689d-4bf1-9656-e37e35ea3fc2/l_fortran-compiler_p_2023.2.4.31_offline.sh
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/4f5871da-0533-4f62-b563-905edfb2e9b7/l_mpi_oneapi_p_2021.10.0.49374_offline.sh

if [[ $(sha256sum l_dpcpp-cpp-compiler_p_2023.2.4.24_offline.sh | awk '{print $1}') != f143a764adba04a41e49ec405856ad781e5c3754812e90a7ffe06d08cd07f684 ]]; then echo "DOES NOT MATCH"; fi
if [[ $(sha256sum l_fortran-compiler_p_2023.2.4.31_offline.sh | awk '{print $1}') != 2f327d67cd207399b327df5b7c912baae800811d0180485ef5431f106686c94b ]]; then echo "DOES NOT MATCH"; fi
if [[ $(sha256sum l_mpi_oneapi_p_2021.10.0.49374_offline.sh | awk '{print $1}') != ab2e97d87b139201a2e7dab9a61ac6e8927b7783b459358c4ad69a1b1c064f40 ]]; then echo "DOES NOT MATCH"; fi

chmod u+x l_dpcpp-cpp-compiler_p_2023.2.4.24_offline.sh l_fortran-compiler_p_2023.2.4.31_offline.sh l_mpi_oneapi_p_2021.10.0.49374_offline.sh

./l_dpcpp-cpp-compiler_p_2023.2.4.24_offline.sh --extract-folder $PWD/cache -s -a -s --action install --eula accept --install-dir $PWD/oneapi --download-cache $PWD/cache
./l_fortran-compiler_p_2023.2.4.31_offline.sh --extract-folder $PWD/cache -s -a -s --action install --eula accept --install-dir $PWD/oneapi --download-cache $PWD/cache
./l_mpi_oneapi_p_2021.10.0.49374_offline.sh --extract-folder $PWD/cache -s -a -s --action install --eula accept --install-dir $PWD/oneapi --download-cache $PWD/cache

# Generate modulefiles and note what's needed in MODULEPATH in env README
AlexanderRichert-NOAA commented 4 days ago

Since ostensibly we don't need a new compiler installation with each release, I'm thinking in each platform's spack-stack directory, I'll have 'spack-compilers/' with a copy of Spack and 'compilers/' for the installation directory to keep the paths short-ish.

climbfuji commented 4 days ago

Since ostensibly we don't need a new compiler installation with each release, I'm thinking in each platform's spack-stack directory, I'll have 'spack-compilers/' with a copy of Spack and 'compilers/' for the installation directory to keep the paths short-ish.

Are you planning to install the compilers using spack? I wasn't going to do that.

AlexanderRichert-NOAA commented 4 days ago

That was the plan. Any reason not to?

climbfuji commented 4 days ago

Personal preference. I do wget link-to-oneapi-basekit and wget link-to-oneapi-hpckit, sh each of them and then run the module generator that comes with oneAPI.

srherbener commented 4 days ago

Everyone and @climbfuji. I'm in Michigan now working remotely, and I am going to take next week off on vacation. I am not going to have time to look at this until after I get back (July 8).

Plus, I am getting swamped with IODA requests which are a higher priority for me. We are trying to get this sorted out at JCSDA, but for now the time that I can dedicate to spack-stack is quite limited. I'm sorry about this situation, but I wanted to let you know what's going on. Thank you for your patience (I know my response time hasn't be very quick lately).

climbfuji commented 4 days ago

Everyone and @climbfuji. I'm in Michigan now working remotely, and I am going to take next week off on vacation. I am not going to have time to look at this until after I get back (July 8).

Plus, I am getting swamped with IODA requests which are a higher priority for me. We are trying to get this sorted out at JCSDA, but for now the time that I can dedicate to spack-stack is quite limited. I'm sorry about this situation, but I wanted to let you know what's going on. Thank you for your patience (I know my response time hasn't be very quick lately).

I can take care of S4 after hours

AlexanderRichert-NOAA commented 4 days ago

@climbfuji fine by me, I'll take a crack at it on, say, Gaea C5 and see how it goes.

AlexanderRichert-NOAA commented 4 days ago

@climbfuji do the installer URLs in the description look right to you?

AlexanderRichert-NOAA commented 3 days ago

Addendum- I can't access the "basekit" installers since I don't have "priority support" or whatever.

climbfuji commented 3 days ago

wget doesn't work? Maybe you are blocked by the firewall?

AlexanderRichert-NOAA commented 3 days ago

Can you supply the full URLs?

climbfuji commented 3 days ago

Turns out I can't either. we'll have to get those from our Intel partners. Next week - sorry. Alternatively, download everything you need mkl, tbb, compilers, mpi from the spack urls that you pasted above.

AlexanderRichert-NOAA commented 8 hours ago

I've got this more or less figured out for the moment, so it's just a matter of testing. Would you be able to put a ticket for S4 to see if they can install system wide? I've put in tickets for Gaea C5, Hercules, and Orion asking for 2023.2.4 (2021.10.0 20230609). Meanwhile I'll keep pushing ahead with doing our own installs.

climbfuji commented 2 hours ago

I've got this more or less figured out for the moment, so it's just a matter of testing. Would you be able to put a ticket for S4 to see if they can install system wide? I've put in tickets for Gaea C5, Hercules, and Orion asking for 2023.2.4 (2021.10.0 20230609). Meanwhile I'll keep pushing ahead with doing our own installs.

I sent an email to the S4 help desk and cc-ed Steve