Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Peter Sherwood
athena
Commits
c4b12add
Commit
c4b12add
authored
4 years ago
by
Christos Anastopoulos
Browse files
Options
Downloads
Patches
Plain Diff
KLGaussianMixtureReduction : Code is explicitly vec so no need to add to compiler flags
parent
b1603c2c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tracking/TrkFitter/TrkGaussianSumFilter/src/KLGaussianMixtureReduction.cxx
+4
-9
4 additions, 9 deletions
...r/TrkGaussianSumFilter/src/KLGaussianMixtureReduction.cxx
with
4 additions
and
9 deletions
Tracking/TrkFitter/TrkGaussianSumFilter/src/KLGaussianMixtureReduction.cxx
+
4
−
9
View file @
c4b12add
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include
"TrkGaussianSumFilter/KLGaussianMixtureReduction.h"
#include
"CxxUtils/features.h"
#include
"CxxUtils/vec.h"
#include
"CxxUtils/vectorize.h"
#include
"TrkGaussianSumFilter/AlignedDynArray.h"
#include
<limits>
#if !defined(__GNUC__)
#define __builtin_assume_aligned(X, N) X
#else
...
...
@@ -23,12 +24,8 @@
* @date 26th November 2019
*
* Implementation of KLGaussianMixtureReduction
*
*/
/// This enables -ftree-vectorize in gcc (since we compile with -O2)
ATH_ENABLE_VECTORIZATION
;
namespace
{
using
namespace
GSFUtils
;
...
...
@@ -264,8 +261,7 @@ findMerges(Component1D* componentsIn,
*/
#if HAVE_FUNCTION_MULTIVERSIONING
#if defined(__x86_64__)
__attribute__
((
target
(
"avx2"
)))
int32_t
__attribute__
((
target
(
"avx2"
)))
int32_t
findMinimumIndex
(
const
float
*
distancesIn
,
const
int
n
)
{
using
namespace
CxxUtils
;
...
...
@@ -298,8 +294,7 @@ findMinimumIndex(const float* distancesIn, const int n)
}
return
minIndex
;
}
__attribute__
((
target
(
"sse4.1"
)))
int32_t
__attribute__
((
target
(
"sse4.1"
)))
int32_t
findMinimumIndex
(
const
float
*
distancesIn
,
const
int
n
)
{
using
namespace
CxxUtils
;
...
...
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