Added support for the PPC64le architecture
Resolves feature request http://www.openfoam.org/mantisbt/view.php?id=1759
This commit is contained in:
parent
22eec28121
commit
4b4c43b5da
@ -96,6 +96,16 @@ case Linux:
|
||||
setenv WM_LDFLAGS '-m64'
|
||||
breaksw
|
||||
|
||||
case ppc64le:
|
||||
setenv WM_ARCH linuxPPC64le
|
||||
setenv WM_COMPILER_LIB_ARCH 64
|
||||
setenv WM_CC 'gcc'
|
||||
setenv WM_CXX 'g++'
|
||||
setenv WM_CFLAGS '-m64 -fPIC'
|
||||
setenv WM_CXXFLAGS '-m64 -fPIC'
|
||||
setenv WM_LDFLAGS '-m64'
|
||||
breaksw
|
||||
|
||||
default:
|
||||
echo Unknown processor type `uname -m` for Linux
|
||||
breaksw
|
||||
|
@ -125,6 +125,16 @@ Linux)
|
||||
export WM_LDFLAGS='-m64'
|
||||
;;
|
||||
|
||||
ppc64le)
|
||||
WM_ARCH=linuxPPC64le
|
||||
export WM_COMPILER_LIB_ARCH=64
|
||||
export WM_CC='gcc'
|
||||
export WM_CXX='g++'
|
||||
export WM_CFLAGS='-m64 -fPIC'
|
||||
export WM_CXXFLAGS='-m64 -fPIC'
|
||||
export WM_LDFLAGS='-m64'
|
||||
;;
|
||||
|
||||
*)
|
||||
echo Unknown processor type `uname -m` for Linux 1>&2
|
||||
;;
|
||||
|
3
wmake/rules/linuxPPC64leGcc/X
Normal file
3
wmake/rules/linuxPPC64leGcc/X
Normal file
@ -0,0 +1,3 @@
|
||||
XFLAGS =
|
||||
XINC = $(XFLAGS) -I/usr/X11R6/include
|
||||
XLIBS = -L/usr/X11R6/lib64 -lXext -lX11
|
16
wmake/rules/linuxPPC64leGcc/c
Normal file
16
wmake/rules/linuxPPC64leGcc/c
Normal file
@ -0,0 +1,16 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
cc = gcc -m64 -mcpu=power8
|
||||
|
||||
include $(RULES)/c$(WM_COMPILE_OPTION)
|
||||
|
||||
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
|
||||
|
||||
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@
|
||||
|
||||
LINK_LIBS = $(cDBUG)
|
||||
|
||||
LINKLIBSO = $(cc) -shared
|
||||
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
|
21
wmake/rules/linuxPPC64leGcc/c++
Normal file
21
wmake/rules/linuxPPC64leGcc/c++
Normal file
@ -0,0 +1,21 @@
|
||||
SUFFIXES += .C
|
||||
|
||||
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||
|
||||
CC = g++ -m64 -mcpu=power8
|
||||
|
||||
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-100
|
||||
|
||||
c++FLAGS = $(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)
|
||||
|
||||
LINK_LIBS = $(c++DBUG)
|
||||
|
||||
LINKLIBSO = $(CC) $(c++FLAGS) -shared
|
||||
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed
|
2
wmake/rules/linuxPPC64leGcc/c++Debug
Normal file
2
wmake/rules/linuxPPC64leGcc/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||
c++OPT = -O0 -fdefault-inline
|
4
wmake/rules/linuxPPC64leGcc/c++Opt
Normal file
4
wmake/rules/linuxPPC64leGcc/c++Opt
Normal file
@ -0,0 +1,4 @@
|
||||
c++DBUG =
|
||||
c++OPT = -O3
|
||||
|
||||
ROUNDING_MATH = -frounding-math
|
2
wmake/rules/linuxPPC64leGcc/c++Prof
Normal file
2
wmake/rules/linuxPPC64leGcc/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
2
wmake/rules/linuxPPC64leGcc/cDebug
Normal file
2
wmake/rules/linuxPPC64leGcc/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -ggdb -DFULLDEBUG
|
||||
cOPT = -O1 -fdefault-inline -finline-functions
|
2
wmake/rules/linuxPPC64leGcc/cOpt
Normal file
2
wmake/rules/linuxPPC64leGcc/cOpt
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG =
|
||||
cOPT = -O3
|
2
wmake/rules/linuxPPC64leGcc/cProf
Normal file
2
wmake/rules/linuxPPC64leGcc/cProf
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -pg
|
||||
cOPT = -O2
|
10
wmake/rules/linuxPPC64leGcc/general
Normal file
10
wmake/rules/linuxPPC64leGcc/general
Normal file
@ -0,0 +1,10 @@
|
||||
CPP = cpp -traditional-cpp $(GFLAGS)
|
||||
LD = ld -m elf64lppc
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(RULES)/X
|
||||
include $(RULES)/c
|
||||
include $(RULES)/c++
|
3
wmake/rules/linuxPPC64leGcc/mplibHPMPI
Normal file
3
wmake/rules/linuxPPC64leGcc/mplibHPMPI
Normal file
@ -0,0 +1,3 @@
|
||||
PFLAGS =
|
||||
PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_amd64 -lmpi
|
Loading…
Reference in New Issue
Block a user