ifcplusplus icon indicating copy to clipboard operation
ifcplusplus copied to clipboard

get Parallel ifc reader on multi-core CPU's on Linux with cmake an gcc

Open berndhahnebach opened this issue 7 years ago • 1 comments

Has someone an idea or some hint how to archive this by cmake and gnu gcc on linux?

bernd

berndhahnebach avatar May 18 '18 20:05 berndhahnebach

enabling OpenMP in gcc needs -fopenmp as far as I know (It implies -pthreads, so it should automatically compile and link against that too: https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html#C-Dialect-Options).

Plus the IFCpp define for the OpenMP directives, which is ENABLE_OPENMP.

That should do it, as far as I know.

loebl avatar May 21 '18 16:05 loebl