Commit f3103f1e authored by BRAMAS Berenger's avatar BRAMAS Berenger

Update cude classes for starpu

parent 2be6b19c
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
template <const size_t CellClassSize> template <const size_t CellClassSize>
class FCudaGroupOfCells { class FCudaGroupOfCells {
/** One header is allocated at the beginning of each block */ /** One header is allocated at the beginning of each block */
struct BlockHeader{ struct alignas(1) BlockHeader{
MortonIndex startingIndex; MortonIndex startingIndex;
MortonIndex endingIndex; MortonIndex endingIndex;
int numberOfCellsInBlock; int numberOfCellsInBlock;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
template <unsigned NbAttributesPerParticle, class AttributeClass = FReal> template <unsigned NbAttributesPerParticle, class AttributeClass = FReal>
class FCudaGroupOfParticles { class FCudaGroupOfParticles {
/** One header is allocated at the beginning of each block */ /** One header is allocated at the beginning of each block */
struct BlockHeader{ struct alignas(1) BlockHeader{
MortonIndex startingIndex; MortonIndex startingIndex;
MortonIndex endingIndex; MortonIndex endingIndex;
int numberOfLeavesInBlock; int numberOfLeavesInBlock;
...@@ -25,7 +25,7 @@ class FCudaGroupOfParticles { ...@@ -25,7 +25,7 @@ class FCudaGroupOfParticles {
}; };
/** Information about a leaf */ /** Information about a leaf */
struct LeafHeader { struct alignas(1) LeafHeader {
int nbParticles; int nbParticles;
size_t offSet; size_t offSet;
}; };
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
//#include "../../Src/GroupTree/Cuda/FCudaTestKernels.hpp" //#include "../../Src/GroupTree/Cuda/FCudaTestKernels.hpp"
//#include "../../Src/GroupTree/Cuda/FCudaGroupOfParticles.hpp" //#include "../../Src/GroupTree/Cuda/FCudaGroupOfParticles.hpp"
//#include "../../Src/GroupTree/Cuda/FCudaGroupAttachedLeaf.hpp" //#include "../../Src/GroupTree/Cuda/FCudaGroupAttachedLeaf.hpp"
#include "../../Src/GroupTree/Cuda/FCudaGroupOfCells.hpp" //#include "../../Src/GroupTree/Cuda/FCudaGroupOfCells.hpp"
template <class ContainerClass> template <class ContainerClass>
class FTestCudaKernels; class FTestCudaKernels;
......
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