Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.
Moderators: Global Moderator, Moderator
-
zhouych
- Newbie
- Posts: 6
- Joined: Sun Dec 27, 2015 7:08 am
#1
Post
by zhouych » Tue Jan 05, 2016 9:23 am
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
-
zhouych
- Newbie
- Posts: 6
- Joined: Sun Dec 27, 2015 7:08 am
#2
Post
by zhouych » Wed Jan 06, 2016 6:19 am
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
-
qingpeng
- Newbie
- Posts: 2
- Joined: Sun Mar 09, 2014 9:12 pm
- License Nr.: 5-1210
- Location: Troy, NY
-
Contact:
#3
Post
by qingpeng » Sat Aug 20, 2016 5:53 pm
I got the same error. Have you solved this problem?
Any suggested solution?
Thanks