Hi,
the default memheap size is 256MB, you can override it with oshrun -x
SHMEM_SYMMETRIC_HEAP_SIZE=512M ...

On Mon, Nov 17, 2014 at 3:38 PM, Timur Ismagilov <tismagi...@mail.ru> wrote:

> Hello!
> Why does shmalloc return NULL when I try to allocate 512MB.
> When i thry to allocate 256mb - all fine.
> I use Open MPI/SHMEM v1.8.4 rc1 (v1.8.3-202-gb568b6e).
>
> programm:
>
> #include <stdlib.h>
>
> #include <shmem.h>
>
> int main(int argc, char **argv)
> {
> int *src;
> start_pes(0);
>
> int length = 1024*1024*512;
> src = (int*) shmalloc(length);
>   if (src == NULL) {
>     printf("can not allocate src: size = %dMb\n ", length/(1024*1024));
>   }
> return 0;
> }
>
> command:
>
> $oshrun -np 1 ./example_shmem
> can not allocate src: size = 512Mb
>
> How can i increse shmalloc memory size?
>
>
>
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post:
> http://www.open-mpi.org/community/lists/users/2014/11/25821.php
>



-- 

Kind Regards,

M.

Reply via email to