Commit de753167 authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

update dyn starpu block

parent fbbe1fb7
...@@ -117,12 +117,12 @@ public: ...@@ -117,12 +117,12 @@ public:
// Allocate // Allocate
allocatedMemoryInByteSymb = memoryToAllocSymb; allocatedMemoryInByteSymb = memoryToAllocSymb;
memoryBuffer = (unsigned char*)FAlignedMemory::AllocateBytes<MemoryAlignementBytes>(memoryToAllocSymb); memoryBuffer = (unsigned char*)FAlignedMemory::AllocateBytes<MemoryAlignementBytes>(memoryToAllocSymb);
FAssertLF(memoryBuffer); FAssertLF(memoryBuffer || !totalSymb);
memset(memoryBuffer, 0, memoryToAllocSymb); memset(memoryBuffer, 0, memoryToAllocSymb);
allocatedMemoryInByteDown = totalDown; allocatedMemoryInByteDown = totalDown;
downPart = (unsigned char*)FAlignedMemory::AllocateBytes<MemoryAlignementBytes>(allocatedMemoryInByteDown); downPart = (unsigned char*)FAlignedMemory::AllocateBytes<MemoryAlignementBytes>(allocatedMemoryInByteDown);
FAssertLF(downPart); FAssertLF(downPart || !totalDown);
memset(downPart, 0, allocatedMemoryInByteDown); memset(downPart, 0, allocatedMemoryInByteDown);
// Move the pointers to the correct position // Move the pointers to the correct position
......
Supports Markdown
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