[beignet] 05/12: Stop using -msse*
Rebecca Palmer
rnpalmer-guest at moszumanska.debian.org
Wed Mar 18 21:37:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
rnpalmer-guest pushed a commit to branch master
in repository beignet.
commit a4e498741ece435677f47d4b58b24c7cb002dffa
Author: Rebecca N. Palmer <rebecca_palmer at zoho.com>
Date: Wed Mar 18 11:41:25 2015 +0000
Stop using -msse*
While this package isn't useful on older hardware, it should at
least return an error rather than crashing
---
debian/changelog | 2 ++
.../patches/Debian-compliant-compiler-flags-handling.patch | 12 +++++++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 23df6cc..9326084 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ beignet (1.0.2-1) UNRELEASED; urgency=medium
* Fix FTBFS on kfreebsd-*.
* Drop patches applied upstream, refresh others.
* Drop no longer needed Utest-requires-deprecated-function-names.patch.
+ * Stop using -msse*, to allow at least returning a useful error on
+ old unsupported hardware.
-- Andreas Beckmann <anbe at debian.org> Tue, 17 Mar 2015 23:29:43 +0100
diff --git a/debian/patches/Debian-compliant-compiler-flags-handling.patch b/debian/patches/Debian-compliant-compiler-flags-handling.patch
index a97b283..10c1f12 100644
--- a/debian/patches/Debian-compliant-compiler-flags-handling.patch
+++ b/debian/patches/Debian-compliant-compiler-flags-handling.patch
@@ -2,6 +2,8 @@ Description: Set compiler flags
Respect CFLAGS,CXXFLAGS,LDFLAGS (security hardening etc.)
Be verbose
+Disable non-policy-compliant instruction set assumptions (slows the
+OpenCL compiler by ~few%, no effect on OpenCL execution speed)
Author: Simon Richter <sjr at debian.org>,Rebecca Palmer <rebecca_palmer at zoho.com>
--- a/CMakeLists.txt
@@ -14,7 +16,15 @@ Author: Simon Richter <sjr at debian.org>,Rebecca Palmer <rebecca_palmer at zoho.com>
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMake/")
INCLUDE (GNUInstallDirs OPTIONAL)
# support old CMake without GNUInstallDirs
-@@ -79,8 +78,8 @@ elseif (COMPILER STREQUAL "CLANG")
+@@ -73,14 +72,14 @@ elseif (COMPILER STREQUAL "CLANG")
+
+ # compiler flag setting
+ if (COMPILER STREQUAL "GCC")
+- set (CMAKE_C_CXX_FLAGS "${CMAKE_C_CXX_FLAGS} -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -mfpmath=sse -Wcast-align -Wl,-E")
++ set (CMAKE_C_CXX_FLAGS "${CMAKE_C_CXX_FLAGS} -funroll-loops -fstrict-aliasing -fPIC -Wall -Wcast-align -Wl,-E")
+ elseif (COMPILER STREQUAL "CLANG")
+- set (CMAKE_C_CXX_FLAGS "${CMAKE_C_CXX_FLAGS} -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall")
++ set (CMAKE_C_CXX_FLAGS "${CMAKE_C_CXX_FLAGS} -funroll-loops -fstrict-aliasing -fPIC -Wall")
elseif (COMPILER STREQUAL "ICC")
set (CMAKE_C_CXX_FLAGS "${CMAKE_C_CXX_FLAGS} -wd2928 -Wall -fPIC -fstrict-aliasing -fp-model fast -msse4.1 -Wl,-E")
endif ()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/beignet.git
More information about the Pkg-opencl-commits
mailing list