Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
8b566017
Commit
8b566017
authored
Mar 15, 2015
by
BRAMAS Berenger
Browse files
forgot that one
parent
5131d286
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/GroupTree/OpenCl/FTestKernel.cl
View file @
8b566017
...
...
@@ -26,6 +26,8 @@ typedef long long int MortonIndex;
#
define
NULLPTR
(
0
)
#
define
DefaultStructAlign
___DefaultStructAlign___
/***************************************************************************/
/***************************************************************************/
/***************************************************************************/
...
...
@@ -35,7 +37,7 @@ typedef struct OutOfBlockInteraction{
MortonIndex
outIndex
;
MortonIndex
insideIndex
;
int
outPosition
;
}
__attribute__
((
aligned
(
1
)))
;
}
__attribute__
((
aligned
(
DefaultStructAlign
)))
;
#
define
Between
(
inValue,
inMin,
inMax
)
(
(
inMin
)
<=
(
inValue
)
&&
(
inValue
)
<
(
inMax
)
)
#
define
pow2
(
power
)
(
1
<<
(
power
))
...
...
@@ -247,13 +249,13 @@ struct FOpenCLGroupOfParticlesBlockHeader{
size_t
attributeOffset
;
//<
The
total
number
of
particles
in
the
group
int
nbParticlesInGroup
;
}__attribute__
((
aligned
(
1
)))
;
}__attribute__
((
aligned
(
DefaultStructAlign
)))
;
/**
Information
about
a
leaf
*/
struct
FOpenCLGroupOfParticlesLeafHeader
{
int
nbParticles
;
size_t
offSet
;
}__attribute__
((
aligned
(
1
)))
;
}__attribute__
((
aligned
(
DefaultStructAlign
)))
;
struct
FOpenCLGroupOfParticles
{
...
...
@@ -337,7 +339,7 @@ struct FOpenCLGroupOfCellsBlockHeader{
MortonIndex
endingIndex
;
int
numberOfCellsInBlock
;
int
blockIndexesTableSize
;
}
__attribute__
((
aligned
(
1
)))
;
}
__attribute__
((
aligned
(
DefaultStructAlign
)))
;
struct
FOpenCLGroupOfCells
{
...
...
@@ -390,11 +392,11 @@ __global unsigned char* FOpenCLGroupOfCells_getCell(struct FOpenCLGroupOfCells*
struct
Uptr9{
__global
unsigned
char*
ptrs[9]
;
}
__attribute__
((
aligned
(
1
)))
;
}
__attribute__
((
aligned
(
DefaultStructAlign
)))
;
struct
size_t9{
size_t
v[9]
;
}
__attribute__
((
aligned
(
1
)))
;
}
__attribute__
((
aligned
(
DefaultStructAlign
)))
;
struct
Uptr343{
__global
unsigned
char*
ptrs[343]
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment