Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScalFMM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
solverstack
ScalFMM
Commits
c4b4aad2
Commit
c4b4aad2
authored
10 years ago
by
BRAMAS Berenger
Browse files
Options
Downloads
Patches
Plain Diff
Make it compile
parent
b13ecd49
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Src/Kernels/P2P/FP2PAvx.h
+0
-8
0 additions, 8 deletions
Src/Kernels/P2P/FP2PAvx.h
Src/Kernels/P2P/FP2PSse.hpp
+0
-8
0 additions, 8 deletions
Src/Kernels/P2P/FP2PSse.hpp
Src/Utils/FMath.hpp
+6
-6
6 additions, 6 deletions
Src/Utils/FMath.hpp
with
6 additions
and
22 deletions
Src/Kernels/P2P/FP2PAvx.h
+
0
−
8
View file @
c4b4aad2
...
...
@@ -25,8 +25,6 @@ static void FullMutual(ContainerClass* const FRestrict inTargets, ContainerClass
FReal
*
const
targetsForcesZ
=
inTargets
->
getForcesZ
();
FReal
*
const
targetsPotentials
=
inTargets
->
getPotentials
();
const
__m256d
mOne
=
_mm256_set1_pd
(
1.0
);
//P2P between target cells and others ones
for
(
int
idxNeighbors
=
0
;
idxNeighbors
<
limiteNeighbors
;
++
idxNeighbors
){
if
(
inNeighbors
[
idxNeighbors
]
){
...
...
@@ -196,8 +194,6 @@ static void FullRemote(ContainerClass* const FRestrict inTargets, ContainerClass
FReal
*
const
targetsForcesZ
=
inTargets
->
getForcesZ
();
FReal
*
const
targetsPotentials
=
inTargets
->
getPotentials
();
const
__m256d
mOne
=
_mm256_set1_pd
(
1.0
);
for
(
int
idxNeighbors
=
0
;
idxNeighbors
<
limiteNeighbors
;
++
idxNeighbors
){
if
(
inNeighbors
[
idxNeighbors
]
){
const
int
nbParticlesSources
=
(
inNeighbors
[
idxNeighbors
]
->
getNbParticles
()
+
3
)
/
4
;
...
...
@@ -266,8 +262,6 @@ static void FullMutual(ContainerClass* const FRestrict inTargets, ContainerClass
FReal
*
const
targetsForcesZ
=
inTargets
->
getForcesZ
();
FReal
*
const
targetsPotentials
=
inTargets
->
getPotentials
();
const
__m256
mOne
=
_mm256_set1_ps
(
1.0
);
for
(
int
idxNeighbors
=
0
;
idxNeighbors
<
limiteNeighbors
;
++
idxNeighbors
){
if
(
inNeighbors
[
idxNeighbors
]
){
const
int
nbParticlesSources
=
(
inNeighbors
[
idxNeighbors
]
->
getNbParticles
()
+
7
)
/
8
;
...
...
@@ -432,8 +426,6 @@ static void FullRemote(ContainerClass* const FRestrict inTargets, ContainerClass
FReal
*
const
targetsForcesZ
=
inTargets
->
getForcesZ
();
FReal
*
const
targetsPotentials
=
inTargets
->
getPotentials
();
const
__m256
mOne
=
_mm256_set1_ps
(
1.0
);
for
(
int
idxNeighbors
=
0
;
idxNeighbors
<
limiteNeighbors
;
++
idxNeighbors
){
if
(
inNeighbors
[
idxNeighbors
]
){
const
int
nbParticlesSources
=
(
inNeighbors
[
idxNeighbors
]
->
getNbParticles
()
+
7
)
/
8
;
...
...
This diff is collapsed.
Click to expand it.
Src/Kernels/P2P/FP2PSse.hpp
+
0
−
8
View file @
c4b4aad2
...
...
@@ -26,8 +26,6 @@ static void FullMutual(ContainerClass* const FRestrict inTargets, ContainerClass
FReal
*
const
targetsForcesZ
=
inTargets
->
getForcesZ
();
FReal
*
const
targetsPotentials
=
inTargets
->
getPotentials
();
const
__m128d
mOne
=
_mm_set1_pd
(
1.0
);
for
(
int
idxNeighbors
=
0
;
idxNeighbors
<
limiteNeighbors
;
++
idxNeighbors
){
if
(
inNeighbors
[
idxNeighbors
]
){
const
int
nbParticlesSources
=
(
inNeighbors
[
idxNeighbors
]
->
getNbParticles
()
+
1
)
/
2
;
...
...
@@ -191,8 +189,6 @@ static void FullRemote(ContainerClass* const FRestrict inTargets, ContainerClass
FReal
*
const
targetsForcesZ
=
inTargets
->
getForcesZ
();
FReal
*
const
targetsPotentials
=
inTargets
->
getPotentials
();
const
__m128d
mOne
=
_mm_set1_pd
(
1.0
);
for
(
int
idxNeighbors
=
0
;
idxNeighbors
<
limiteNeighbors
;
++
idxNeighbors
){
if
(
inNeighbors
[
idxNeighbors
]
){
const
int
nbParticlesSources
=
(
inNeighbors
[
idxNeighbors
]
->
getNbParticles
()
+
1
)
/
2
;
...
...
@@ -261,8 +257,6 @@ static void FullMutual(ContainerClass* const FRestrict inTargets, ContainerClass
FReal
*
const
targetsForcesZ
=
inTargets
->
getForcesZ
();
FReal
*
const
targetsPotentials
=
inTargets
->
getPotentials
();
const
__m128
mOne
=
_mm_set1_ps
(
1.0
);
for
(
int
idxNeighbors
=
0
;
idxNeighbors
<
limiteNeighbors
;
++
idxNeighbors
){
if
(
inNeighbors
[
idxNeighbors
]
){
const
int
nbParticlesSources
=
(
inNeighbors
[
idxNeighbors
]
->
getNbParticles
()
+
3
)
/
4
;
...
...
@@ -426,8 +420,6 @@ static void FullRemote(ContainerClass* const FRestrict inTargets, ContainerClass
FReal
*
const
targetsForcesZ
=
inTargets
->
getForcesZ
();
FReal
*
const
targetsPotentials
=
inTargets
->
getPotentials
();
const
__m128
mOne
=
_mm_set1_ps
(
1.0
);
for
(
int
idxNeighbors
=
0
;
idxNeighbors
<
limiteNeighbors
;
++
idxNeighbors
){
if
(
inNeighbors
[
idxNeighbors
]
){
const
int
nbParticlesSources
=
(
inNeighbors
[
idxNeighbors
]
->
getNbParticles
()
+
3
)
/
4
;
...
...
This diff is collapsed.
Click to expand it.
Src/Utils/FMath.hpp
+
6
−
6
View file @
c4b4aad2
...
...
@@ -241,7 +241,7 @@ struct FMath{
}
static
__m128d
Rsqrt
(
const
__m128d
inV
){
return
FMath
::
One
<
__m128d
>
(
)
/
_mm_sqrt_pd
(
inV
);
return
_mm_set_pd1
(
1.0
)
/
_mm_sqrt_pd
(
inV
);
}
#endif
#ifdef ScalFMM_USE_AVX
...
...
@@ -258,7 +258,7 @@ struct FMath{
}
static
__m256d
Rsqrt
(
const
__m256d
inV
){
return
FMath
::
One
<
_
_m256
d
>
(
)
/
_mm256_sqrt_pd
(
inV
);
return
_
m
m256
_set_pd1
(
1.0
)
/
_mm256_sqrt_pd
(
inV
);
}
#endif
...
...
@@ -488,10 +488,10 @@ inline __m128 FMath::One<__m128>(){
return
_mm_set_ps1
(
1.0
);
}
//
template <>
//
__m128d FMath::One<__m128d>(){
//
return _mm_set_pd1(1.0);
//
}
template
<
>
inline
__m128d
FMath
::
One
<
__m128d
>
(){
return
_mm_set_pd1
(
1.0
);
}
template
<
>
inline
__m128
FMath
::
Zero
<
__m128
>
(){
...
...
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