Page 1 of 1
ParMETIS not found
Posted: Fri Jul 18, 2025 4:49 pm
by fracenvi
Hello,
I'm trying to run a case where mesh partitioning is required and i have the following error:
Code: Select all
/home/cenvinzf@coria.fr/Desktop/code_saturne_coria-HuuTri_dev/code_saturne/src/mesh/cs_partition.c:2934: Fatal error.
Partitioning with METIS required but neither
ParMETIS nor METIS is available.
Yet, the code has been installed including ParMETIS library, so i can't really figure out what might be causing this issue. Does anybody have a guess?
Thanks for the help,
Francesco
Re: ParMETIS not found
Posted: Fri Jul 18, 2025 6:47 pm
by Yvan Fournier
Hello,
Looking at your install_saturne.log file, it seems that METIS/ParMetis support was not detected correctly, so you may have an issue in the provided path or a compatibility issue (you would need to check the config.log file in the code_saturne build directory to determine the details).
In any case, you should probably be fine without ParMETIS, using either PT-Scotch or the built-in space-filling curve-based partitioner (with best results usually obtained with PT-Scotch, but this depends on the mesh).
Best regards,
Yvan
Re: ParMETIS not found
Posted: Mon Jul 21, 2025 3:36 pm
by fracenvi
Hello Yvan,
Actually i noticed that this error appears only when i try to run a case which involves the C++ implementation of PyTorch (i'm trying to run an ANN inference inside the code). To test it, i tried to run a case without implementing PyTorch and with the same code configuration, and the error doesn't seem to appear.
Is there a possible conflict between PyTorch and some of Metis dependencies?
I posted the cs_user_script.py file as well to give context.
Thanks for the help,
Francesco
Re: ParMETIS not found
Posted: Tue Jul 22, 2025 3:15 am
by Yvan Fournier
Hello,
In your install.log, you can see that ParMetis support is not available.
For details to understand why the detection failed in that build, you need to check the config.log file in the code_saturne build directory.
Best regards,
Yvan