Installation Error

Open forum for general discussions relating to PLASMA.

Installation Error

Postby idim@plasma » Thu Jan 14, 2010 12:42 pm

I am trying to install PLASMA, but i get the following messages.
Library seems to be installed correctly, but i am running the tests some
files miss.

Can you write to me what goes wrong?


( cd testing; make)
make[1]: Entering directory `/home/dimako/plasma_2.1.0/testing'
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_dgesv.c -o testing_dgesv.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_dsgesv.c -o testing_dsgesv.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_dgels.c -o testing_dgels.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_dposv.c -o testing_dposv.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_dgemm.c -o testing_dgemm.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_sgesv.c -o testing_sgesv.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_sgels.c -o testing_sgels.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_sposv.c -o testing_sposv.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_sgemm.c -o testing_sgemm.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_cgesv.c -o testing_cgesv.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_cgels.c -o testing_cgels.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_cposv.c -o testing_cposv.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_cgemm.c -o testing_cgemm.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_zgesv.c -o testing_zgesv.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_zcgesv.c -o testing_zcgesv.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_zgels.c -o testing_zgels.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_zposv.c -o testing_zposv.o
icc -O3 -axSSE4.2 -xSSE4.2 -diag-disable vec -I../include -c testing_zgemm.c -o testing_zgemm.o
ifort -O3 -axSSE4.2 -xSSE4.2 -nofor_main testing_dgesv.o -o testing_dgesv -L../lib -lplasma -lcoreblas -lcorelapack -lcblas -L /opt/Math/GotoBLAS2/lib -lgoto2 -lpthread -lm
testing_dgesv.o: In function `main':
testing_dgesv.c:(.text+0x17d): undefined reference to `dlarnv'
testing_dgesv.c:(.text+0x281): undefined reference to `dlarnv'
testing_dgesv.c:(.text+0x3d9): undefined reference to `dlamch'
testing_dgesv.c:(.text+0x4d6): undefined reference to `dlange'
testing_dgesv.c:(.text+0x50f): undefined reference to `dlange'
testing_dgesv.c:(.text+0x548): undefined reference to `dlange'
testing_dgesv.c:(.text+0x5d6): undefined reference to `dlange'
testing_dgesv.c:(.text+0x72c): undefined reference to `dlarnv'
testing_dgesv.c:(.text+0x830): undefined reference to `dlarnv'
testing_dgesv.c:(.text+0xa75): undefined reference to `dlange'
testing_dgesv.c:(.text+0xaae): undefined reference to `dlange'
testing_dgesv.c:(.text+0xae7): undefined reference to `dlange'
testing_dgesv.c:(.text+0xb75): undefined reference to `dlange'
testing_dgesv.c:(.text+0xcbf): undefined reference to `dlarnv'
testing_dgesv.c:(.text+0xdc3): undefined reference to `dlarnv'
testing_dgesv.c:(.text+0x1021): undefined reference to `dlange'
testing_dgesv.c:(.text+0x1055): undefined reference to `dlange'
testing_dgesv.c:(.text+0x1089): undefined reference to `dlange'
testing_dgesv.c:(.text+0x1112): undefined reference to `dlange'
testing_dgesv.o: In function `check_solution':
testing_dgesv.c:(.text+0x1886): undefined reference to `dlange'
testing_dgesv.o:testing_dgesv.c:(.text+0x18a9): more undefined references to `dlange' follow
../lib/libplasma.a(core_dblas.o): In function `CORE_dgelqt':
core_dblas.c:(.text+0x3e): undefined reference to `core_dgelqt'
../lib/libplasma.a(core_dblas.o): In function `CORE_dgeqrt':
core_dblas.c:(.text+0xce): undefined reference to `core_dgeqrt'
../lib/libplasma.a(core_dblas.o): In function `CORE_dgessm':
core_dblas.c:(.text+0x120): undefined reference to `core_dgessm'
../lib/libplasma.a(core_dblas.o): In function `CORE_dgetrf':
core_dblas.c:(.text+0x163): undefined reference to `core_dgetrf'
../lib/libplasma.a(core_dblas.o): In function `CORE_dpotrf':
core_dblas.c:(.text+0x190): undefined reference to `dpotrf'
../lib/libplasma.a(core_dblas.o): In function `CORE_dssmlq':
core_dblas.c:(.text+0x237): undefined reference to `core_dssmlq'
../lib/libplasma.a(core_dblas.o): In function `CORE_dssmqr':
core_dblas.c:(.text+0x2e7): undefined reference to `core_dssmqr'
../lib/libplasma.a(core_dblas.o): In function `CORE_dssssm':
core_dblas.c:(.text+0x3a7): undefined reference to `core_dssssm'
../lib/libplasma.a(core_dblas.o): In function `CORE_dtslqt':
core_dblas.c:(.text+0x499): undefined reference to `core_dtslqt'
../lib/libplasma.a(core_dblas.o): In function `CORE_dtsqrt':
core_dblas.c:(.text+0x4f9): undefined reference to `core_dtsqrt'
../lib/libplasma.a(core_dblas.o): In function `CORE_dtstrf':
core_dblas.c:(.text+0x56a): undefined reference to `core_dtstrf'
../lib/libplasma.a(core_dblas.o): In function `CORE_dormlq':
core_dblas.c:(.text+0x632): undefined reference to `core_dormlq'
../lib/libplasma.a(core_dblas.o): In function `CORE_dormqr':
core_dblas.c:(.text+0x6f2): undefined reference to `core_dormqr'
../lib/libcblas.a(cblas_dtrsm.o): In function `cblas_dtrsm':
cblas_dtrsm.c:(.text+0x12f): undefined reference to `F77_dtrsm'
cblas_dtrsm.c:(.text+0x2bd): undefined reference to `F77_dtrsm'
../lib/libcblas.a(cblas_dgemm.o): In function `cblas_dgemm':
cblas_dgemm.c:(.text+0x158): undefined reference to `F77_dgemm'
cblas_dgemm.c:(.text+0x26f): undefined reference to `F77_dgemm'
../lib/libcblas.a(cblas_dsyrk.o): In function `cblas_dsyrk':
cblas_dsyrk.c:(.text+0xdb): undefined reference to `F77_dsyrk'
cblas_dsyrk.c:(.text+0x1b9): undefined reference to `F77_dsyrk'
make[1]: *** [testing_dgesv] Error 1
make[1]: Leaving directory `/home/dimako/plasma_2.1.0/testing'
make: *** [testplasma] Error 2


