Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.

Compiling HPL with mpiicc error "eval: icc: not found"

willowec
Beginner
772 Views

Hello,

 

I have installed Intel's oneAPI Math Kernel Library on a Debian GNU/Linux 12 (bookworm) system with an Intel Core I7. I have successfully compile HPL using OpenMPI/OpenBLAS, and have successfully tested the precompiled version of Intel's HPL in ~/intel/oneapi/mkl/2024.2/share/mkl/benchmarks/mp_linpack/. I am now attempting to build HPL from source using Intel's MKL and MPI, but have run into an error that seems to imply I need to install the now deprecated "icc" compiler, though I am not sure where to find it or how to install it. Can anybody provide me with some help?

 

My Make.Linux_Intel64 file looks like this:

SHELL        = /bin/sh
#
CD           = cd
CP           = cp
LN_S         = ln -fs
MKDIR        = mkdir -p
RM           = /bin/rm -f
TOUCH        = touch
#
# ----------------------------------------------------------------------
# - Platform identifier ------------------------------------------------
# ----------------------------------------------------------------------
#
ARCH         = Linux_Intel64
#
# ----------------------------------------------------------------------
# - HPL Directory Structure / HPL library ------------------------------
# ----------------------------------------------------------------------
#
TOPdir       = $(HOME)/hpl
INCdir       = $(TOPdir)/include
BINdir       = $(TOPdir)/bin/$(ARCH)
LIBdir       = $(TOPdir)/lib/$(ARCH)
#
HPLlib       = $(LIBdir)/libhpl.a 
#
# ----------------------------------------------------------------------
# - Message Passing library (MPI) --------------------------------------
# ----------------------------------------------------------------------
# MPinc tells the  C  compiler where to find the Message Passing library
# header files,  MPlib  is defined  to be the name of  the library to be
# used. The variable MPdir is only used for defining MPinc and MPlib.
#
# MPdir        = /opt/intel/mpi/4.1.0
# MPinc        = -I$(MPdir)/include64
# MPlib        = $(MPdir)/lib64/libmpi.a
#
# ----------------------------------------------------------------------
# - Linear Algebra library (BLAS or VSIPL) -----------------------------
# ----------------------------------------------------------------------
# LAinc tells the  C  compiler where to find the Linear Algebra  library
# header files,  LAlib  is defined  to be the name of  the library to be
# used. The variable LAdir is only used for defining LAinc and LAlib.
#
LAdir        = $(MKLROOT)
ifndef  LAinc
LAinc        = $(LAdir)/mkl/include
endif
ifndef  LAlib
LAlib        = -L$(LAdir)/mkl/lib/intel64 \
               -Wl,--start-group \
               $(LAdir)/lib/intel64/libmkl_intel_lp64.a \
               $(LAdir)/lib/intel64/libmkl_intel_thread.a \
               $(LAdir)/lib/intel64/libmkl_core.a \
               -Wl,--end-group -lpthread -ldl
endif
#
# ----------------------------------------------------------------------
# - F77 / C interface --------------------------------------------------
# ----------------------------------------------------------------------
# You can skip this section  if and only if  you are not planning to use
# a  BLAS  library featuring a Fortran 77 interface.  Otherwise,  it  is
# necessary  to  fill out the  F2CDEFS  variable  with  the  appropriate
# options.  **One and only one**  option should be chosen in **each** of
# the 3 following categories:
#
# 1) name space (How C calls a Fortran 77 routine)
#
# -DAdd_              : all lower case and a suffixed underscore  (Suns,
#                       Intel, ...),                           [default]
# -DNoChange          : all lower case (IBM RS6000),
# -DUpCase            : all upper case (Cray),
# -DAdd__             : the FORTRAN compiler in use is f2c.
#
# 2) C and Fortran 77 integer mapping
#
# -DF77_INTEGER=int   : Fortran 77 INTEGER is a C int,         [default]
# -DF77_INTEGER=long  : Fortran 77 INTEGER is a C long,
# -DF77_INTEGER=short : Fortran 77 INTEGER is a C short.
#
# 3) Fortran 77 string handling
#
# -DStringSunStyle    : The string address is passed at the string loca-
#                       tion on the stack, and the string length is then
#                       passed as  an  F77_INTEGER  after  all  explicit
#                       stack arguments,                       [default]
# -DStringStructPtr   : The address  of  a  structure  is  passed  by  a
#                       Fortran 77  string,  and the structure is of the
#                       form: struct {char *cp; F77_INTEGER len;},
# -DStringStructVal   : A structure is passed by value for each  Fortran
#                       77 string,  and  the  structure is  of the form:
#                       struct {char *cp; F77_INTEGER len;},
# -DStringCrayStyle   : Special option for  Cray  machines,  which  uses
#                       Cray  fcd  (fortran  character  descriptor)  for
#                       interoperation.
#
F2CDEFS      = -DAdd__ -DF77_INTEGER=int -DStringSunStyle
#
# ----------------------------------------------------------------------
# - HPL includes / libraries / specifics -------------------------------
# ----------------------------------------------------------------------
#
HPL_INCLUDES = -I$(INCdir) -I$(INCdir)/$(ARCH) -I$(LAinc) $(MPinc)
HPL_LIBS     = $(HPLlib) $(LAlib) $(MPlib)
#
# - Compile time options -----------------------------------------------
#
# -DHPL_COPY_L           force the copy of the panel L before bcast;
# -DHPL_CALL_CBLAS       call the cblas interface;
# -DHPL_CALL_VSIPL       call the vsip  library;
# -DHPL_DETAILED_TIMING  enable detailed timers;
#
# By default HPL will:
#    *) not copy L before broadcast,
#    *) call the BLAS Fortran 77 interface,
#    *) not display detailed timing information.
#
HPL_OPTS     = -DHPL_DETAILED_TIMING -DHPL_PROGRESS_REPORT
#
# ----------------------------------------------------------------------
#
HPL_DEFS     = $(F2CDEFS) $(HPL_OPTS) $(HPL_INCLUDES)
#
# ----------------------------------------------------------------------
# - Compilers / linkers - Optimization flags ---------------------------
# ----------------------------------------------------------------------
#
CC       = $(HOME)/intel/oneapi/mpi/2021.12/bin/mpiicc
CCNOOPT  = $(HPL_DEFS)
OMP_DEFS = -openmp
CCFLAGS  = $(HPL_DEFS) -O3 -w -fopenmp -z noexecstack -z relro -z now -Wall
#
# On some platforms,  it is necessary  to use the Fortran linker to find
# the Fortran internals used in the BLAS library.
#
LINKER       = $(CC)
LINKFLAGS    = $(CCFLAGS) $(OMP_DEFS) -mt_mpi
#
ARCHIVER     = ar
ARFLAGS      = r
RANLIB       = echo

When I run make arch=Linux_Intel64, this is the error I get:

...

make[1]: Leaving directory '/home/willow/hpl'
make -f Make.top refresh_tst     arch=Linux_Intel64
make[1]: Entering directory '/home/willow/hpl'
cp makes/Make.matgen   testing/matgen/Linux_Intel64/Makefile
cp makes/Make.timer    testing/timer/Linux_Intel64/Makefile
cp makes/Make.pmatgen  testing/pmatgen/Linux_Intel64/Makefile
cp makes/Make.ptimer   testing/ptimer/Linux_Intel64/Makefile
cp makes/Make.ptest    testing/ptest/Linux_Intel64/Makefile
make[1]: Leaving directory '/home/willow/hpl'
make -f Make.top build_src       arch=Linux_Intel64
make[1]: Entering directory '/home/willow/hpl'
( cd src/auxil/Linux_Intel64;         make )
make[2]: Entering directory '/home/willow/hpl/src/auxil/Linux_Intel64'
/home/willow/intel/oneapi/mpi/2021.12/bin/mpiicc -o HPL_dlacpy.o -c -DAdd__ -DF77_INTEGER=int -DStringSunStyle -DHPL_DETAILED_TIMING -DHPL_PROGRESS_REPORT -I/home/willow/hpl/include -I/home/willow/hpl/include/Linux_Intel64 -I/home/willow/intel/oneapi/mkl/2024.2/mkl/include  -O3 -w -fopenmp -z noexecstack -z relro -z now -Wall  ../HPL_dlacpy.c
/home/willow/intel/oneapi/mpi/2021.12/bin/mpiicx: 1: eval: icc: not found
make[2]: *** [Makefile:79: HPL_dlacpy.o] Error 127
make[2]: Leaving directory '/home/willow/hpl/src/auxil/Linux_Intel64'
make[1]: *** [Make.top:54: build_src] Error 2
make[1]: Leaving directory '/home/willow/hpl'
make: *** [Makefile:72: build] Error 2

Thank you,

Willow

0 Kudos
0 Replies
Reply