Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4838 from cms-sw/update-externals-ppc64
Update externals for ppc64 build
- Loading branch information
Showing
11 changed files
with
95 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/DDCore/src/Primitives.cpp b/DDCore/src/Primitives.cpp | ||
index b319624..bafb16a 100644 | ||
--- a/DDCore/src/Primitives.cpp | ||
+++ b/DDCore/src/Primitives.cpp | ||
@@ -25,7 +25,7 @@ | ||
#include <cstring> | ||
#include <map> | ||
|
||
-#if defined(__linux) || defined(__APPLE__) | ||
+#if defined(__linux) || defined(__APPLE__) || defined(__powerpc64__) | ||
#include <cxxabi.h> | ||
#ifndef __APPLE__ | ||
typedef abi::__class_type_info class_t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Requires: libjpeg-turbo zlib | ||
%define PipPreBuild export LDFLAGS="-L${LIBJPEG_TURBO_ROOT}/lib64 -L${ZLIB_ROOT}/lib"; \ | ||
export CFLAGS="-I${LIBJPEG_TURBO_ROOT}/include -I${ZLIB_ROOT}/include" | ||
Requires: libjpeg-turbo zlib libtiff | ||
%define PipPreBuild export LDFLAGS="-L${LIBJPEG_TURBO_ROOT}/lib64 -L${ZLIB_ROOT}/lib -L${LIBTIFF_ROOT}/lib"; \ | ||
export CFLAGS="-I${LIBJPEG_TURBO_ROOT}/include -I${ZLIB_ROOT}/include -I${LIBTIFF_ROOT}/include" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/Makefile b/Makefile | ||
index cd2ba6d..8fe79fc 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -24,7 +24,7 @@ ifndef CPPFLAGS | ||
endif | ||
|
||
ifndef CXXFLAGS | ||
- CXXFLAGS := -O3 -march=native | ||
+ CXXFLAGS := -O3 -mcpu=native | ||
ifdef DEBUG | ||
ifneq ($(DEBUG),0) | ||
CXXFLAGS += -g | ||
diff --git a/pyext/setup.py b/pyext/setup.py | ||
index e93fe3f..8b9ab0e 100644 | ||
--- a/pyext/setup.py | ||
+++ b/pyext/setup.py | ||
@@ -14,7 +14,7 @@ ext = Extension("professor2.core", | ||
language="C++", | ||
depends=glob("../include/*.h"), | ||
include_dirs=[incdir, os.path.join(srcdir, "pyext", "professor2")], | ||
- extra_compile_args="-std=c++11 -O3 -march=native -Wno-unused-but-set-variable -Wno-sign-compare".split(), | ||
+ extra_compile_args="-std=c++11 -O3 -mcpu=native -Wno-unused-but-set-variable -Wno-sign-compare".split(), | ||
library_dirs=[libdir], | ||
runtime_library_dirs=[], | ||
libraries=["Professor2"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index b3014e9..e3604be 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -372,6 +372,9 @@ elseif (${_arch_lo} MATCHES native) | ||
if (Intel) | ||
set(VECGEOM_CXX_FLAGS "${VECGEOM_CXX_FLAGS} -xHost") | ||
set(VECGEOM_COMPILATION_FLAGS "${VECGEOM_COMPILATION_FLAGS} -xHost") | ||
+ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64le") | ||
+ set(VECGEOM_CXX_FLAGS "${VECGEOM_CXX_FLAGS} -mcpu=${_arch_lo} -mtune=${_arch_lo}") | ||
+ set(VECGEOM_COMPILATION_FLAGS "${VECGEOM_COMPILATION_FLAGS} -mcpu=${_arch_lo} -mtune=${_arch_lo}") | ||
else() | ||
set(VECGEOM_CXX_FLAGS "${VECGEOM_CXX_FLAGS} -march=${_arch_lo}") | ||
set(VECGEOM_COMPILATION_FLAGS "${VECGEOM_COMPILATION_FLAGS} -march=${_arch_lo}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters