Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Computing
cbmroot
Commits
d8c82fd2
Commit
d8c82fd2
authored
2 years ago
by
Sergey Gorbunov
Browse files
Options
Downloads
Patches
Plain Diff
L1: fix CI build
parent
ccd7aa8a
No related branches found
No related tags found
1 merge request
!934
L1: use Vc library for SSE vectors
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reco/L1/vectors/L1vec.h
+1
-0
1 addition, 0 deletions
reco/L1/vectors/L1vec.h
reco/L1/vectors/std_alloc.h
+5
-7
5 additions, 7 deletions
reco/L1/vectors/std_alloc.h
with
6 additions
and
7 deletions
reco/L1/vectors/L1vec.h
+
1
−
0
View file @
d8c82fd2
...
...
@@ -6,5 +6,6 @@
#define L1vec_H
#include
"vectors/L1vecVc.h"
//#include "vectors/L1vecPseudo.h"
#endif
This diff is collapsed.
Click to expand it.
reco/L1/vectors/std_alloc.h
+
5
−
7
View file @
d8c82fd2
...
...
@@ -6,12 +6,10 @@
#define STD_ALLOC_H
// ---------------------- Allocator for using STL ------------------------
#include
<Vc/Vc>
#include
<limits>
#include
<vector>
#include
"xmmintrin.h"
namespace
nsL1
{
...
...
@@ -113,10 +111,10 @@ namespace nsL1
void
*
operator
new
(
size_t
size
,
void
*
ptr
)
{
return
::
operator
new
(
size
,
ptr
);
}
void
*
operator
new
[](
size_t
size
,
void
*
ptr
)
{
return
::
operator
new
(
size
,
ptr
);
}
void
*
operator
new
(
size_t
size
)
{
return
_mm_
malloc
(
size
,
1
6
);
}
void
*
operator
new
[](
size_t
size
)
{
return
_mm_
malloc
(
size
,
1
6
);
}
void
operator
delete
(
void
*
ptr
,
size_t
)
{
_mm_
free
(
ptr
);
}
void
operator
delete
[](
void
*
ptr
,
size_t
)
{
_mm_
free
(
ptr
);
}
void
*
operator
new
(
size_t
size
)
{
return
Vc
::
malloc
<
T
,
Vc
::
AlignOnCacheline
>
(
size
/
sizeof
(
T
)
+
1
);
}
void
*
operator
new
[](
size_t
size
)
{
return
Vc
::
malloc
<
T
,
Vc
::
AlignOnCacheline
>
(
size
/
sizeof
(
T
)
+
1
);
}
void
operator
delete
(
void
*
ptr
,
size_t
)
{
Vc
::
free
(
ptr
);
}
void
operator
delete
[](
void
*
ptr
,
size_t
)
{
Vc
::
free
(
ptr
);
}
};
// SimdAlloc
// return that all specializations of this allocator are interchangeable
...
...
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