[Wien] compile SRC_qtl
"Paweł Leśniak, IFMPAN"
lesniak at ifmpan.poznan.pl
Thu Jun 18 20:08:02 CEST 2009
W dniu 2009-06-18 16:46, John Rundgren pisze:
> I use compiler intel_for11.0.081 together with library intel_mkl10.1.1.019, and I get the following diagnosis when I compile SRC_qtl:
>
> l2main.f:(.text+0x3073): undefined reference to `zgemm_'
>
> My Makefile contains the following link and library statements:
>
> FC = ifort
> CC = gcc-4.3
> LINKER = $(FC)
> FOPT = -FR -mp1 -w -prec_div -pc80 -pad -align -DINTEL_VML -traceback
> FGEN =
> LDFLAGS = $(FOPT) -L/opt/intel/mkl/10.1.1.019/lib/32 -pthread -i-static
> R_LIBS = -lmkl_lapack -lmkl -liomp5 -lmkl_32 -lguide -lmkl_core
> C_LIBS = $(R_LIBS)
>
> How, exactly, should these statements be written for a successful compilation of SRC_qtl ?
>
> The above statements work for all other SRC directories,
>
You should use siteconfig_lapw when changing compiler switches.
On your configuration I'd use (I've x86_64 with ifort11,mkl10.1, so it's
only a bit different):
FOPT = -FR -mp1 -w -prec_div -pc80 -pad -align -DINTEL_VML -O3 -xSSE4.1
FPOPT=$(FOPT)
LDFLAGS=$(FOPT) -L/opt/intel/mkl/10.1.1.019/lib/32 -pthread
DPARALLEL='-DParallel'
R_LIBS=-lmkl_lapack -lmkl -liomp5
Error you are getting can be caused by trying compilation without
cleaning previous tries - it's better to use siteconfig_lapw which keeps
care of such mistakes.
Pawel Lesniak
More information about the Wien
mailing list