mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
CONFIG: adjust intel compiler and mpi settings (#2056)
- largely as per patch from Jong-Gwan (Jason) Do
NB: the intel-one setup adds in paths for intelmpi.
Its mpicc version does not harmonize with the OpenFOAM
system openmpi setup (using mpicc --showme:link).
Needs adjustment, or use intelmpi instead.
- update name mappings for newer gcc, clang versions
This commit is contained in:
10
wmake/rules/General/Icx/c
Normal file
10
wmake/rules/General/Icx/c
Normal file
@ -0,0 +1,10 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cc = icx
|
||||
|
||||
cARCH =
|
||||
cDBUG =
|
||||
cOPT = -O2
|
||||
cWARN = $(FOAM_EXTRA_CFLAGS)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
24
wmake/rules/General/Icx/c++
Normal file
24
wmake/rules/General/Icx/c++
Normal file
@ -0,0 +1,24 @@
|
||||
SUFFIXES += .C .cc .cpp .cxx
|
||||
|
||||
CC = icpx -std=c++11
|
||||
|
||||
c++ARCH =
|
||||
c++DBUG =
|
||||
c++OPT = -O2
|
||||
ptFLAGS = -DNoRepository
|
||||
|
||||
# - Standard warnings
|
||||
# - Less restrictive warnings (may be needed for flex++, CGAL, etc.).
|
||||
|
||||
c++WARN = \
|
||||
-Wall -Wextra \
|
||||
-Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof \
|
||||
-Wno-unknown-pragmas \
|
||||
-Wno-undefined-var-template \
|
||||
-diag-disable 327,654,1125,1292,2289,2304,11062,11074,11076 \
|
||||
$(FOAM_EXTRA_CXXFLAGS)
|
||||
|
||||
c++LESSWARN = \
|
||||
-diag-disable 1224,2026,2305
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
5
wmake/rules/General/Icx/link-c
Normal file
5
wmake/rules/General/Icx/link-c
Normal file
@ -0,0 +1,5 @@
|
||||
LINK_LIBS = $(cDBUG)
|
||||
|
||||
LINKLIBSO = $(cc) $(cFLAGS) -shared
|
||||
|
||||
LINKEXE = $(cc) $(cFLAGS) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
|
||||
11
wmake/rules/General/Icx/link-c++
Normal file
11
wmake/rules/General/Icx/link-c++
Normal file
@ -0,0 +1,11 @@
|
||||
LINK_LIBS = $(c++DBUG)
|
||||
|
||||
LINKLIBSO = $(CC) $(c++FLAGS) -shared \
|
||||
-Xlinker --add-needed \
|
||||
-Xlinker --no-as-needed \
|
||||
$(FOAM_EXTRA_LDFLAGS)
|
||||
|
||||
LINKEXE = $(CC) $(c++FLAGS) \
|
||||
-Xlinker --add-needed \
|
||||
-Xlinker --no-as-needed \
|
||||
$(FOAM_EXTRA_LDFLAGS)
|
||||
5
wmake/rules/General/Icx/openmp
Normal file
5
wmake/rules/General/Icx/openmp
Normal file
@ -0,0 +1,5 @@
|
||||
# Flags for compiling/linking openmp
|
||||
# The USE_OMP is for OpenFOAM-specific use (general use is _OPENMP)
|
||||
|
||||
COMP_OPENMP = -DUSE_OMP -fiopenmp
|
||||
LINK_OPENMP = -fiopenmp
|
||||
Reference in New Issue
Block a user