My mistake. I see now in my CMake config that OpenMP isn't used (found), so my 'ldd' had no sense.
CMake shows OpenMP installed but isn't part of PrintFinalReport.cmake
Re: CMake shows OpenMP installed but isn't part of PrintFinalReport.cmake
Re: CMake shows OpenMP installed but isn't part of PrintFinalReport.cmake
AFAIK OpenMP is mostly included with the compiler. Both current gcc and clang have support for OpenMP. Gcc through a build-time option and Clang through libomp.Kunda1 wrote: ↑Fri Apr 15, 2022 12:03 pm which openmp package are we using from this list? https://repology.org/projects/?search=o ... es_newest=
Re: CMake shows OpenMP installed but isn't part of PrintFinalReport.cmake
OpenMP is used in FEM in the file FemMesh.cpp: https://github.com/FreeCAD/FreeCAD/search?q=ompMy mistake. I see now in my CMake config that OpenMP isn't used (found), so my 'ldd' had no sense.
Re: CMake shows OpenMP installed but isn't part of PrintFinalReport.cmake
Is it used for Fortran in FEM ?wmayer wrote: ↑Sat Apr 16, 2022 8:55 am OpenMP is used in FEM in the file FemMesh.cpp: https://github.com/FreeCAD/FreeCAD/search?q=omp
@wmayer can you locate the package from this list?Kunda1 wrote: ↑Fri Apr 15, 2022 12:03 pm which openmp package are we using from this list? https://repology.org/projects/?search=o ... es_newest=
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: CMake shows OpenMP installed but isn't part of PrintFinalReport.cmake
No, in FreeCAD we don't have FORTRAN code.Is it used for Fortran in FEM ?
In none of them. As waebli already said OpenMP is directly part of the compiler and CMake's FindOpenMP.cmake file doesn't search for a 3rd party library but checks the possibilities of the compiler and returns the flags of the compiler that must be used to enable it.@wmayer can you locate the package from this list?
So, printing a version number is not possible but in the report it could be mentioned if OpenMP is supported and optionally the name of the compiler flags.
Re: CMake shows OpenMP installed but isn't part of PrintFinalReport.cmake
So, printing a version number is not possible but in the report it could be mentioned if OpenMP is supported and optionally the name of the compiler flags.@wmayer can you locate the package from this list?
[/quote]
Indeed. A little confusing especially since it does output a version number in the CMake process. Just wondering then what is "(found version "4.5")" indicating ? What is v4.5?
I'm for adding a mention of OpenMP (that it's supported + compiler flags)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: CMake shows OpenMP installed but isn't part of PrintFinalReport.cmake
Obviously it's the version of the OpenMP specification: https://www.openmp.org/specifications/
However, on my system it says there is no OpenMP support (clang 6) so I can't say how the output looks on other systems.
Edit:Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
For clang 11 it finds OpenMP support
but doesn't print a version number. Maybe a newer CMake version is required.Found OpenMP_C: -fopenmp=libomp
Found OpenMP_CXX: -fopenmp=libomp
Found OpenMP: TRUE
But anyway after all it's not the most important thing.