@@ -683,9 +683,9 @@ class IntelCompiler(Compiler):
683
683
def __init__ (self , * args , ** kwargs ):
684
684
super ().__init__ (* args , ** kwargs )
685
685
686
- self .cflags .append ("-xHost" )
687
686
platform = kwargs .pop ('platform' , configuration ['platform' ])
688
687
language = kwargs .pop ('language' , configuration ['language' ])
688
+ self .cflags .append ("-xHost" )
689
689
690
690
if configuration ['safe-math' ]:
691
691
self .cflags .append ("-fp-model=strict" )
@@ -703,8 +703,8 @@ def __init__(self, *args, **kwargs):
703
703
if kwargs .get ('mpi' ):
704
704
mpi_distro = sniff_mpi_distro ('mpiexec' )
705
705
if mpi_distro != 'IntelMPI' :
706
- warning ("The MPI compiler `%s` doesn't use the Intel "
707
- "C/C++ compiler underneath" % self .MPICC )
706
+ warning ("Expected Intel MPI distribution with `%s`, but found `%s` "
707
+ % ( self .__class__ . __name__ , mpi_distro ) )
708
708
709
709
def __lookup_cmds__ (self ):
710
710
self .CC = 'icc'
@@ -768,13 +768,6 @@ def __init__(self, *args, **kwargs):
768
768
self .cflags .append ('-gline-tables-only' )
769
769
self .cflags .append ('-fdebug-info-for-profiling' )
770
770
771
- # Make sure the MPI compiler uses `icx` underneath -- whatever the MPI distro is
772
- if kwargs .get ('mpi' ):
773
- mpi_distro = sniff_mpi_distro ('mpiexec' )
774
- if mpi_distro != 'IntelMPI' :
775
- warning ("The MPI compiler `%s` doesn't use the Intel(R) oneAPI "
776
- "`%s` compiler underneath" % self .MPICC , self .CXX )
777
-
778
771
def __lookup_cmds__ (self ):
779
772
# OneAPI HPC ToolKit comes with icpx, which is clang++,
780
773
# and icx, which is clang
0 commit comments