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 3 weeks ago #43875

  • vihang
  • vihang's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 2
Hello,

I am trying to compile the code with most recent intel oneAPI compiler on wsl2 ubuntu. The compilation gets aborted with following error message. Please see the systel.cfg used to compile the code at the end.



- completed: .../telemac-mascaret-v8p4r0/sources/mascaret/API/f90/set_taille_var_mascaret.f90
- completed: .../telemac-mascaret-v8p4r0/sources/mascaret/API/f90/duplicate_etat.f90
- completed: .../telemac-mascaret-v8p4r0/sources/mascaret/API/f90/rezo_interface.f90
- completed: .../sources/mascaret/Deriv/adstack.c
- completed: .../sources/mascaret/API/cpp/apimascaret.c
- completed: .../telemac-mascaret-v8p4r0/builds/UbuntuIntel/lib/libmascaret.a
ld: adbuffer.o: in function `LOOKBIT_':
ifxdN50s7.i:(.text+0xc4): undefined reference to `RESETADLOOKSTACK_'
ld: ifxdN50s7.i:(.text+0x111): undefined reference to `RESETADLOOKSTACK_'
ld: ifxdN50s7.i:(.text+0x137): undefined reference to `LOOKINTEGER4ARRAY_'
ld: adbuffer.o: in function `POPBIT_':
ifxdN50s7.i:(.text+0x219): undefined reference to `POPINTEGER4ARRAY_'
ld: adbuffer.o: in function `POPCONTROL1B_':
ifxdN50s7.i:(.text+0x351): undefined reference to `POPINTEGER4ARRAY_'
ld: adbuffer.o: in function `POPCONTROL2B_':
ifxdN50s7.i:(.text+0x507): undefined reference to `POPINTEGER4ARRAY_'
ld: ifxdN50s7.i:(.text+0x5cb): undefined reference to `POPINTEGER4ARRAY_'
ld: adbuffer.o: in function `POPCONTROL3B_':
ifxdN50s7.i:(.text+0x7e7): undefined reference to `POPINTEGER4ARRAY_'
ld: adbuffer.o:ifxdN50s7.i:(.text+0x8e0): more undefined references to `POPINTEGER4ARRAY_' follow
ld: adbuffer.o: in function `PUSHCHARACTER_':
ifxdN50s7.i:(.text+0x22ca): undefined reference to `PUSHCHARACTERARRAY_'
ld: adbuffer.o: in function `LOOKCHARACTER_':
ifxdN50s7.i:(.text+0x23fe): undefined reference to `RESETADLOOKSTACK_'
ld: ifxdN50s7.i:(.text+0x2429): undefined reference to `LOOKCHARACTERARRAY_'
ld: adbuffer.o: in function `POPCHARACTER_':
ifxdN50s7.i:(.text+0x24d0): undefined reference to `POPCHARACTERARRAY_'
ld: adbuffer.o: in function `PUSHINTEGER4_':
ifxdN50s7.i:(.text+0x2622): undefined reference to `PUSHINTEGER4ARRAY_'
ld: adbuffer.o: in function `LOOKINTEGER4_':
ifxdN50s7.i:(.text+0x274e): undefined reference to `RESETADLOOKSTACK_'
ld: ifxdN50s7.i:(.text+0x2774): undefined reference to `LOOKINTEGER4ARRAY_'
ld: adbuffer.o: in function `POPINTEGER4_':
ifxdN50s7.i:(.text+0x281b): undefined reference to `POPINTEGER4ARRAY_'
ld: adbuffer.o: in function `PUSHINTEGER8_':
ifxdN50s7.i:(.text+0x2978): undefined reference to `PUSHINTEGER8ARRAY_'
ld: adbuffer.o: in function `LOOKINTEGER8_':
ifxdN50s7.i:(.text+0x2a9e): undefined reference to `RESETADLOOKSTACK_'
ld: ifxdN50s7.i:(.text+0x2ac4): undefined reference to `LOOKINTEGER8ARRAY_'
ld: adbuffer.o: in function `POPINTEGER8_':
ifxdN50s7.i:(.text+0x2b6b): undefined reference to `POPINTEGER8ARRAY_'
ld: adbuffer.o: in function `PUSHREAL4_':
ifxdN50s7.i:(.text+0x2cca): undefined reference to `PUSHREAL4ARRAY_'
ld: adbuffer.o: in function `LOOKREAL4_':
ifxdN50s7.i:(.text+0x2dfe): undefined reference to `RESETADLOOKSTACK_'
ld: ifxdN50s7.i:(.text+0x2e24): undefined reference to `LOOKREAL4ARRAY_'
ld: adbuffer.o: in function `POPREAL4_':
ifxdN50s7.i:(.text+0x2ecb): undefined reference to `POPREAL4ARRAY_'
ld: adbuffer.o: in function `PUSHREAL8_':
ifxdN50s7.i:(.text+0x302a): undefined reference to `PUSHREAL8ARRAY_'
ld: adbuffer.o: in function `LOOKREAL8_':
ifxdN50s7.i:(.text+0x315e): undefined reference to `RESETADLOOKSTACK_'
ld: ifxdN50s7.i:(.text+0x3184): undefined reference to `LOOKREAL8ARRAY_'
ld: adbuffer.o: in function `POPREAL8_':
ifxdN50s7.i:(.text+0x322b): undefined reference to `POPREAL8ARRAY_'
ld: adbuffer.o: in function `PUSHCOMPLEX8_':
ifxdN50s7.i:(.text+0x3397): undefined reference to `PUSHCOMPLEX8ARRAY_'
ld: adbuffer.o: in function `LOOKCOMPLEX8_':
ifxdN50s7.i:(.text+0x34ce): undefined reference to `RESETADLOOKSTACK_'
ld: ifxdN50s7.i:(.text+0x34f4): undefined reference to `LOOKCOMPLEX8ARRAY_'
ld: adbuffer.o: in function `POPCOMPLEX8_':
ifxdN50s7.i:(.text+0x359b): undefined reference to `POPCOMPLEX8ARRAY_'
ld: adbuffer.o: in function `PUSHCOMPLEX16_':
ifxdN50s7.i:(.text+0x3707): undefined reference to `PUSHCOMPLEX16ARRAY_'
ld: adbuffer.o: in function `LOOKCOMPLEX16_':
ifxdN50s7.i:(.text+0x383e): undefined reference to `RESETADLOOKSTACK_'
ld: ifxdN50s7.i:(.text+0x3864): undefined reference to `LOOKCOMPLEX16ARRAY_'
ld: adbuffer.o: in function `POPCOMPLEX16_':
ifxdN50s7.i:(.text+0x390b): undefined reference to `POPCOMPLEX16ARRAY_'
ld: adbuffer.o: in function `PRINTTRAFFIC_':
ifxdN50s7.i:(.text+0x3a1a): undefined reference to `PRINTCTRAFFIC_'
ld: ifxdN50s7.i:(.text+0x3a37): undefined reference to `PRINTFTRAFFICINC_'
ld: ifxdN50s7.i:(.text+0x3a4d): undefined reference to `PRINTTOTALTRAFFIC_'
ld: adbuffer.o: in function `PRINTALLBUFFERS_':
ifxdN50s7.i:(.text+0x3c67): undefined reference to `GETBIGCSIZES_'
ld: adbuffer.o: in function `SHOWALLSTACKS_':
ifxdN50s7.i:(.text+0x4c5f): undefined reference to `SHOWRECENTCSTACK_'
ld: apimascaret.o: in function `C_CREATE_MASCARET':
apimascaret.c:(.text+0x13): undefined reference to `create_mascaret_'
ld: apimascaret.o: in function `C_DELETE_MASCARET':
apimascaret.c:(.text+0x3e): undefined reference to `delete_mascaret_'
ld: apimascaret.o: in function `C_SAVE_ETAT_MASCARET':
apimascaret.c:(.text+0x6c): undefined reference to `save_etat_mascaret_'
ld: apimascaret.o: in function `C_SET_ETAT_MASCARET':
apimascaret.c:(.text+0xa5): undefined reference to `set_etat_mascaret_'
ld: apimascaret.o: in function `C_FREE_ALL_SAVE_ETAT_MASCARET':
apimascaret.c:(.text+0xce): undefined reference to `free_all_save_etat_mascaret_'
ld: apimascaret.o: in function `C_FREE_SAVE_ETAT_MASCARET':
apimascaret.c:(.text+0xee): undefined reference to `free_save_etat_mascaret_'
ld: apimascaret.o: in function `C_GET_ERREUR_MASCARET':
apimascaret.c:(.text+0x123): undefined reference to `get_erreur_mascaret_'
ld: apimascaret.o: in function `C_IMPORT_MODELE_MASCARET':
apimascaret.c:(.text+0x90e): undefined reference to `import_modele_mascaret_'
ld: apimascaret.o: in function `C_IMPORT_MODELE_MASCARET_ONEFILE':
apimascaret.c:(.text+0x9be): undefined reference to `import_modele_mascaret_'
ld: apimascaret.o: in function `C_INIT_ETAT_MASCARET':
apimascaret.c:(.text+0xa48): undefined reference to `init_etat_mascaret_'
ld: apimascaret.o: in function `C_INIT_LIGNE_MASCARET':
apimascaret.c:(.text+0xa95): undefined reference to `init_ligne_mascaret_'
ld: apimascaret.o: in function `C_GET_LIGNE':
apimascaret.c:(.text+0xac0): undefined reference to `get_ligne_'
ld: apimascaret.o: in function `C_INIT_LIGNE_TRACER':
apimascaret.c:(.text+0xb05): undefined reference to `init_ligne_tracer_'
ld: apimascaret.o: in function `C_GET_LIGNE_TRACER':
apimascaret.c:(.text+0xb31): undefined reference to `get_ligne_tracer_'
ld: apimascaret.o: in function `C_INIT_ETAT_TRACER':
apimascaret.c:(.text+0xb5c): undefined reference to `init_etat_tracer_'
ld: apimascaret.o: in function `C_CALCUL_MASCARET':
apimascaret.c:(.text+0xbad): undefined reference to `calcul_mascaret_'
ld: apimascaret.o: in function `C_GET_NB_CONDITION_LIMITE_MASCARET':
apimascaret.c:(.text+0xbcd): undefined reference to `get_nb_condition_limite_mascaret_'
ld: apimascaret.o: in function `C_GET_NOM_CONDITION_LIMITE_MASCARET':
apimascaret.c:(.text+0xc02): undefined reference to `get_nom_condition_limite_mascaret_'
ld: apimascaret.o: in function `C_CALCUL_MASCARET_CONDITION_LIMITE':
apimascaret.c:(.text+0xd17): undefined reference to `get_nb_condition_limite_mascaret_'
ld: apimascaret.c:(.text+0x1135): undefined reference to `calcul_mascaret_condition_limite_'
ld: apimascaret.o: in function `C_GET_DESC_VAR_MASCARET':
apimascaret.c:(.text+0x1193): undefined reference to `get_nb_var_mascaret_'
ld: apimascaret.c:(.text+0x11fc): undefined reference to `get_desc_var_mascaret_'
ld: apimascaret.o: in function `C_GET_TYPE_VAR_MASCARET':
apimascaret.c:(.text+0x13bc): undefined reference to `get_type_var_mascaret_'
ld: apimascaret.o: in function `C_GET_TAILLE_VAR_MASCARET':
apimascaret.c:(.text+0x15a6): undefined reference to `get_taille_var_mascaret_'
ld: apimascaret.o: in function `C_SET_TAILLE_VAR_MASCARET':
apimascaret.c:(.text+0x1651): undefined reference to `set_taille_var_mascaret_'
ld: apimascaret.o: in function `C_GET_DOUBLE_MASCARET':
apimascaret.c:(.text+0x16e6): undefined reference to `get_double_mascaret_'
ld: apimascaret.o: in function `C_GET_INT_MASCARET':
apimascaret.c:(.text+0x1786): undefined reference to `get_int_mascaret_'
ld: apimascaret.o: in function `C_GET_BOOL_MASCARET':
apimascaret.c:(.text+0x1826): undefined reference to `get_bool_mascaret_'
ld: apimascaret.o: in function `C_GET_STRING_MASCARET':
apimascaret.c:(.text+0x18d7): undefined reference to `get_string_mascaret_'
ld: apimascaret.o: in function `C_SET_DOUBLE_MASCARET':
apimascaret.c:(.text+0x1a16): undefined reference to `set_double_mascaret_'
ld: apimascaret.o: in function `C_SET_INT_MASCARET':
apimascaret.c:(.text+0x1ab6): undefined reference to `set_int_mascaret_'
ld: apimascaret.o: in function `C_SET_BOOL_MASCARET':
apimascaret.c:(.text+0x1b56): undefined reference to `set_bool_mascaret_'
ld: apimascaret.o: in function `C_SET_STRING_MASCARET':
apimascaret.c:(.text+0x1c3f): undefined reference to `set_string_mascaret_'
ld: apimascaret.o: in function `C_VERSION_MASCARET':
apimascaret.c:(.text+0x1c62): undefined reference to `version_mascaret_'
ld: apimascaret.o: in function `C_IMPORT_XML':
apimascaret.c:(.text+0x1cda): undefined reference to `import_xml_'
ld: apimascaret.o: in function `C_EXPORT_XML':
apimascaret.c:(.text+0x1d61): undefined reference to `export_xml_'
ld: apimascaret.o: in function `C_EXPORT_XML_SAINT_VENANT':
apimascaret.c:(.text+0x1de0): undefined reference to `export_xml_saint_venant_'
ld: apimascaret.o: in function `C_OUVERTURE_BALISE_XML':
apimascaret.c:(.text+0x1eba): undefined reference to `ouverture_balise_xml_'
ld: apimascaret.o: in function `C_EXPORT_VAR_XML':
apimascaret.c:(.text+0x1f4e): undefined reference to `export_var_xml_'
ld: apimascaret.o: in function `C_EXPORT_USERVAR_XML':
apimascaret.c:(.text+0x2099): undefined reference to `export_uservar_xml_'
ld: apimascaret.o: in function `C_FERMETURE_BALISE_XML':
apimascaret.c:(.text+0x212a): undefined reference to `fermeture_balise_xml_'
ld: diff_z_cf12_bwd_sarap.o: in function `PERMAT_B_':
ifxEnjJ2e.i90:(.text+0x56e3): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x56fb): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x673f): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x6757): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0xa1c8): undefined reference to `POPCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0xa1e0): undefined reference to `POPCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0xa309): undefined reference to `POPCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0xa321): undefined reference to `POPCHARACTERARRAY_'
ld: diff_z_cf12_bwd_sarap.o: in function `PERSAR_B_':
ifxEnjJ2e.i90:(.text+0x15b64): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x15b7c): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x15da4): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x15dbc): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x15dde): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x15eb4): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x15ecc): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x15eee): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x16310): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x163d7): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x16497): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x16557): undefined reference to `PUSHREAL8ARRAY_'
ld: diff_z_cf12_bwd_sarap.o:ifxEnjJ2e.i90:(.text+0x16617): more undefined references to `PUSHREAL8ARRAY_' follow
ld: diff_z_cf12_bwd_sarap.o: in function `PERSAR_B_':
ifxEnjJ2e.i90:(.text+0x1b0b7): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1b0cf): undefined reference to `PUSHCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1b184): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1b38d): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1be6c): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1be8d): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1c381): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1c444): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1c47d): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1c494): undefined reference to `POPCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1c4a9): undefined reference to `POPCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1c699): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1c839): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1d6e4): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1e384): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1e447): undefined reference to `POPREAL8ARRAY_'
ld: diff_z_cf12_bwd_sarap.o:ifxEnjJ2e.i90:(.text+0x1eae4): more undefined references to `POPREAL8ARRAY_' follow
ld: diff_z_cf12_bwd_sarap.o: in function `PERSAR_B_':
ifxEnjJ2e.i90:(.text+0x1eafe): undefined reference to `POPCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1eb13): undefined reference to `POPCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1ef3c): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1f0d9): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1f27c): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1f419): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x1f5bc): undefined reference to `POPREAL8ARRAY_'
ld: diff_z_cf12_bwd_sarap.o:ifxEnjJ2e.i90:(.text+0x1fe6c): more undefined references to `POPREAL8ARRAY_' follow
ld: diff_z_cf12_bwd_sarap.o: in function `PERSAR_B_':
ifxEnjJ2e.i90:(.text+0x20192): undefined reference to `POPCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x201a6): undefined reference to `POPCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x2181e): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x2183f): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x2190a): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x219c4): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x219fe): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x21a15): undefined reference to `POPCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x21a2a): undefined reference to `POPCHARACTERARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x21caf): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x21e49): undefined reference to `POPREAL8ARRAY_'
ld: diff_z_cf12_bwd_sarap.o: in function `SARAP_B_':
ifxEnjJ2e.i90:(.text+0x24127): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x2414c): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x24204): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x24a73): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x24c0a): undefined reference to `PUSHREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x250df): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x2510b): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x251b7): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x251d1): undefined reference to `POPREAL8ARRAY_'
ld: ifxEnjJ2e.i90:(.text+0x25c93): undefined reference to `POPREAL8ARRAY_'
ld: diff_z_cf12_bwd_sarap.o:ifxEnjJ2e.i90:(.text+0x25e2d): more undefined references to `POPREAL8ARRAY_' follow
Traceback (most recent call last):
File "/home/vihang/telemac-mascaret-v8p4r0/scripts/python3/compile_telemac.py", line 142, in <module>
main()
File "/home/vihang/telemac-mascaret-v8p4r0/scripts/python3/compile_telemac.py", line 129, in main
compile_cmdf(options.ncsize, modules, options.verbose)
File "/home/vihang/telemac-mascaret-v8p4r0/scripts/python3/compilation/compil_tools.py", line 1299, in compile_cmdf
found_exe = create_exe_files(item, mod,
File "/home/vihang/telemac-mascaret-v8p4r0/scripts/python3/compilation/compil_tools.py", line 485, in create_exe_files
raise TelemacException(\
utils.exceptions.TelemacException: Could not link your executable. Please verify your external library installation or the python script itself.

systel.cfg
# _____ _______________________________
# ____/ TELEMAC Project Definitions /______________________________/
#
# space delimited list of active configurations
#
[Configurations]
configs: UbuntuIntel
#
# _____ ___________________________________________________
# ____/ GENERAL /__________________________________________________/
[general]
modules: system
#
cmd_lib: ar cru <libname> <objs>
#
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
# also possible val_rank: <3 >7 6
cmd_obj_c: icx -c <srcName> -o <objName>
#
# _____ ____________________________________
# ____/ Ubuntu gfortran mpich2 /___________________________________/
[ubugfmpich2]
#
brief: parallel mode, using mpiexec directly (of the MPICH2 package).
The only difference with the scalar versions (debugged) is the presence
of the key mpi_cmdexec and the -DHAVE_MPI compilation directive.
Of course, you also need the key par_cmdexec.
Finally, note that this configuration also works whether
processor is 0 or 1.
#
options: hermes_only
#
f2py_name: f2py3
pyd_fcompiler: ifx
#
mpi_cmdexec: /usr/bin/mpiexec -wdir <wdir> -n <ncsize> <exename>
#
cmd_obj: gfortran -c -cpp -g -fbounds-check -Wall -fbacktrace -finit-real=nan -DHAVE_AED2 -DHAVE_MPI -DHAVE_MUMPS -DHAVE_MED -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_exe: /usr/bin/mpif90 -fconvert=big-endian -frecord-marker=4 -v -lm -o <exename> <objs> <libs>
#
incs_all: -I /usr/lib/mpich/include/ -I /home/telemac/mumps/MUMPS_5.0.0/include/ -I /home/telemac/aed2 -I /home/telemac/aed2/include -I /home/telemac/MED/include/
libs_all: /usr/lib/x86_64-linux-gnu/libmpich.so -L /home/telemac/mumps/MUMPS_5.0.0/lib -ldmumps -lmumps_common -lpord /home/telemac/mumps/SCALAPACK/libscalapack.a -L /home/telemac/mumps/BLAS-3.8.0 /home/telemac/mumps/BLAS-3.8.0/blas_LINUX.a /home/telemac/mumps/BLACS/LIB/blacs_MPI-LINUX-0.a /home/telemac/mumps/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /home/telemac/mumps/BLACS/LIB/blacs_MPI-LINUX-0.a -lpthread /home/telemac/metis-5.0.2/libmetis.a /home/telemac/aed2/libaed2.a /home/telemac/MED/lib/libmed.so /home/telemac/hdf5-1.10.5/lib/libhdf5.so
#
# _____ _________________________________________
# ____/ Other Definitions /________________________________________/
#
#
# ____/ Ubuntu gfortran scalar /___________________________________/
[ubugfortrans]
#
brief: scalar mode, Fortran optimisation 3.
TELEMAC will work whether processor is 0 or 1
#
cmd_obj: gfortran -c -cpp -O3 -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_exe: gfortran -fconvert=big-endian -frecord-marker=4 -v -o <exename> <objs> <libs>
#
#
# ____/ Ubuntu gfortran scalar debug/______________________________/
[ubugfortransdbg]
#
brief: scalar mode, Fortran debug mode.
TELEMAC will work whether processor is 0 or 1
#
cmd_obj: gfortran -c -cpp -g -fbounds-check -Wall -fbacktrace -finit-real=nan -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_exe: gfortran -fconvert=big-endian -frecord-marker=4 -v -o <exename> <objs> <libs>
#
#

[UbuntuIntel]
#
cmd_obj: ifx -c -O3 -nologo -cpp -names uppercase -convert big_endian -traceback <mods> <incs> <f95name>
cmd_exe: ifx -nologo -convert big-indian -traceback -o <exename> <objs> <libs>
#
#

# _____ ________________________________________
# ____/ End of Definitions /_______________________________________/
#
The administrator has disabled public write access.

Error compiling with Intel OneAPI 2024.0.2 10 months 3 weeks ago #43876

  • vihang
  • vihang's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 2
I wish to add that I am compiling telemac v8p4r0 version of the telemac. Any help would be greatly appreciated.

Sincerely,

Vihang
The administrator has disabled public write access.

Error compiling with Intel OneAPI 2024.0.2 10 months 3 weeks ago #43877

  • CAMERI_Shai
  • CAMERI_Shai's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 46
  • Thank you received: 4
I am trying to do exactly the same right now!

I have one correction to your .cfg file (at least you should try it):
pyd_fcompiler: intelem
The administrator has disabled public write access.

Error compiling with Intel OneAPI 2024.0.2 10 months 3 weeks ago #43880

  • vihang
  • vihang's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 2
Hi,

Thank you, I tried that one as well. It has no impact on the compilatin process. I am still trying to figure out.

Vihang
The administrator has disabled public write access.

Error compiling with Intel OneAPI 2024.0.2 10 months 3 weeks ago #43882

  • vihang
  • vihang's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 2
Hi,

I modified the cfg file as follows and it compiled the code without python api support with intel one api. I am still clueless why the compilation fails for python api. In my view the problem was with following command.

gcc -c -fPIC <srcName> -o <objName>.

It was the capital N in name making the difference.

Thanks for all who read and tried to resolve the issue. I am partially successful and hence sharing the solution that I have obtained so that community can benefit.

regards,

Vihang

cfg file:

# _____ _______________________________
# ____/ TELEMAC Project Definitions /______________________________/
#
[Configurations]
#configs: doxydocs
#configs: wslgfortran
configs: wslintel

[general]
language: 2
f2py_name: f2py3

# _____ ____________________________________
# ____/ windows wsl ubuntu intel 2024.0.2 scalar /___________________________________/
[wslintel]
#
root: /home/vihang/Telemac
version: v7p0
language: 2
modules: system
options:
#
cmd_obj: ifx -c -O3 -132 -fPIC -convert big_endian -cpp <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: ifx -convert big_endian -132 -v -o <exename> <objs> <libs>
#
mods_all: -I <config>
libs_all:
incs_all:
#
pyd_fcompiler: intelem
sfx_zip: .gztar
sfx_lib: .a
sfx_obj: .o
sfx_mod: .mod
sfx_exe:
#
val_root: <root>/examples
val_rank: all
cmd_obj_c: icx -c -fPIC <srcName> -o <objName>
# also possible val_rank: <3 >7 6
#


# _____ ____________________________________
# ____/ windows wsl ubuntu gfortran scalar /___________________________________/
[wslgfortran]
#
root: /home/vihang/Telemac
version: v7p0
language: 2
modules: system
options:
#
cmd_obj: gfortran -c -O3 -cpp -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran -fconvert=big-endian -frecord-marker=4 -v -o <exename> <objs> <libs>
#
mods_all: -I <config>
libs_all:
incs_all:
#
pyd_fcompiler: gnu95
sfx_zip: .zip
sfx_lib: .a
sfx_obj: .o
sfx_mod: .mod
sfx_exe:
cmd_obj_c: gcc -c -fPIC <srcName> -o <objName>
#
val_root: <root>/examples
val_rank: all
# also possible val_rank: <3 >7 6
#
The administrator has disabled public write access.

Error compiling with Intel OneAPI 2024.0.2 10 months 3 weeks ago #43883

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

it looks like the same cfg file as before, with

cmd_obj_c: icx -c -fPIC <srcName> -o <objName>

how did you change it?

Shai
The administrator has disabled public write access.

Error compiling with Intel OneAPI 2024.0.2 10 months 3 weeks ago #43884

  • vihang
  • vihang's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 2
My apologies. I forgot to add that telemac version I compiled was v8p5r0. The problem with v8p4 is still there with intel compiler. Anyways, there is some good news with intel compiler and telemac. I am still unaware of the details of compilation scripts. I, therefore, can not comment on why the last configuration works for intel. Furthermore, I am also unable to comment on why python api build fails for gfortran and not for intel oneAPI. I am still exploring these things.

Vihang
The administrator has disabled public write access.

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

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 128
  • Thank you received: 64
I am not aware of any successful compilation of TELEMAC with the Intel ifx compiler. Therefore, for the time being, you should stick with Intel classic Fortran compiler, ifort. However, as Intel will be dropping support for ifort in October 2024, we will be adding support for ifx later this year.
The administrator has disabled public write access.
The following user(s) said Thank You: CAMERI_Shai

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

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

thank you for the followup!
also, what of the mpi installation? which compiler should work?

Respectfully,
Shai
The administrator has disabled public write access.

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

  • vihang
  • vihang's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 2
Dear Dr Boris,

Thank you for your interest in this thread. I am very happy to inform you that I have successfully compiled the code with latest Intel OneAPI HPC toolkit in serial mode. I don't know if the code requires any further modifications.

The code I have obtained is from trunk on github. I have tried the above attached cfg file for previous release of v8p4 and found to work fine.

I have not written MPI version yet as I am yet to install metis on my computer. However, it should not be difficult for an experienced user.

Just to let you know my computer config:
Operating system: Windows 10
virtual machine : WSL2 - Ubuntu 22.04.3 LTS
CPU: Intel Xeon E5-2680 v4 @ 2.40GHz
RAM: 32 GB
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.