Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena_MET
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Alberto Plebani
athena_MET
Commits
fb887982
Commit
fb887982
authored
2 years ago
by
Christos Anastopoulos
Committed by
Adam Edward Barton
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
AtlasFieldCache flatten also in opt
AtlasFieldCache flatten also in opt
parent
ca51daf8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MagneticField/MagFieldElements/CMakeLists.txt
+1
-2
1 addition, 2 deletions
MagneticField/MagFieldElements/CMakeLists.txt
MagneticField/MagFieldElements/src/AtlasFieldCache.cxx
+2
-2
2 additions, 2 deletions
MagneticField/MagFieldElements/src/AtlasFieldCache.cxx
with
3 additions
and
4 deletions
MagneticField/MagFieldElements/CMakeLists.txt
+
1
−
2
View file @
fb887982
...
...
@@ -28,6 +28,5 @@ if ( "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" )
set_source_files_properties
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/AtlasFieldCache.cxx
PROPERTIES
COMPILE_FLAGS
"
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
"
COMPILE_DEFINITIONS
"FLATTEN"
)
COMPILE_FLAGS
"
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
"
)
endif
()
This diff is collapsed.
Click to expand it.
MagneticField/MagFieldElements/src/AtlasFieldCache.cxx
+
2
−
2
View file @
fb887982
...
...
@@ -26,13 +26,13 @@ namespace {
constexpr
double
defaultB
=
0.1
*
Gaudi
::
Units
::
gauss
;
}
#if
defined(FLATTEN) &&
defined(__GNUC__)
#if defined(__GNUC__)
// We compile this package with optimization, even in debug builds; otherwise,
// the heavy use of Eigen makes it too slow. However, from here we may call
// to out-of-line Eigen code that is linked from other DSOs; in that case,
// it would not be optimized. Avoid this by forcing all Eigen code
// to be inlined here if possible.
__attribute__
((
flatten
))
[[
gnu
::
flatten
]]
#endif
void
MagField
::
AtlasFieldCache
::
getField
(
const
double
*
ATH_RESTRICT
xyz
,
...
...
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