1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-12 20:27:06 +01:00

Travis fail fix attempt

This commit is contained in:
azusayamaguchi
2016-10-25 01:45:53 +01:00
parent 460d0753a1
commit d7d92af09d
3 changed files with 4 additions and 3 deletions

View File

@ -48,10 +48,11 @@ void *CartesianCommunicator::ShmBufferMalloc(size_t bytes){
void *ptr = (void *)heap_top;
heap_top += bytes;
heap_bytes+= bytes;
std::cout <<"Shm alloc "<<ptr<<std::endl;
assert(heap_bytes < MAX_MPI_SHM_BYTES);
return ptr;
}
void *CartesianCommunicator::ShmBufferFreeAll(void) {
void CartesianCommunicator::ShmBufferFreeAll(void) {
heap_top =(size_t)ShmBufferSelf();
heap_bytes=0;
}

View File

@ -104,7 +104,7 @@ class CartesianCommunicator {
void *ShmBuffer(int rank);
void *ShmBufferTranslate(int rank,void * local_p);
void *ShmBufferMalloc(size_t bytes);
void *ShmBufferFreeAll(void) ;
void ShmBufferFreeAll(void) ;
////////////////////////////////////////////////
// Must call in Grid startup