[Wien] intel ifc/ifort compiler's problems

fecher fecher at mail.uni-mainz.de
Tue Dec 21 10:34:41 CET 2004


Probably you did not link pthread that is linked by -lpthread (not -pthread), 
take care that you give the series of libraries in the correct order, the 
last given should be the one that is probably used by all or further ones.


On older Suse Linux distributions, there is a library called 
libpthread_nonshared or similar, that you have to link using 
-lpthread_nonshared.

Depending on youre system, you may also try the swith -openmp as compiler and 
linker options. It seems that spme pthread subroutines are not needed in that 
case.

The switch -static should probably be the last option of the linker.

In older Versions of Wien, I found that one has to give the -Vaxlib also 

On other systems you may check which library (probably in \usr\lib ) includes 
the subroutine pthread_atfork, by searching through the .a libraries.

However, do not mix libraries of different Versions, that may cause strange 
results even so the program is running.

With the pgf compiler you have to include some more optimizations with the 
-Mpgflag options and not just -fast, however, these will depend on the 
particular system you are compiling for, so that I cannot give general tips. 
This will increase the speed in some cases tremendously.
There are also flags maintaining  numerical precision that you should use as 
in the case of the Intel compilers

I succeded always with the Intel compilers 7.0 with MKL 6.0.

I had troubles with 8.1 and MKL 7.x on some computers and Linux Versions that 
I was not able to solve.

Good Luck

Ciao Gerhard 


Am Dienstag, 21. Dezember 2004 03:01 schrieb liyh:
> Dear wien users,
>
>       I have download the wien2k_04.11.But when I compiled it with intel's
> compilers I meet some problems. When I use ifc7.1 and mkl7.2, I get an
> error message, for lapw1:
>
>       ifc  -o ./lapw1c abc.o atpar.o bandv1.o ...
> -L/opt/intel/mkl72cluster/lib/32 -Vaxlib -static -pthread
> -L/opt/intel/mkl72cluster/lib/32 -Vaxlib -static -pthread -lmkl_lapack
> -lmkl_ia32 -lguide_7.2
>
> /opt/intel/mkl72cluster/lib/32/libguide_7.2.a(z_Linux_util.o)(.text+0x17c2): 
In function `__kmp_suspend_initialize':
> : undefined reference to `pthread_atfork'
>
> /opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90fioerr.o)(.text+0x4d3): In 
function `f_f77ioerr':
> : undefined reference to `__ctype_b'
>
> the compiler option is:
> Current settings:
>      O   Compiler options:        -FR -mp1 -w -prec_div -pc80 -pad -ip
> -DINTEL_VML L   Linker Flags:            -L/opt/intel/mkl72cluster/lib/32
> -Vaxlib -static -pthread -L/opt/intel/mkl72cluster/lib/32 -Vaxlib -static
> -pthread P   Preprocessor flags       '-DParallel'
>      R   R_LIB (LAPACK+BLAS):     -lmkl_lapack -lmkl_ia32 -lguide_7.2
>
> when I use libguide_6.1.a
> the error is only:
>
>        /opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90fioerr.o)(.text
+0x4d3): In function `f_f77ioerr':
> : undefined reference to `__ctype_b'
>
> then I use ifort8.1, there is no error in the compiling process.
>        When I run "x lapw1 -c" for the test_case for benchmark which is
> download from your web site. which gave the error message "Segmentation
> fault".
>        I have read the degist, I find some users meet the same problem for
> ifort8.0, then does intel still not repair this bug in ifort8.1?
>       I also compiled it use the pgf90, there is no problem but the time is
> 630sec,which is two time as intel's compiler. Did any body suceeded in
> using the intel's compilers?
>       Could you give me some suggestments?
>
> Best regards!
>
>       Yonghua Li
>
>
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien




More information about the Wien mailing list