mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: wmake rules for AMD (clang-based) compiler (#1627)
- not fully tested
This commit is contained in:
@ -66,7 +66,7 @@ export WM_PROJECT_VERSION=com
|
||||
export WM_COMPILER_TYPE=system
|
||||
|
||||
# [WM_COMPILER] - Compiler:
|
||||
# = Gcc | Clang | Icc | Cray | Arm | Pgi | Fujitsu |
|
||||
# = Gcc | Clang | Icc | Cray | Amd | Arm | Pgi | Fujitsu |
|
||||
# Gcc<digits> | Clang<digits>
|
||||
export WM_COMPILER=Gcc
|
||||
|
||||
|
||||
@ -66,7 +66,7 @@ setenv WM_PROJECT_VERSION com
|
||||
setenv WM_COMPILER_TYPE system
|
||||
|
||||
# [WM_COMPILER] - Compiler:
|
||||
# = Gcc | Clang | Icc | Cray | Arm | Pgi | Fujitsu |
|
||||
# = Gcc | Clang | Icc | Cray | Amd | Arm | Pgi | Fujitsu |
|
||||
# Gcc<digits> | Clang<digits>
|
||||
setenv WM_COMPILER Gcc
|
||||
|
||||
|
||||
5
wmake/rules/General/Amd/link-c
Normal file
5
wmake/rules/General/Amd/link-c
Normal file
@ -0,0 +1,5 @@
|
||||
LINK_LIBS = $(cDBUG)
|
||||
|
||||
LINKLIBSO = $(cc) $(cARCH) -shared
|
||||
|
||||
LINKEXE = $(cc) $(cARCH) -Xlinker -z -Xlinker nodefs
|
||||
5
wmake/rules/General/Amd/link-c++
Normal file
5
wmake/rules/General/Amd/link-c++
Normal file
@ -0,0 +1,5 @@
|
||||
LINK_LIBS = $(c++DBUG) -Wl,--as-needed
|
||||
|
||||
LINKLIBSO = $(CC) $(c++FLAGS) -shared
|
||||
|
||||
LINKEXE = $(CC) $(c++FLAGS) -L$(FOAM_LIBBIN)/dummy -lPstream
|
||||
13
wmake/rules/linux64Amd/c
Normal file
13
wmake/rules/linux64Amd/c
Normal file
@ -0,0 +1,13 @@
|
||||
# AMD compiler - a clang variant
|
||||
include $(GENERAL_RULES)/Clang/c
|
||||
|
||||
cARCH = -m64
|
||||
|
||||
# Compile option is non-mandatory, but must be non-empty
|
||||
sinclude $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION)
|
||||
|
||||
cFLAGS = $(cARCH) $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
|
||||
|
||||
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@
|
||||
|
||||
include $(GENERAL_RULES)/Amd/link-c
|
||||
15
wmake/rules/linux64Amd/c++
Normal file
15
wmake/rules/linux64Amd/c++
Normal file
@ -0,0 +1,15 @@
|
||||
# AMD compiler - a clang variant
|
||||
include $(GENERAL_RULES)/Clang/c++
|
||||
|
||||
c++ARCH = -m64
|
||||
|
||||
include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
c++FLAGS = $(c++ARCH) $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC
|
||||
|
||||
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $< -o $@
|
||||
cxxtoo = $(Ctoo)
|
||||
cctoo = $(Ctoo)
|
||||
cpptoo = $(Ctoo)
|
||||
|
||||
include $(GENERAL_RULES)/Amd/link-c++
|
||||
2
wmake/rules/linux64Amd/c++Debug
Normal file
2
wmake/rules/linux64Amd/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -g -DFULLDEBUG
|
||||
c++OPT = -O0
|
||||
2
wmake/rules/linux64Amd/c++Opt
Normal file
2
wmake/rules/linux64Amd/c++Opt
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG =
|
||||
c++OPT = -O3
|
||||
2
wmake/rules/linux64Amd/c++Prof
Normal file
2
wmake/rules/linux64Amd/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
||||
2
wmake/rules/linux64Amd/cDebug
Normal file
2
wmake/rules/linux64Amd/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -g -DFULLDEBUG
|
||||
cOPT = -O0
|
||||
2
wmake/rules/linux64Amd/cOpt
Normal file
2
wmake/rules/linux64Amd/cOpt
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG =
|
||||
cOPT = -O3
|
||||
2
wmake/rules/linux64Amd/cProf
Normal file
2
wmake/rules/linux64Amd/cProf
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -pg
|
||||
cOPT = -O2
|
||||
9
wmake/rules/linux64Amd/general
Normal file
9
wmake/rules/linux64Amd/general
Normal file
@ -0,0 +1,9 @@
|
||||
CPP = cpp -traditional-cpp $(GFLAGS)
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
include $(GENERAL_RULES)/no-openmp
|
||||
|
||||
include $(DEFAULT_RULES)/c
|
||||
include $(DEFAULT_RULES)/c++
|
||||
3
wmake/rules/linux64Amd/mplibHPMPI
Normal file
3
wmake/rules/linux64Amd/mplibHPMPI
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS =
|
||||
PINC = -isystem $(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_amd64 -lmpi
|
||||
3
wmake/rules/linux64Amd/mplibINTELMPI
Normal file
3
wmake/rules/linux64Amd/mplibINTELMPI
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS = -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX
|
||||
PINC = -isystem $(MPI_ARCH_PATH)/intel64/include
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/intel64/lib -lmpi
|
||||
Reference in New Issue
Block a user