Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
c4b4aad2
Commit
c4b4aad2
authored
Sep 03, 2014
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it compile
parent
b13ecd49
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
22 deletions
+6
-22
Src/Kernels/P2P/FP2PAvx.h
Src/Kernels/P2P/FP2PAvx.h
+0
-8
Src/Kernels/P2P/FP2PSse.hpp
Src/Kernels/P2P/FP2PSse.hpp
+0
-8
Src/Utils/FMath.hpp
Src/Utils/FMath.hpp
+6
-6
No files found.
Src/Kernels/P2P/FP2PAvx.h
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
;
...
...
Src/Kernels/P2P/FP2PSse.hpp
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
;
...
...
Src/Utils/FMath.hpp
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
<
__m256d
>
(
)
/
_mm256_sqrt_pd
(
inV
);
return
_mm256_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
>
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment