Commit aa262505 authored by BRAMAS Berenger's avatar BRAMAS Berenger

dealloc correctly when using aligned alloc in starpu mpi

parent fc8ef218
......@@ -703,7 +703,7 @@ protected:
for(int idxHandle = 0 ; idxHandle < int(remoteCellGroups[idxLevel].size()) ; ++idxHandle){
if(remoteCellGroups[idxLevel][idxHandle].ptr){
starpu_data_unregister(remoteCellGroups[idxLevel][idxHandle].handle);
delete[] remoteCellGroups[idxLevel][idxHandle].ptr;
FAlignedMemory::Dealloc32BAligned(remoteCellGroups[idxLevel][idxHandle].ptr);
}
}
remoteCellGroups[idxLevel].clear();
......@@ -712,7 +712,7 @@ protected:
for(int idxHandle = 0 ; idxHandle < int(remoteParticleGroupss.size()) ; ++idxHandle){
if(remoteParticleGroupss[idxHandle].ptr){
starpu_data_unregister(remoteParticleGroupss[idxHandle].handle);
delete[] remoteParticleGroupss[idxHandle].ptr;
FAlignedMemory::Dealloc32BAligned(remoteParticleGroupss[idxHandle].ptr);
}
}
remoteParticleGroupss.clear();
......
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