Yannis
idim@plasma
 
Posts: 5
Joined: Thu Jan 14, 2010 12:39 pm

Re: Installation Error

Postby Bilel » Fri Jan 15, 2010 5:35 pm

Yannis,

How did you install PLASMA ? Have you used the installer or edited by yourself the make.inc ?

To fix your problem, you can edit the make.inc and add the the flag -DADD_ in OPTS.


Bilel
Bilel
 
Posts: 4
Joined: Thu May 21, 2009 7:14 pm

Re: Installation Error

Postby idim@plasma » Fri Jan 15, 2010 5:42 pm

Ok, we fix this problem! But another one appeared

> ifort -O3 -axSSE4.2 -xSSE4.2 -nofor_main testing_dposv.o -o
> testing_dposv -L../lib -lplasma -lcoreblas -L /opt/Math/GotoBLAS2/lib
> -lgoto2 -lcorelapack -lcblas -lpthread -lm
> ../lib/libcorelapack.a(dlagsy.o): In function `dlagsy_':
> dlagsy.f:(.text+0x4b9): undefined reference to `dsymv_'
> dlagsy.f:(.text+0x4fd): undefined reference to `ddot_'
> dlagsy.f:(.text+0x5ca): undefined reference to `dsyr2_'
> dlagsy.f:(.text+0x983): undefined reference to `dsymv_'
> dlagsy.f:(.text+0x9d5): undefined reference to `ddot_'
> dlagsy.f:(.text+0xad0): undefined reference to `dsyr2_'
> make[1]: *** [testing_dposv] Error 1
> make[1]: Leaving directory `/home/dimako/plasma_2.1.0_old/testing'
> make: *** [testplasma] Error 2
>

the compilation script that i use is:

CC = icc
FC = ifort
LINKER = ifort

ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib

OPTS = -O3 -axSSE4.2 -xSSE4.2 -DADD_ -diag-disable vec
FOPTS = -O3 -axSSE4.2 -xSSE4.2 -fltconsistency -fp_port
LDOPTS = -O3 -axSSE4.2 -xSSE4.2 -nofor_main
MKLDIR = /share/apps/intel/Compiler/11.1/mkl/lib/em64t
LIBBLAS = -L /opt/Math/GotoBLAS2/lib -lgoto2

# All libraries required by the tester.
LIB = -lplasma -lcoreblas $(LIBBLAS) -lcorelapack -lcblas -lpthread -lm

i change the location of variable $(LIBBLAS) in LIB, but i couldn't address the problem
idim@plasma
 
Posts: 5
Joined: Thu Jan 14, 2010 12:39 pm

Re: Installation Error

Postby Bilel » Fri Jan 15, 2010 5:51 pm

Which BLAS do you want to use ? GotoBLAS or the one from MKL ?

Otherwise, try : LIBBLAS = -L/share/apps/intel/Compiler/11.1/mkl/lib/em64t

We advise the user to install PLASMA with the installer :
http://icl.cs.utk.edu/projectsfiles/pla ... Guide.html
Bilel
 
Posts: 4
Joined: Thu May 21, 2009 7:14 pm

Re: Installation Error

Postby idim@plasma » Fri Jan 15, 2010 5:56 pm

I have used both of them. MKL works perfectly but i want to
link it gotoblas2. The latter has problem in installation.

Yannis





------------------------------------------------------------------------------------

CC = icc
FC = ifort
LINKER = ifort

ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib

OPTS = -O3 -axSSE4.2 -xSSE4.2 -DADD_ -diag-disable vec
FOPTS = -O3 -axSSE4.2 -xSSE4.2 -fltconsistency -fp_port
LDOPTS = -O3 -axSSE4.2 -xSSE4.2 -nofor_main
LIBBLAS = -L /opt/Math/GotoBLAS2/lib -lgoto2

# All libraries required by the tester.
LIB = -lplasma -lcoreblas $(LIBBLAS) -lcorelapack -lcblas -lpthread -lm
idim@plasma
 
Posts: 5
Joined: Thu Jan 14, 2010 12:39 pm

Re: Installation Error

Postby luszczek » Fri Jan 15, 2010 9:34 pm

Yannis,

you need this in the make.inc

LIB = -lplasma -lcoreblas -lcorelapack -lcblas $(LIBBLAS) -lpthread -lm

instead of:

LIB = -lplasma -lcoreblas $(LIBBLAS) -lcorelapack -lcblas -lpthread -lm

Piotr
luszczek
 
Posts: 15
Joined: Tue Jul 14, 2009 2:10 pm

Re: Installation Error

Postby idim@plasma » Sat Jan 16, 2010 7:04 am

Now, I get:

/opt/Math/GotoBLAS2/lib/libgoto2.a(slamch.o): In function `slamch_':
../INSTALL/slamch.f:(.text+0x0): multiple definition of `slamch_'
../../lib/libcorelapack.a(slamch.o):slamch.f:(.text+0x0): first defined here
ld: Warning: size of symbol `slamch_' changed from 496 in ../../lib/libcorelapack.a(slamch.o) to 1078 in /opt/Math/GotoBLAS2/lib/libgoto2.a(slamch.o)
make[1]: *** [xlintsts] Error 1
make[1]: Leaving directory `/home/dimako/plasma_2.1.0_old/testing/lin'
make: *** [testlapack] Error 2
idim@plasma
 
Posts: 5
Joined: Thu Jan 14, 2010 12:39 pm

Re: Installation Error

Postby luszczek » Sat Jan 16, 2010 12:24 pm

Yannis,

it seems that Goto2 now includes a function that is also present in PLASMA.
The fastest way around it (I think) is to edit plasma_2.1.0/core_lapack/slamch.f
and replace SLAMCH with XSLAMCH in the first line. Similarly, replace
DLAMCH with XDLAMCH in plasma_2.1.0/core_lapack/dlamch.f
That go into plasma_2.1.0/core_lapack and type make to rebuild
libcore_lapack.a

Piotr
luszczek
 
Posts: 15
Joined: Tue Jul 14, 2009 2:10 pm

Re: Installation Error

Postby idim@plasma » Sat Jan 16, 2010 1:11 pm

OK, everything is fine now.
:D
Yannis
idim@plasma
 
Posts: 5
Joined: Thu Jan 14, 2010 12:39 pm


Return to User discussion

Who is online

Users browsing this forum: Bing [Bot] and 0 guests

cron