perf(openMP): added openMP support

Note that currently this actually slows the code down. Spinning up the threads and tearing them down is expensive
This commit is contained in:
2025-12-06 13:48:12 -05:00
parent 4e2b3cb11f
commit 67dde830af
7 changed files with 314 additions and 132 deletions

View File

@@ -31,3 +31,7 @@ else
message('enabling default visibility for C++ symbols')
add_project_arguments('-fvisibility=default', language: 'cpp')
endif
if get_option('openmp_support')
add_project_arguments('-DGRIDFIRE_USE_OPENMP', language: 'cpp')
endif