Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Fred Wright
CMake
Commits
90941a18
Commit
90941a18
authored
Nov 02, 2020
by
William R. Dieter
Committed by
Brad King
Jan 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FindMPI: Add support for IntelLLVM
Signed-off-by:
William R. Dieter
<
william.r.dieter@intel.com
>
parent
67dfc655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
Modules/FindMPI.cmake
Modules/FindMPI.cmake
+11
-1
No files found.
Modules/FindMPI.cmake
View file @
90941a18
...
...
@@ -294,6 +294,11 @@ if(WIN32)
set
(
_MPI_Intel_CXX_COMPILER_NAMES mpiicpc.bat
)
set
(
_MPI_Intel_Fortran_COMPILER_NAMES mpiifort.bat mpif77.bat mpif90.bat
)
# Intel MPI compiler names
set
(
_MPI_IntelLLVM_C_COMPILER_NAMES mpiicc.bat
)
set
(
_MPI_IntelLLVM_CXX_COMPILER_NAMES mpiicpc.bat
)
set
(
_MPI_IntelLLVM_Fortran_COMPILER_NAMES mpiifort.bat mpif77.bat mpif90.bat
)
# Intel MPI compiler names for MSMPI
set
(
_MPI_MSVC_C_COMPILER_NAMES mpicl.bat
)
set
(
_MPI_MSVC_CXX_COMPILER_NAMES mpicl.bat
)
...
...
@@ -302,6 +307,11 @@ else()
set
(
_MPI_Intel_C_COMPILER_NAMES mpiicc
)
set
(
_MPI_Intel_CXX_COMPILER_NAMES mpiicpc mpiicxx mpiic++
)
set
(
_MPI_Intel_Fortran_COMPILER_NAMES mpiifort mpiif95 mpiif90 mpiif77
)
# Intel compiler names
set
(
_MPI_IntelLLVM_C_COMPILER_NAMES mpiicc
)
set
(
_MPI_IntelLLVM_CXX_COMPILER_NAMES mpiicpc mpiicxx mpiic++
)
set
(
_MPI_IntelLLVM_Fortran_COMPILER_NAMES mpiifort mpiif95 mpiif90 mpiif77
)
endif
()
# PGI compiler names
...
...
@@ -327,7 +337,7 @@ set(_MPI_XL_Fortran_COMPILER_NAMES mpixlf95 mpixlf95_r mpxlf95 mpxlf95
# pick up the right settings for it.
foreach
(
LANG IN ITEMS C CXX Fortran
)
set
(
_MPI_
${
LANG
}
_COMPILER_NAMES
""
)
foreach
(
id IN ITEMS GNU Intel MSVC PGI XL
)
foreach
(
id IN ITEMS GNU Intel
IntelLLVM
MSVC PGI XL
)
if
(
NOT CMAKE_
${
LANG
}
_COMPILER_ID OR CMAKE_
${
LANG
}
_COMPILER_ID STREQUAL id
)
foreach
(
_COMPILER_NAME IN LISTS _MPI_
${
id
}
_
${
LANG
}
_COMPILER_NAMES
)
list
(
APPEND _MPI_
${
LANG
}
_COMPILER_NAMES
${
_COMPILER_NAME
}${
MPI_EXECUTABLE_SUFFIX
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment