Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lbcom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LHCb
Lbcom
Commits
8a9263b7
Commit
8a9263b7
authored
7 years ago
by
Christopher Rob Jones
Browse files
Options
Downloads
Patches
Plain Diff
Move addition of -mno-vzeroupper to check for gcc7, as clang does not undertsand it
parent
b48ab1e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!206
Rebase RichTTFUStudies to current master
,
!178
Master 2 future
,
!175
RichFutureTools - Various CPU dispatch fixes for GCC7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Rich/RichFutureTools/CMakeLists.txt
+7
-7
7 additions, 7 deletions
Rich/RichFutureTools/CMakeLists.txt
with
7 additions
and
7 deletions
Rich/RichFutureTools/CMakeLists.txt
+
7
−
7
View file @
8a9263b7
...
...
@@ -19,7 +19,7 @@ find_package(ROOT)
#message(STATUS "Vc ARCHITECTURE flags ${Vc_ARCHITECTURE_FLAGS}")
# AVX/AVX2 build options
set
(
AVX2_BUILD_FLAGS
" -Wno-ignored-attributes -mavx
-mno-vzeroupper
-O3 "
)
set
(
AVX2_BUILD_FLAGS
" -Wno-ignored-attributes -mavx -O3 "
)
exec_program
(
${
CMAKE_CXX_COMPILER
}
ARGS -print-prog-name=as OUTPUT_VARIABLE _as
)
if
(
NOT _as
)
message
(
ERROR
"Could not find the 'as' assembler..."
)
...
...
@@ -30,10 +30,10 @@ else()
if
(
_as_version VERSION_LESS
"2.21.0"
)
message
(
WARNING
"binutils is too old to support AVX2+FMA... Falling back to AVX only."
)
else
()
set
(
AVX2_BUILD_FLAGS
" -Wno-ignored-attributes -mavx2 -mfma
-mno-vzeroupper
-O3 "
)
set
(
AVX2_BUILD_FLAGS
" -Wno-ignored-attributes -mavx2 -mfma -O3 "
)
endif
()
endif
()
set
(
AVX_BUILD_FLAGS
" -Wno-ignored-attributes -mavx
-mno-vzeroupper
-O3 "
)
set
(
AVX_BUILD_FLAGS
" -Wno-ignored-attributes -mavx -O3 "
)
message
(
STATUS
"AVX build flags = "
${
AVX_BUILD_FLAGS
}
)
message
(
STATUS
"AVX2 build flags = "
${
AVX2_BUILD_FLAGS
}
)
...
...
@@ -52,13 +52,13 @@ set_property(SOURCE src/RichRayTracing_SSE4.cpp APPEND_STRING PROPERTY COMPI
set_property
(
SOURCE src/RichRayTracing_AVX.cpp APPEND_STRING PROPERTY COMPILE_FLAGS
${
AVX_BUILD_FLAGS
}
)
set_property
(
SOURCE src/RichRayTracing_AVX2FMA.cpp APPEND_STRING PROPERTY COMPILE_FLAGS
${
AVX2_BUILD_FLAGS
}
)
#
Temp fix
for GCC7.
Add option -faligned-new.
#
Fixes
for GCC7.
if
(
BINARY_TAG_COMP_NAME STREQUAL
"gcc"
AND BINARY_TAG_COMP_VERSION VERSION_GREATER
"6.99"
)
set_property
(
SOURCE src/RichRayTracing_AVX.cpp APPEND_STRING PROPERTY COMPILE_FLAGS
" -faligned-new "
)
set_property
(
SOURCE src/RichRayTracing_AVX2FMA.cpp APPEND_STRING PROPERTY COMPILE_FLAGS
" -faligned-new "
)
set_property
(
SOURCE src/RichRayTracing_AVX.cpp APPEND_STRING PROPERTY COMPILE_FLAGS
" -faligned-new
-mno-vzeroupper
"
)
set_property
(
SOURCE src/RichRayTracing_AVX2FMA.cpp APPEND_STRING PROPERTY COMPILE_FLAGS
" -faligned-new
-mno-vzeroupper
"
)
endif
()
# Fix for
gcc
4.
# Fix
es
for
GCC
4.
if
(
LCG_COMP STREQUAL
"gcc"
OR
(
BINARY_TAG_COMP_NAME STREQUAL
"gcc"
AND BINARY_TAG_COMP_VERSION VERSION_LESS
"5"
))
set_property
(
SOURCE src/RichRayTracing_AVX.cpp APPEND_STRING PROPERTY COMPILE_FLAGS
" -fabi-version=0 "
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment