Skip to content

Commit 502717a

Browse files
authored
More Intel MPI tweaks (#436)
* New Intel MPI version * fix script
1 parent 6906525 commit 502717a

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/UnitTests.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,29 +189,28 @@ jobs:
189189
id: cache-intelmpi
190190
uses: actions/cache@v2
191191
with:
192-
path: l_mpi_2019.7.217.tgz
193-
key: ${{ runner.os }}-intelmpi-2019.7.217
192+
path: l_mpi_2019.9.304.tgz
193+
key: ${{ runner.os }}-intelmpi-2019.9.304
194194

195195
- name: Download Intel MPI
196196
if: steps.cache-intelmpi.outputs.cache-hit != 'true'
197-
run: wget --no-verbose http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/16546/l_mpi_2019.7.217.tgz
197+
run: wget https://registrationcenter-download.intel.com/akdlm/irc_nas/tec/17263/l_mpi_2019.9.304.tgz
198198

199199
- name: Install Intel MPI
200200
run: |
201-
tar -xzf l_mpi_2019.7.217.tgz
202-
pushd l_mpi_2019.7.217
201+
tar -xzf l_mpi_2019.9.304.tgz
202+
pushd l_mpi_2019.9.304
203203
cat << EOF > intel.conf
204204
ACCEPT_EULA=accept
205205
CONTINUE_WITH_OPTIONAL_ERROR=yes
206206
PSET_INSTALL_DIR=${HOME}/intel
207-
CONTINUE_WITH_INSTALLDIR_OVERWRITE=no
207+
CONTINUE_WITH_INSTALLDIR_OVERWRITE=yes
208208
PSET_MODE=install
209209
ARCH_SELECTED=ALL
210-
COMPONENTS=;intel-conda-index-tool__x86_64;intel-comp-l-all-vars__noarch;intel-comp-nomcu-vars__noarch;intel-imb__x86_64;intel-mpi-rt__x86_64;intel-mpi-sdk__x86_64;intel-mpi-doc__x86_64;intel-mpi-samples__x86_64;intel-mpi-installer-license__x86_64;intel-conda-impi_rt-linux-64-shadow-package__x86_64;intel-conda-impi-devel-linux-64-shadow-package__x86_64;intel-mpi-psxe__x86_64;intel-psxe-common__noarch;intel-psxe-common-doc__noarch;intel-compxe-pset
210+
COMPONENTS=;intel-conda-index-tool__x86_64;intel-comp-l-all-vars__noarch;intel-comp-nomcu-vars__noarch;intel-imb__x86_64;intel-mpi-rt__x86_64;intel-mpi-sdk__x86_64;intel-mpi-doc__x86_64;intel-mpi-samples__x86_64;intel-mpi-installer-license__x86_64;intel-conda-impi_rt-linux-64-shadow-package__x86_64;intel-conda-impi-devel-linux-64-shadow-package__x86_64;intel-mpi-psxe__x86_64;intel-psxe-common__noarch;intel-compxe-pset
211211
EOF
212212
./install.sh --silent intel.conf
213213
popd
214-
cat ${HOME}/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpivars.sh
215214
216215
- uses: julia-actions/setup-julia@latest
217216
with:

src/implementations.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,13 @@ function identify_implementation()
107107
elseif startswith(MPI_LIBRARY_VERSION_STRING, "Intel")
108108
impl = IntelMPI
109109

110-
# TODO: figure out how to parse
111110
# "Intel(R) MPI Library 2019 Update 4 for Linux* OS"
112-
if (m = match(r"^Intel\(R\) MPI Library (\d+)", MPI_LIBRARY_VERSION_STRING)) !== nothing
113-
version = VersionNumber(m.captures[1])
111+
if (m = match(r"^Intel\(R\) MPI Library (\d+)(?: Update (\d+))?", MPI_LIBRARY_VERSION_STRING)) !== nothing
112+
if m.captures[2] === nothing
113+
version = VersionNumber(m.captures[1])
114+
else
115+
version = VersionNumber(m.captures[1]*"."*m.captures[2])
116+
end
114117
end
115118

116119
elseif startswith(MPI_LIBRARY_VERSION_STRING, "MVAPICH2")

0 commit comments

Comments
 (0)