How

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
头像
langshah
帖子: 81
注册时间: 2007-01-15 14:53
来自: Hsiakuanin Univ.&Pentacham Univ.
联系:

How

#1

帖子 langshah » 2009-04-19 17:24

g
g
g
g
g
g
上次由 langshah 在 2014-02-19 3:52,总共编辑 1 次。
ubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntu
sgog
帖子: 9
注册时间: 2008-12-25 13:57

Re: How to use Intel Fortran with MKL(原创)

#2

帖子 sgog » 2009-05-25 6:35

你是64位处理器马?
这个装好之后你能不能用pathf95命令?

谢谢
头像
langshah
帖子: 81
注册时间: 2007-01-15 14:53
来自: Hsiakuanin Univ.&Pentacham Univ.
联系:

Re: How to use Intel Fortran with MKL(原创)

#3

帖子 langshah » 2009-05-25 12:49

sgog 写了:你是64位处理器马?
这个装好之后你能不能用pathf95命令?

谢谢

pathf95命令?呵呵,没用过,我编译了很多f90还是可以的.我用的是64位的版本
ubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntubuntu
andyross
帖子: 1
注册时间: 2009-02-07 3:49

Re: How to use Intel Fortran with MKL(原创)

#4

帖子 andyross » 2009-09-05 4:59

我在使用Intel Math Kernel Library的时候遇到了一个问题,编译输出如下:

yuan@ubuntu:~/Desktop/ambig$ make
ifort -extend_source -w -I/usr/include/cfitsio -O3 -ipo -axS -o ambig
ambig.f boxit.f buffer.f sortrx.f nacute2.f nacute5.f nacute6.f
pacute.f potential.f printerror.f rd_field.f rd_fits.f rd_param.f
rd_sotsp.f smooth.f cuspl.f cuspl2d.f cuspleval.f cuspleval2d.f
transform.f update_fits.f upmap.f write_field.f setup.f
minimise_energy.f get_ran_pix.f ran3.f CalcE.f CalcDE.f
CalcDE_reconfig.f reconfig.f dfti_example_status_print.o
-L/opt/intel/Compiler/11.1/046/mkl/lib/32
-I/opt/intel/Compiler/11.1/046/mkl/include -lmkl -liomp5 -lpthread
-lcfitsio
ipo: warning #11003: no IR in object file dfti_example_status_print.o;
was the source file compiled with -ipo
ipo: warning #11011: unable to find -lmkl
ipo: warning #11020: unresolved dfti_error_class_external
Referenced in /tmp/ipo_ifort0G0Hoh.o
Referenced in dfti_example_status_print.o
ipo: warning #11020: unresolved dfti_compute_backward_cc
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved dfti_compute_forward_cc
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved dfti_commit_descriptor_external
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved dfti_set_value_sglval
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved dfti_set_value_intvec
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved dfti_set_value_intval
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved dfti_create_descriptor_highd
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftgmsg_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftgerr_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftfiou_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftclos_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftgpve_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftgkye_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftgknj_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftopen_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftgiou_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftgcve_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftgtdm_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftgtcl_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftgkys_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftmahd_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftpcom_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved ftpsse_
Referenced in /tmp/ipo_ifort0G0Hoh.o
ipo: warning #11020: unresolved dfti_error_message_external
Referenced in dfti_example_status_print.o
ipo: remark #11000: performing multi-file optimizations
ipo: remark #11005: generating object file /tmp/ipo_ifort0G0Hoh.o
/opt/intel/Compiler/11.1/046/mkl/ld: cannot find -lmkl
make: *** [ambig] Error 1
yuan@ubuntu:~/Desktop/ambig$ /opt/intel/Compiler/11.1/046/mkl/

我的makefile如下:
FC=ifort
MKL=/opt/intel/Compiler/11.1/046/mkl
MKLLIB = /opt/intel/Compiler/11.1/046/mkl/lib/32
#ARCH=$(shell uname -i)
#ifeq ($(ARCH),i386)
#MKLLIB=$(MKL)/lib/32
#else
#MKLLIB=$(MKL)/lib/em64t
#endif

ambig_files=ambig.f boxit.f buffer.f sortrx.f nacute2.f nacute5.f
nacute6.f pacute.f potential.f printerror.f rd_field.f rd_fits.f
rd_param.f rd_sotsp.f smooth.f cuspl.f cuspl2d.f cuspleval.f
cuspleval2d.f transform.f update_fits.f upmap.f write_field.f setup.f
minimise_energy.f get_ran_pix.f ran3.f CalcE.f CalcDE.f
CalcDE_reconfig.f reconfig.f

ambig: $(ambig_files) mkl_dfti.mod dfti_example_status_print.o
$(FC) -extend_source -w -I/usr/include/cfitsio -O3 -ipo -axS -o $@
$(ambig_files) dfti_example_status_print.o -L$(MKLLIB)
-I/opt/intel/Compiler/11.1/046/mkl/include -lmkl -liomp5 -lpthread
-lcfitsio

clean:
rm -f ambig *.mod *.o

mkl_dfti.mod: $(MKL)/include/mkl_dfti.f90
$(FC) -g -c $^

%.o: %.f90
$(FC) -g -c $<


不知道如何处理。
回复