#include #include #include #include "utils.h" #define N 1 #define SIZE 128 //#define VERBOSE int main(void) { unsigned int me, np; unsigned int i; int ret = 0; char* addr1; char* addr2; char* addr3; rofi_init("verbs",NULL); np = rofi_get_size(); me = rofi_get_id(); if(!me) rofi_banner("Heap Alloc Test"); printf("Process %d/%d allocating memory region of size %d\n", me, np, SIZE); ret = rofi_alloc(SIZE, 0x0, (void**) &addr1); if(ret){ printf("Error allocating memory region! Aborting."); goto out; } rofi_barrier(); printf("Added memory region at %p size %d\n", addr1, SIZE); if(!me){ printf("Address Mappig on all nodes:\n"); for(i=0; i