Welcome, Guest
Username: Password: Remember me

TOPIC: API compile error and MPI python3 error

API compile error and MPI python3 error 5 years 7 months ago #33433

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Hi all
I have an error at the second part f2py during compilation of the API which I would appreciate help with. Have added a text output of the error.

Secondly when I run an MPI version I have ann error (below) during checking of parallisation from run_hpc_full where the cfgname is not passed.

Traceback (most recent call last):
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/runcode.py", line 292, in <module>
main(None)
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/runcode.py", line 275, in main
run_study(cas_file, code_name, options)
File "/gpfs/home/e088/telemac_80/v8p0r2/scripts/python3/execution/run_cas.py", line 142, in run_study
run_hpc_cas(my_study, options)
File "/gpfs/home/e088/telemac_80/v8p0r2/scripts/python3/execution/run_cas.py", line 124, in run_hpc_cas
my_study.run(options)
File "/gpfs/home/e088/telemac_80/v8p0r2/scripts/python3/execution/study.py", line 576, in run
self.run_hpc_full(options)
File "/gpfs/home/e088/telemac_80/v8p0r2/scripts/python3/execution/study.py", line 496, in run_hpc_full
runcmd = runcmd + ' -c ' + options.cfgname
AttributeError: 'Namespace' object has no attribute 'cfgname'

I'm using "runcode.py -c <config> telemac3d -s <steering file>" to start the run.

Have also attached config file.
Help would be appreciated.
John
Attachments:
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 7 months ago #33443

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

For the api issue it says it cannot find -lapi.
Can you post what you added to your environment ?
You can have a look at configs/pysource.template.sh to check that you have the proper environment setting.

For the second one this is a bug thanks for finding it I have pushed the correction on the trunk.

Cheers
Yoann
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 7 months ago #33445

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Hi Yoann
Thanks for checking this.
Attached output from printenv and my pysource file.
I'm using usual selection of compilers/libraries for this cluster.
John
Attachments:
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 6 months ago #33508

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
I think I found the issue.
You are not compiling the libraries in dynamic in your systel.cfg hence the issue with libapi.
Have a look at the systel.edf.cfg for how to compile in dynamic.
That should solve the compilation error.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 3 months ago #34375

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Hi Youan
I have reconfigured a cfg file (attached) for dynamic libraries but I get an error during mpi compilation and linking so I have missed something. Most .so libraries are present - but special4api.so , special4damocles.so and special4artemis.so are missing. This is the point it fails. Can you suggest anything please?

John
Error is:
- completed: .../v8p0r2/sources/api/homere_api.F
/bin/sh: -c: line 0: syntax error near unexpected token `newline'
/bin/sh: -c: line 0: `mpif90 -fPIC -shared -cpp -o /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/lib/special4api.so <obs>'
Traceback (most recent call last):
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/compile_telemac.py", line 138, in <module>
main()
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/compile_telemac.py", line 126, in main
compile_cmdf(options.ncsize, modules)
File "/gpfs/home/e088/telemac_80/v8p0r2/scripts/python3/compilation/compil_tools.py", line 1236, in compile_cmdf
'\n +> failed: ' + file_name + '\n')
utils.exceptions.TelemacException:
+> failed: .../v8p0r2/builds/subpar/lib/special4api.so
Attachments:
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 3 months ago #34376

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
There is a typo in your systel.cfg
in cmd_lib in should be <objs> and not <obs>.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 3 months ago #34378

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
AHHH! thanks. I did not spot that.
I still have an error though at special4api.so:

- completed: .../v8p0r2/sources/api/example_cpl_t2d_sis.f
gfortran: error: ./declarations_special.o: No such file or directory
gfortran: error: ./plante.o: No such file or directory
gfortran: error: ./check_allocate.o: No such file or directory
gfortran: error: ./print_header.o: No such file or directory
gfortran: error: ./extens.o: No such file or directory
gfortran: error: ./get_free_id.o: No such file or directory
gfortran: error: ./get_nodes_per_element.o: No such file or directory
gfortran: error: ./write_error.o: No such file or directory
gfortran: error: ./check_call.o: No such file or directory
gfortran: error: ./blanc2uscore.o: No such file or directory
gfortran: error: ./sumtwo.o: No such file or directory
gfortran: error: ./gracestop.o: No such file or directory
gfortran: error: ./skip_comment_line.o: No such file or directory
Traceback (most recent call last):
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/compile_telemac.py", line 138, in <module>
main()
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/compile_telemac.py", line 126, in main
compile_cmdf(options.ncsize, modules)
File "/gpfs/home/e088/telemac_80/v8p0r2/scripts/python3/compilation/compil_tools.py", line 1236, in compile_cmdf
'\n +> failed: ' + file_name + '\n')
utils.exceptions.TelemacException:
+> failed: .../v8p0r2/builds/subpar/lib/special4api.so
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 3 months ago #34380

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
You need to add:
modules: system

in subpar (in general you have modules: clean system -api)
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 3 months ago #34382

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
I'm still getting the same error Youan.
It fails at example_cpl_t2d_sis.f. I must have a path wrong somewhere? Have attached amended cfg

- completed: .../v8p0r2/sources/api/example_cpl_t2d_sis.f
gfortran: error: ./declarations_special.o: No such file or directory
gfortran: error: ./plante.o: No such file or directory
gfortran: error: ./check_allocate.o: No such file or directory
gfortran: error: ./print_header.o: No such file or directory
gfortran: error: ./extens.o: No such file or directory
gfortran: error: ./get_free_id.o: No such file or directory
gfortran: error: ./get_nodes_per_element.o: No such file or directory
gfortran: error: ./write_error.o: No such file or directory
gfortran: error: ./check_call.o: No such file or directory
gfortran: error: ./blanc2uscore.o: No such file or directory
gfortran: error: ./sumtwo.o: No such file or directory
gfortran: error: ./gracestop.o: No such file or directory
gfortran: error: ./skip_comment_line.o: No such file or directory
Traceback (most recent call last):
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/compile_telemac.py", line 138, in <module>
main()
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/compile_telemac.py", line 126, in main
compile_cmdf(options.ncsize, modules)
Attachments:
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 3 months ago #34384

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
I think you are missing cmd_obj and cmd_exe in subpar try adding:
cmd_obj:    [fc] -c -cpp [obj_flags] <mods> <incs> <f95name>
cmd_exe:    [fc] [exe_flags] <objs> <libs> -o <exename>
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
Moderators: borisb

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