LensPix install
-
- Posts: 3
- Joined: August 30 2010
- Affiliation: ucsd
LensPix install
Hi, guys,
I am installing LensPix under Fedora 12 64bit system. But I have not succeeded in doing so.
I complied like this:
mpif90 -O3 -DMPIDIX -DMPI -m64 ...
And I got the warnings:
Warning: SimLens.f90:26: Illegal preprocessor directive
Warning: SimLens.f90:30: Illegal preprocessor directive
Warning: SimLens.f90:35: Illegal preprocessor directive
Warning: SimLens.f90:37: Illegal preprocessor directive
Warning: SimLens.f90:59: Illegal preprocessor directive
Warning: SimLens.f90:61: Illegal preprocessor directive
Warning: SimLens.f90:116: Illegal preprocessor directive
Warning: SimLens.f90:119: Illegal preprocessor directive
Warning: SimLens.f90:121: Illegal preprocessor directive
Warning: SimLens.f90:124: Illegal preprocessor directive
And error:
spin_alm_tools.o: In function `__spinalm_tools_MOD_getetime':
spin_alm_tools.F90:(.text+0x58a): undefined reference to `etime_'
collect2: ld returned 1 exit status
make: *** [simlens] Error 1
Can anyone help me?
Thanks!
I am installing LensPix under Fedora 12 64bit system. But I have not succeeded in doing so.
I complied like this:
mpif90 -O3 -DMPIDIX -DMPI -m64 ...
And I got the warnings:
Warning: SimLens.f90:26: Illegal preprocessor directive
Warning: SimLens.f90:30: Illegal preprocessor directive
Warning: SimLens.f90:35: Illegal preprocessor directive
Warning: SimLens.f90:37: Illegal preprocessor directive
Warning: SimLens.f90:59: Illegal preprocessor directive
Warning: SimLens.f90:61: Illegal preprocessor directive
Warning: SimLens.f90:116: Illegal preprocessor directive
Warning: SimLens.f90:119: Illegal preprocessor directive
Warning: SimLens.f90:121: Illegal preprocessor directive
Warning: SimLens.f90:124: Illegal preprocessor directive
And error:
spin_alm_tools.o: In function `__spinalm_tools_MOD_getetime':
spin_alm_tools.F90:(.text+0x58a): undefined reference to `etime_'
collect2: ld returned 1 exit status
make: *** [simlens] Error 1
Can anyone help me?
Thanks!
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: LensPix install
You may need -fpp or similar option to enable compiler preprocessing.
-
- Posts: 3
- Joined: August 30 2010
- Affiliation: ucsd
LensPix install
Hi, Antony Lewis,
After complied the code successfully, I ran it and got the error message:
[first@cmb LensPix]$ mpirun -np 1 ./simlens params.ini
*** glibc detected *** ./simlens: free(): invalid pointer: 0x00007fff238e6c48 ***
======= Backtrace: =========
/lib64/libc.so.6[0x32d5a74ac6]
./simlens[0x4586d5]
./simlens[0x46605b]
./simlens[0x68beba]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x32d5a1eb1d]
./simlens[0x406939]
======= Memory map: ========
00400000-00702000 r-xp 00000000 fd:00 2493843 /home/first/computing/LensPix/simlens
00901000-00905000 rw-p 00301000 fd:00 2493843 /home/first/computing/LensPix/simlens
00905000-0098b000 rw-p 00000000 00:00 0
01f40000-01f98000 rw-p 00000000 00:00 0 [heap]
32d5600000-32d561e000 r-xp 00000000 fd:00 202 /lib64/ld-2.11.2.so
32d581d000-32d581e000 r--p 0001d000 fd:00 202 /lib64/ld-2.11.2.so
32d581e000-32d581f000 rw-p 0001e000 fd:00 202 /lib64/ld-2.11.2.so
32d581f000-32d5820000 rw-p 00000000 00:00 0
32d5a00000-32d5b70000 r-xp 00000000 fd:00 203 /lib64/libc-2.11.2.so
32d5b70000-32d5d6f000 ---p 00170000 fd:00 203 /lib64/libc-2.11.2.so
32d5d6f000-32d5d73000 r--p 0016f000 fd:00 203 /lib64/libc-2.11.2.so
32d5d73000-32d5d74000 rw-p 00173000 fd:00 203 /lib64/libc-2.11.2.so
32d5d74000-32d5d79000 rw-p 00000000 00:00 0
32d6200000-32d6217000 r-xp 00000000 fd:00 204 /lib64/libpthread-2.11.2.so
32d6217000-32d6416000 ---p 00017000 fd:00 204 /lib64/libpthread-2.11.2.so
32d6416000-32d6417000 r--p 00016000 fd:00 204 /lib64/libpthread-2.11.2.so
32d6417000-32d6418000 rw-p 00017000 fd:00 204 /lib64/libpthread-2.11.2.so
32d6418000-32d641c000 rw-p 00000000 00:00 0
32d6600000-32d6683000 r-xp 00000000 fd:00 217 /lib64/libm-2.11.2.so
32d6683000-32d6882000 ---p 00083000 fd:00 217 /lib64/libm-2.11.2.so
32d6882000-32d6883000 r--p 00082000 fd:00 217 /lib64/libm-2.11.2.so
32d6883000-32d6884000 rw-p 00083000 fd:00 217 /lib64/libm-2.11.2.so
32d6a00000-32d6a07000 r-xp 00000000 fd:00 205 /lib64/librt-2.11.2.so
32d6a07000-32d6c06000 ---p 00007000 fd:00 205 /lib64/librt-2.11.2.so
32d6c06000-32d6c07000 r--p 00006000 fd:00 205 /lib64/librt-2.11.2.so
32d6c07000-32d6c08000 rw-p 00007000 fd:00 205 /lib64/librt-2.11.2.so
32e1e00000-32e1e16000 r-xp 00000000 fd:00 236 /lib64/libgcc_s-4.4.4-20100630.so.1
32e1e16000-32e2015000 ---p 00016000 fd:00 236 /lib64/libgcc_s-4.4.4-20100630.so.1
32e2015000-32e2016000 rw-p 00015000 fd:00 236 /lib64/libgcc_s-4.4.4-20100630.so.1
7ffc09eba000-7ffc0a6bf000 rw-p 00000000 00:00 0
7ffc0a6bf000-7ffc0a7b0000 r-xp 00000000 fd:00 263352 /usr/lib64/libgfortran.so.3.0.0
7ffc0a7b0000-7ffc0a9b0000 ---p 000f1000 fd:00 263352 /usr/lib64/libgfortran.so.3.0.0
7ffc0a9b0000-7ffc0a9b2000 rw-p 000f1000 fd:00 263352 /usr/lib64/libgfortran.so.3.0.0
7ffc0a9b2000-7ffc0a9b4000 rw-p 00000000 00:00 0
7ffc0a9ce000-7ffc0a9cf000 rw-p 00000000 00:00 0
7fff238d4000-7fff238ea000 rw-p 00000000 00:00 0 [stack]
7fff2390f000-7fff23910000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
rank 0 in job 33 cmb_40583 caused collective abort of all ranks
exit status of rank 0: killed by signal 6
Does this mean that i need to update some libraries?
After complied the code successfully, I ran it and got the error message:
[first@cmb LensPix]$ mpirun -np 1 ./simlens params.ini
*** glibc detected *** ./simlens: free(): invalid pointer: 0x00007fff238e6c48 ***
======= Backtrace: =========
/lib64/libc.so.6[0x32d5a74ac6]
./simlens[0x4586d5]
./simlens[0x46605b]
./simlens[0x68beba]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x32d5a1eb1d]
./simlens[0x406939]
======= Memory map: ========
00400000-00702000 r-xp 00000000 fd:00 2493843 /home/first/computing/LensPix/simlens
00901000-00905000 rw-p 00301000 fd:00 2493843 /home/first/computing/LensPix/simlens
00905000-0098b000 rw-p 00000000 00:00 0
01f40000-01f98000 rw-p 00000000 00:00 0 [heap]
32d5600000-32d561e000 r-xp 00000000 fd:00 202 /lib64/ld-2.11.2.so
32d581d000-32d581e000 r--p 0001d000 fd:00 202 /lib64/ld-2.11.2.so
32d581e000-32d581f000 rw-p 0001e000 fd:00 202 /lib64/ld-2.11.2.so
32d581f000-32d5820000 rw-p 00000000 00:00 0
32d5a00000-32d5b70000 r-xp 00000000 fd:00 203 /lib64/libc-2.11.2.so
32d5b70000-32d5d6f000 ---p 00170000 fd:00 203 /lib64/libc-2.11.2.so
32d5d6f000-32d5d73000 r--p 0016f000 fd:00 203 /lib64/libc-2.11.2.so
32d5d73000-32d5d74000 rw-p 00173000 fd:00 203 /lib64/libc-2.11.2.so
32d5d74000-32d5d79000 rw-p 00000000 00:00 0
32d6200000-32d6217000 r-xp 00000000 fd:00 204 /lib64/libpthread-2.11.2.so
32d6217000-32d6416000 ---p 00017000 fd:00 204 /lib64/libpthread-2.11.2.so
32d6416000-32d6417000 r--p 00016000 fd:00 204 /lib64/libpthread-2.11.2.so
32d6417000-32d6418000 rw-p 00017000 fd:00 204 /lib64/libpthread-2.11.2.so
32d6418000-32d641c000 rw-p 00000000 00:00 0
32d6600000-32d6683000 r-xp 00000000 fd:00 217 /lib64/libm-2.11.2.so
32d6683000-32d6882000 ---p 00083000 fd:00 217 /lib64/libm-2.11.2.so
32d6882000-32d6883000 r--p 00082000 fd:00 217 /lib64/libm-2.11.2.so
32d6883000-32d6884000 rw-p 00083000 fd:00 217 /lib64/libm-2.11.2.so
32d6a00000-32d6a07000 r-xp 00000000 fd:00 205 /lib64/librt-2.11.2.so
32d6a07000-32d6c06000 ---p 00007000 fd:00 205 /lib64/librt-2.11.2.so
32d6c06000-32d6c07000 r--p 00006000 fd:00 205 /lib64/librt-2.11.2.so
32d6c07000-32d6c08000 rw-p 00007000 fd:00 205 /lib64/librt-2.11.2.so
32e1e00000-32e1e16000 r-xp 00000000 fd:00 236 /lib64/libgcc_s-4.4.4-20100630.so.1
32e1e16000-32e2015000 ---p 00016000 fd:00 236 /lib64/libgcc_s-4.4.4-20100630.so.1
32e2015000-32e2016000 rw-p 00015000 fd:00 236 /lib64/libgcc_s-4.4.4-20100630.so.1
7ffc09eba000-7ffc0a6bf000 rw-p 00000000 00:00 0
7ffc0a6bf000-7ffc0a7b0000 r-xp 00000000 fd:00 263352 /usr/lib64/libgfortran.so.3.0.0
7ffc0a7b0000-7ffc0a9b0000 ---p 000f1000 fd:00 263352 /usr/lib64/libgfortran.so.3.0.0
7ffc0a9b0000-7ffc0a9b2000 rw-p 000f1000 fd:00 263352 /usr/lib64/libgfortran.so.3.0.0
7ffc0a9b2000-7ffc0a9b4000 rw-p 00000000 00:00 0
7ffc0a9ce000-7ffc0a9cf000 rw-p 00000000 00:00 0
7fff238d4000-7fff238ea000 rw-p 00000000 00:00 0 [stack]
7fff2390f000-7fff23910000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
rank 0 in job 33 cmb_40583 caused collective abort of all ranks
exit status of rank 0: killed by signal 6
Does this mean that i need to update some libraries?
-
- Posts: 3
- Joined: November 10 2010
- Affiliation: CAUP
LensPix install
Dear Chang Feng,
I am facing a similar problem to yours…When I finally compiled the program in my case with gfortran, I run it and gives me those error messages related with lib*.
If you found the solution, can you tell me what have you done, please?
Thank you.
Elsa Patrícia
I am facing a similar problem to yours…When I finally compiled the program in my case with gfortran, I run it and gives me those error messages related with lib*.
If you found the solution, can you tell me what have you done, please?
Thank you.
Elsa Patrícia
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: LensPix install
Is this the October 2010 version? (ps. please do send me any corrections to the makefile etc to make life easier for people in future)
-
- Posts: 3
- Joined: November 10 2010
- Affiliation: CAUP
LensPix install
Yes, I download it at 2nd of November. Do you have any idea of what could be the problem? This happened with older versions?
Thank you.
Thank you.
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: LensPix install
No, I use ifort myself and fixed any issues for that. But I don't recommend
-np 1, I usually use at least 4 CPUs (lensed simulation uses quite a lot of memory).
Maybe run it in a degbugger to get a proper position and stack trace.
-np 1, I usually use at least 4 CPUs (lensed simulation uses quite a lot of memory).
Maybe run it in a degbugger to get a proper position and stack trace.
-
- Posts: 3
- Joined: November 10 2010
- Affiliation: CAUP
LensPix install
No, it doesn´t work even with –np 4…If you have other idea, please, tell us.
Thank you.
Thank you.
-
- Posts: 3
- Joined: August 30 2010
- Affiliation: ucsd
Re: LensPix install
Hi, Elsa,
I didn't solve it.
But I have already made my own code to do this.
I didn't solve it.
But I have already made my own code to do this.
Elsa Ramos wrote:Dear Chang Feng,
I am facing a similar problem to yours…When I finally compiled the program in my case with gfortran, I run it and gives me those error messages related with lib*.
If you found the solution, can you tell me what have you done, please?
Thank you.
Elsa Patrícia
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: LensPix install
Did you find out which line it fails on?
My guess is adding
call HealpixMap_nullify(GradPhi)
call HealpixMap_nullify(M)
to SimLens.f90 with the other nullifys might help.
My guess is adding
call HealpixMap_nullify(GradPhi)
call HealpixMap_nullify(M)
to SimLens.f90 with the other nullifys might help.
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: LensPix install
Giancarlo de Gasperis kindly told me where the problems actually were, so I've now updated the public download with fixes so it should hopefully work with gfortran now. If not, please let me know where any problems occur.