Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
solverstack
ScalFMM
Commits
cb93d832
Commit
cb93d832
authored
Mar 20, 2015
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug group attach leaf (still something wrong with cheb)
parent
e6db870b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
Src/GroupTree/Core/FGroupAttachedLeaf.hpp
Src/GroupTree/Core/FGroupAttachedLeaf.hpp
+1
-2
Src/GroupTree/Cuda/FCudaGroupAttachedLeaf.hpp
Src/GroupTree/Cuda/FCudaGroupAttachedLeaf.hpp
+1
-2
Src/GroupTree/TestKernel/FTestKernel.cl
Src/GroupTree/TestKernel/FTestKernel.cl
+1
-2
No files found.
Src/GroupTree/Core/FGroupAttachedLeaf.hpp
View file @
cb93d832
...
...
@@ -46,9 +46,8 @@ public:
positionsPointers
[
1
]
=
reinterpret_cast
<
FReal
*>
(
reinterpret_cast
<
unsigned
char
*>
(
inPositionBuffer
)
+
inLeadingPosition
);
positionsPointers
[
2
]
=
reinterpret_cast
<
FReal
*>
(
reinterpret_cast
<
unsigned
char
*>
(
inPositionBuffer
)
+
inLeadingPosition
*
2
);
unsigned
char
*
symAttributes
=
reinterpret_cast
<
unsigned
char
*>
(
reinterpret_cast
<
unsigned
char
*>
(
inPositionBuffer
)
+
inLeadingPosition
*
3
);
for
(
unsigned
idxAttribute
=
0
;
idxAttribute
<
NbSymbAttributes
;
++
idxAttribute
){
attributes
[
idxAttribute
]
=
reinterpret_cast
<
AttributeClass
*>
(
symAttributes
+
idxAttribute
*
inLeading
Attribute
s
);
attributes
[
idxAttribute
]
=
reinterpret_cast
<
AttributeClass
*>
(
reinterpret_cast
<
unsigned
char
*>
(
inPositionBuffer
)
+
inLeadingPosition
*
(
idx
Attribute
+
3
)
);
}
// Redirect pointers to data
...
...
Src/GroupTree/Cuda/FCudaGroupAttachedLeaf.hpp
View file @
cb93d832
...
...
@@ -37,9 +37,8 @@ public:
positionsPointers
[
1
]
=
reinterpret_cast
<
FReal
*>
(
reinterpret_cast
<
unsigned
char
*>
(
inPositionBuffer
)
+
inLeadingPosition
);
positionsPointers
[
2
]
=
reinterpret_cast
<
FReal
*>
(
reinterpret_cast
<
unsigned
char
*>
(
inPositionBuffer
)
+
inLeadingPosition
*
2
);
unsigned
char
*
symAttributes
=
reinterpret_cast
<
unsigned
char
*>
(
reinterpret_cast
<
unsigned
char
*>
(
inPositionBuffer
)
+
inLeadingPosition
*
3
);
for
(
unsigned
idxAttribute
=
0
;
idxAttribute
<
NbSymbAttributes
;
++
idxAttribute
){
attributes
[
idxAttribute
]
=
reinterpret_cast
<
AttributeClass
*>
(
symAttributes
+
idxAttribute
*
inLeading
Attribute
s
);
attributes
[
idxAttribute
]
=
reinterpret_cast
<
AttributeClass
*>
(
reinterpret_cast
<
unsigned
char
*>
(
inPositionBuffer
)
+
inLeadingPosition
*
(
idx
Attribute
+
3
)
);
}
// Redirect pointers to data
...
...
Src/GroupTree/TestKernel/FTestKernel.cl
View file @
cb93d832
...
...
@@ -216,9 +216,8 @@ struct FOpenCLGroupAttachedLeaf BuildFOpenCLGroupAttachedLeaf(const int inNbPart
leaf.positionsPointers[1]
=
(
__global
FReal*
)(((
__global
unsigned
char*
)
inPositionBuffer
)
+
inLeadingPosition
)
;
leaf.positionsPointers[2]
=
(
__global
FReal*
)(((
__global
unsigned
char*
)
inPositionBuffer
)
+
inLeadingPosition*2
)
;
unsigned
char*
symAttributes
=
(
__global
unsigned
char*
)(((
__global
unsigned
char*
)
inPositionBuffer
)
+
inLeadingPosition*3
)
;
for
(
unsigned
idxAttribute
=
0
; idxAttribute < NbSymbAttributes ; ++idxAttribute){
leaf.attributes[idxAttribute]
=
(
__global
FParticleValueClass*
)(
symAttributes
+
idxAttribute*inLeading
Attribute
s
)
;
leaf.attributes[idxAttribute]
=
(
__global
FParticleValueClass*
)(
((
__global
unsigned
char*
)
inPositionBuffer
)
+
inLeadingPosition*
(
idx
Attribute
+3
)
)
;
}
//
Redirect
pointers
to
data
...
...
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