mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: provide openmp compile and link flags.
- the USE_OMP preprocessor symbol is also defined with the openmp compile flag to allow conditional compilation of openmp-specific code.
This commit is contained in:
@ -42,18 +42,11 @@
|
||||
# An Int64 OpenFOAM version can use it, but the mesh size is limited
|
||||
# accordingly.
|
||||
#
|
||||
# If KaHIP was compiled with openmp, you may need additional
|
||||
# compile or link flags in KAHIP_COMP_FLAGS KAHIP_LINK_FLAGS
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
||||
|
||||
KAHIP_VERSION=kahip-2.00
|
||||
export KAHIP_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$KAHIP_VERSION
|
||||
|
||||
# Adjust as required
|
||||
# export KAHIP_COMP_FLAGS="-fopenmp"
|
||||
export KAHIP_LINK_FLAGS="-lgomp"
|
||||
|
||||
# END OF (NORMAL) USER EDITABLE PART
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user