Page 1 of 1

Install Vasp.5.4.1 on Blue Gene/Q

Posted: Tue Jan 05, 2016 9:23 am
by zhouych
Hi all,
I try to compile VASP.5.4.1 on blue gene. I compiled one version vasp, but when I run it, it gets error like:
getshmem in getshmem.c: cannot create shared segment 8
getshmem in getshmem.c: cannot create shared segment 8
getshmem in getshmem.c: cannot create shared segment 8
I followed the error and found it due the shared memory.
This error comes from the sentence in getshmem.c.
shmid = shmget(key, *size, shmflg);


but it return a negative shmid. The spefic value for calling shmget is:
shmflg: 6016; size: 8; key 0
Does anybody know how to fix it?
Many thanks!

Regards,
Yecheng

Re: Install Vasp.5.4.1 on Blue Gene/Q

Posted: Wed Jan 06, 2016 6:19 am
by zhouych
Hi all,

It is system problem , nothing with VASP.
I make a new test.c with content:

Code: Select all

#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <stdio.h>
int main()
{
  int i,j,shmid,key;
  key_t Key;
i=8;
j=6016;
Key = 0;
shmid = shmget( key, /* identity key */
i, /* memory size */
j); /* creation or use */
printf("shmid :  %d  \n", shmid);
}
And compile it with bgxlc.
[zhouych@avoca CsSnI3]$ ./a.out
shmid : 360452
[zhouych@avoca CsSnI3]$ salloc -N 1 -t 2:00:00
.................
[zhouych@avoca CsSnI3]$ srun ./a.out
2016-01-06 14:56:51.062 (FATAL) [0x400014a9440] 23080:ibm.runjob.client.Job: could not start job: job failed to start
2016-01-06 14:56:51.062 (FATAL) [0x400014a9440] 23080:ibm.runjob.client.Job: Load failed on R01-ID-J02: Application executable ELF header contains invalid value, errno 8 Exec format error
[zhouych@avoca CsSnI3]$ ./a.out
shmid : 360452
It works ok if we run it directly, but it does not work when we perform it with srun.

Is anybody know why?

Cheers,
Yecheng

Re: Install Vasp.5.4.1 on Blue Gene/Q

Posted: Sat Aug 20, 2016 5:53 pm
by qingpeng
I got the same error. Have you solved this problem?
Any suggested solution?

Thanks