Commit 8b566017 authored by BRAMAS Berenger's avatar BRAMAS Berenger

forgot that one

parent 5131d286
...@@ -26,6 +26,8 @@ typedef long long int MortonIndex; ...@@ -26,6 +26,8 @@ typedef long long int MortonIndex;
#define NULLPTR (0) #define NULLPTR (0)
#define DefaultStructAlign ___DefaultStructAlign___
/***************************************************************************/ /***************************************************************************/
/***************************************************************************/ /***************************************************************************/
/***************************************************************************/ /***************************************************************************/
...@@ -35,7 +37,7 @@ typedef struct OutOfBlockInteraction{ ...@@ -35,7 +37,7 @@ typedef struct OutOfBlockInteraction{
MortonIndex outIndex; MortonIndex outIndex;
MortonIndex insideIndex; MortonIndex insideIndex;
int outPosition; int outPosition;
} __attribute__ ((aligned (1))); } __attribute__ ((aligned (DefaultStructAlign)));
#define Between(inValue, inMin, inMax) ( (inMin) <= (inValue) && (inValue) < (inMax) ) #define Between(inValue, inMin, inMax) ( (inMin) <= (inValue) && (inValue) < (inMax) )
#define pow2(power) (1 << (power)) #define pow2(power) (1 << (power))
...@@ -247,13 +249,13 @@ struct FOpenCLGroupOfParticlesBlockHeader{ ...@@ -247,13 +249,13 @@ struct FOpenCLGroupOfParticlesBlockHeader{
size_t attributeOffset; size_t attributeOffset;
//< The total number of particles in the group //< The total number of particles in the group
int nbParticlesInGroup; int nbParticlesInGroup;
}__attribute__ ((aligned (1))); }__attribute__ ((aligned (DefaultStructAlign)));
/** Information about a leaf */ /** Information about a leaf */
struct FOpenCLGroupOfParticlesLeafHeader { struct FOpenCLGroupOfParticlesLeafHeader {
int nbParticles; int nbParticles;
size_t offSet; size_t offSet;
}__attribute__ ((aligned (1))); }__attribute__ ((aligned (DefaultStructAlign)));
struct FOpenCLGroupOfParticles { struct FOpenCLGroupOfParticles {
...@@ -337,7 +339,7 @@ struct FOpenCLGroupOfCellsBlockHeader{ ...@@ -337,7 +339,7 @@ struct FOpenCLGroupOfCellsBlockHeader{
MortonIndex endingIndex; MortonIndex endingIndex;
int numberOfCellsInBlock; int numberOfCellsInBlock;
int blockIndexesTableSize; int blockIndexesTableSize;
} __attribute__ ((aligned (1))); } __attribute__ ((aligned (DefaultStructAlign)));
struct FOpenCLGroupOfCells { struct FOpenCLGroupOfCells {
...@@ -390,11 +392,11 @@ __global unsigned char* FOpenCLGroupOfCells_getCell(struct FOpenCLGroupOfCells* ...@@ -390,11 +392,11 @@ __global unsigned char* FOpenCLGroupOfCells_getCell(struct FOpenCLGroupOfCells*
struct Uptr9{ struct Uptr9{
__global unsigned char* ptrs[9]; __global unsigned char* ptrs[9];
} __attribute__ ((aligned (1))); } __attribute__ ((aligned (DefaultStructAlign)));
struct size_t9{ struct size_t9{
size_t v[9]; size_t v[9];
} __attribute__ ((aligned (1))); } __attribute__ ((aligned (DefaultStructAlign)));
struct Uptr343{ struct Uptr343{
__global unsigned char* ptrs[343]; __global unsigned char* ptrs[343];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment