MAGMA Installation: CLAPACK reference BLAS problem

Open discussion for MAGMA

MAGMA Installation: CLAPACK reference BLAS problem

Postby psrivas2 » Tue Sep 03, 2013 4:07 am


I installed CLAPACK3.2.1 with the reference BLAS library that comes with it without any errors. Then I proceeded to install MAGMA-1.3.0. I used (the closest example to clapack) as an example to construct the following file
Code: Select all
#   -- MAGMA (version 1.3.0) --
#      Univ. of Tennessee, Knoxville
#      Univ. of California, Berkeley
#      Univ. of Colorado, Denver
#      November 2012

# GPU_TARGET specifies for which GPU you want to compile MAGMA:
#     "Tesla" (NVIDIA compute capability 1.x cards)
#     "Fermi" (NVIDIA compute capability 2.x cards)
# See


CC        = gcc
NVCC      = nvcc
FORT      = gfortran

ARCH      = ar
RANLIB    = ranlib

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

LIB       = -llapack -lf77blas -lcblas -lblas -lf2c -lcublas -lm

CUDADIR   = /usr/local/cuda

LIBDIR    = -L/usr/local/clapack \
INC       = -I$(CUDADIR)/include \

Installing magma gives the following error
Code: Select all
make[1]: Entering directory `/home/psrivas2/Benchmarks/GPU/magma-1.3.0/testing'
gcc -fPIC -Xlinker -zmuldefs -DGPUSHMEM=300  testing_zgemm.o  -o testing_zgemm \
   libtest.a lin/liblapacktest.a -L../lib -lmagma -lmagmablas -lmagma \
   -L/usr/local/clapack -L/usr/local/cuda/lib64 \
   -lblas -lpthread -lcublas -llapack -lf2c -lm
testing_zgemm.o: In function `main':
testing_zgemm.cpp:(.text+0x7d0): undefined reference to `zaxpy_'
collect2: ld returned 1 exit status
make[1]: *** [testing_zgemm] Error 1
make[1]: Leaving directory `/home/psrivas2/Benchmarks/GPU/magma-1.3.0/testing'
make: *** [test] Error 2

Can someone help me solve this problem?

I would like to point out that I have been able to install magma successfully using ATLAS-3.10.0 but for reasons specific to my project I have to use the clapack with the reference blas library it comes with and not a highly tuned blas library ATLAS generates.
Posts: 1
Joined: Tue Sep 03, 2013 3:45 am

Return to User discussion

Who is online

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