Install magma 1.1 Error

Open discussion for MAGMA

Install magma 1.1 Error

Postby woody » Fri Nov 25, 2011 7:08 am

File make.inc
----------------------------------------------------------------------------------------------------------------------------------------------
GPU_TARGET = 0

CC = gcc
NVCC = nvcc
FORT = gfortran

ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib

OPTS = -O3 -DADD_
FOPTS = -O3 -DADD_ -x f95-cpp-input
NVOPTS = --compiler-options -fno-strict-aliasing -DUNIX -O3 -DADD_
LDOPTS = -fPIC -Xlinker -zmuldefs

LIB = /usr/local/src/lapackbld/lapack-3.1.1/lapack_LINUX.a \
/usr/local/hplbenchmarks/lib64/libgfortran.a \
-lf77blas -latlas -lcblas -lf2c -lcublas -lm

CUDADIR = /usr/local/cuda

LIBDIR = -L/usr/local/src/ATLAS/nisl64/lib/ \
-L/usr/local/src/CLAPACK-3.1.1.1/F2CLIBS/ \
-L$(CUDADIR)/lib64
INC = -I$(CUDADIR)/include

#LIBMAGMA = $(MAGMA_DIR)/lib/libmagma.a
#LIBMAGMABLAS = $(MAGMA_DIR)/lib/libmagmablas.a

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

make

----------------------------------------------------------------------------------------------------------------------------------------------
( cd control && make )
make[1]: Entering directory `/usr/local/src/magma_1.1.0/control'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/magma_1.1.0/control'
( cd src && make )
make[1]: Entering directory `/usr/local/src/magma_1.1.0/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/magma_1.1.0/src'
( cd magmablas && make )
make[1]: Entering directory `/usr/local/src/magma_1.1.0/magmablas'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/magma_1.1.0/magmablas'
( cd testing && make )
make[1]: Entering directory `/usr/local/src/magma_1.1.0/testing'
gcc -O3 -DADD_ -DGPUSHMEM=130 -I/usr/local/cuda/include -I../include -I../quark/include -c testing_zhetrd.cpp -o testing_zhetrd.o
gcc -O3 -DADD_ -DGPUSHMEM=130 -fPIC -Xlinker -zmuldefs -DGPUSHMEM=130 testing_zhetrd.o -o testing_zhetrd lin/liblapacktest.a -L../lib \
-lcuda -lmagma -lmagmablas -lmagma -L/usr/local/src/ATLAS/nisl64/lib/ -L/usr/local/src/CLAPACK-3.1.1.1/F2CLIBS/ -L/usr/local/cuda/lib64 /usr/local/src/lapackbld/lapack-3.1.1/lapack_LINUX.a /usr/local/hplbenchmarks/lib64/libgfortran.a -lf77blas -latlas -lcblas -lf2c -lcublas -lm
../lib/libmagma.a(zlatrd.o): In function `magma_zlatrd':
zlatrd.cpp:(.text+0x404): undefined reference to `zdotc'
zlatrd.cpp:(.text+0xe4b): undefined reference to `zdotc'
collect2: ld returned 1 exit status
make[1]: *** [testing_zhetrd] Error 1
rm testing_zhetrd.o
make[1]: Leaving directory `/usr/local/src/magma_1.1.0/testing'
make: *** [test] Error 2
----------------------------------------------------------------------------------------------------------------------------------------------
woody
 
Posts: 8
Joined: Thu Jul 21, 2011 10:02 am

Re: Install magma 1.1 Error

Postby fletchjp » Fri Nov 25, 2011 9:13 am

This was a problem with version 1.0 also - see the thread MAGMA 1.0.0 zlatrd needs zdotc lower down, which also contains the solution when using gotoblas which is my situation.

The solution for version 1.1 is the same as in version 1.0 - to change the calls to zdotc to ones which work with gotoblas. Details are in the other thread.

I thought when I raised this with 1.0 it would be implemented in the next release.

I hope this helps.

John
fletchjp
 
Posts: 170
Joined: Mon Dec 27, 2010 7:29 pm

Re: Install magma 1.1 Error

Postby woody » Wed Nov 30, 2011 7:52 am

help me plz !!
woody
 
Posts: 8
Joined: Thu Jul 21, 2011 10:02 am

Re: Install magma 1.1 Error

Postby Stan Tomov » Thu Dec 01, 2011 12:16 am

As John suggested, the discussion on topic MAGMA 1.0.0 zlatrd needs zdotc may help. If you decide to use MKL no changes are needed. If you want to continue using atlas you have to modify the source as specified in the slatrd topic and link with cblas as well.
Stan Tomov
 
Posts: 249
Joined: Fri Aug 21, 2009 10:39 pm

Re: Install magma 1.1 Error

Postby fletchjp » Fri Dec 02, 2011 10:44 am

My modifications are described in the other thread. I am happy to post the files with the modified versions of the two routines I have modified, zlartd and clatrd. I have only tested with gotoblas, as I don't use atlas. The comments in the code would lead me to believe that this is intended as a general change.

John
fletchjp
 
Posts: 170
Joined: Mon Dec 27, 2010 7:29 pm


Return to User discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest