Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Error compiling with Intel OneAPI 2024.0.2

Error compiling with Intel OneAPI 2024.0.2 10 months 2 weeks ago #43896

  • CAMERI_Shai
  • CAMERI_Shai's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 46
  • Thank you received: 4
Hi,

I still need some help with the intel compilation.

I was able to compile with Intel Python using the following cfg:
options:    parallel mpi 
cmd_obj_c: icx -c -fPIC <srcName> -o <objName>
mpi_cmdexec:   mpirun -w <wdir> -np <ncsize> --hostfile $PBS_NODEFILE  <exename>
cmd_obj:    mpiifort -c -fpp -O3 -DHAVE_MPI -convert big_endian -assume byterecl <mods> <incs> <f95name>
cmd_lib:    ar cru <libname> <objs>
cmd_exe:    mpiifort -convert big_endian -lpthread -v -o <exename> <objs> <libs>


libs_all:    /usr/local/intel21/mpi/2021.3.0/lib/libmpifort.so /usr/local/metis-5.1.0/libmetis/libmetis.a
incs_all:   -I /usr/local/intel21/mpi/2021.3.0/
libs_partel: /usr/local/metis-5.1.0/libmetis/libmetis.a

but when I try to compile a case with a user_fortran routine (user_condi3d_trac.f), a file is created in the ../rundir/user_fortran/user_condi3d_trac.o
and I get an error msg saying
File not found: '../rundir/user_fortran/user_condi3d_trac.f.o'

what am I doing wrong with the cmd flags?
The administrator has disabled public write access.

Error compiling with Intel OneAPI 2024.0.2 10 months 2 weeks ago #43900

  • vihang
  • vihang's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 2
Try compilation with -fPIC FLAG with mpif90. I believe that will solve the issue.
The administrator has disabled public write access.

Error compiling with Intel OneAPI 2024.0.2 10 months 1 week ago #43945

  • CAMERI_Shai
  • CAMERI_Shai's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 46
  • Thank you received: 4
here's what worked for me,
[Configurations]
configs:    intelFortranHPC_mpiifort 
[general]
modules:    system
mods_all:   -I <config>
sfx_zip:    .gztar
sfx_lib:    .a
sfx_obj:    .o
sfx_mod:    .mod
sfx_exe:
val_root:   <root>/examples
val_rank:   all


root:       /home/shaiashe/telemac-mascaret/v8p5r0/
version: v8p5r0

#


[intelFortranHPC_mpiifort]

fflags_intel_new: -cpp -convert big_endian
fflags_intel: [fflags_intel_new] -DNO_INQUIRE_SIZE
sfx_lib:    .so
modules:    system -mascaret
options:    mpi parallel
#
f2py_name: f2py
pyd_fcompiler: intelem
cflags_ompi:    -DHAVE_MPI
obj_flags: -O2 -fPIC [fflags_intel] [cflags_ompi]

lib_flags: -fPIC -shared -fopenmp [fflags_intel] 
#
exe_flags: -fPIC -fopenmp
cmd_lib:    mpiifort [lib_flags] -o <libname> <objs>
cmd_obj:    mpiifort -c [obj_flags] <mods> <incs> <f95name>
cmd_exe:    mpiifort -O2 [exe_flags] -o <exename> <objs> <libs>
#
incs_all: -I /usr/local/intel21/mpi/latest/include/ -I /usr/local/metis-5.1.0/include/
libs_all:    /usr/local/intel21/mpi/2021.3.0/lib/libmpifort.so /usr/local/metis-5.1.0/libmetis/libmetis.a
cmd_obj_c: icc -c [cflags] <srcName> -o <objName>
cflags: -fPIC
#
mpi_cmdexec:    mpirun -np <ncsize> <exename>
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.