Page 3 of 3

Re: Library not found with custom compile file

Posted: Tue Oct 08, 2024 4:55 pm
by fracenvi
hello,

I do run the code from an ssh connection since i have no access to the machine at the moment and is a standard Ubuntu machine.

When adding the --initalize option i actually have the run_solver and the cs_solver executable files (attached here), the following is the output of "ldd cs_solver":

Screenshot 2024-10-08 alle 16.54.12.png

Whereas when running ./cs_solver nothing prints out.

Which might be the python routines you were thinking about?

Regards and again thanks for the help,
Francesco

Re: Library not found with custom compile file

Posted: Fri Oct 11, 2024 12:01 am
by Yvan Fournier
Hello,

It is really surprising that you get no output at all, and no error message either. Perhaps the linked library has some initialization step that redirects output or changes the working directory.

I guess the next step would be to run the code under a debugger, either using code_saturne's debug wrapper, or simply running cs_solver it under gdb directly (do not forget et export LD_LIBRARY_PATH as in run_solver). Of course, using a debug build for this is recommended, to view the matching source code.

Best regards,

Yvan Fournier

Re: Library not found with custom compile file

Posted: Thu Oct 17, 2024 2:16 pm
by fracenvi
Hello Yvan,

Actually i did manage to find which was the mistake, it related to my C++ implementation of the neural network. After debugging it, now the code is actually running smoothly, giving back all of the needed output files.

Thanks for the help and regards,
Francesco