problems compiling magma 1.0 with atlas 3.8.0
Posted: Wed May 25, 2011 11:13 am
Hi
i am trying to compile magma against atlas 3.8.0 and cuda3.2 for a fermi/tesla machine in a linux environment.
i seem to be getting the following errors
/home/nw/gupta/ATLAS_3.8.0/Linux_64/lib/libf77blas.a(xerbla.o): In function `xerbla_':
xerbla.f:(.text+0x51): undefined reference to `_gfortran_st_write'
xerbla.f:(.text+0x61): undefined reference to `_gfortran_transfer_character'
xerbla.f:(.text+0x71): undefined reference to `_gfortran_transfer_integer'
xerbla.f:(.text+0x79): undefined reference to `_gfortran_st_write_done'
xerbla.f:(.text+0x83): undefined reference to `_gfortran_stop_numeric'
collect2: ld returned 1 exit status
make[1]: *** [testing_zsymv] Error 1
rm testing_zsymv.o testing_zgemv.o testing_zgemm.o testing_zhemv.o
make[1]: Leaving directory `/mnt/nw-node1/nw/gupta/magma_1.0/testing'
make: *** [test] Error 2
i am also attaching my make.inc file.
Please suggest how can i compile the library and also the testing functions since i wish to use dpotrf and dpotrs _gpu versions and in magma 0.2 release they give a segmentation fault when i try to test them. SO i moved to magma 1.0.
thanks and regards
rohit
**************************************************************
#//////////////////////////////////////////////////////////////////////////////
# -- MAGMA (version 1.0) --
# Univ. of Tennessee, Knoxville
# Univ. of California, Berkeley
# Univ. of Colorado, Denver
# November 2010
#
# Contributed by: Allan Menezes (Ontario, Canada)
#//////////////////////////////////////////////////////////////////////////////
#
# GPU_TARGET specifies for which GPU you want to compile MAGMA
# 0: Tesla family
# 1: Fermi Family
#
GPU_TARGET = 0
CC = gcc
NVCC = nvcc
FORT = gfortran
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
OPTS = -O3 -DADD_
NVOPTS = --compiler-options -fno-strict-aliasing -DUNIX -O3 -DADD_
LDOPTS = -fPIC -Xlinker -zmuldefs
LIB = -L/opt64/lapack-3.2/lapack_LINUX.a \
-llapack -lcblas -lf77blas -latlas -lf2c -lcublas -lm
CUDADIR = /opt64/cuda-3.2/cuda/
LIBDIR = -L/home/nw/gupta/ATLAS_3.8.0/Linux_64/lib \
-L/home/nw/gupta/CLAPACK-3.2.1/F2CLIBS/ \
-L$(CUDADIR)/lib64
INC = -I$(CUDADIR)/include
LIBMAGMA = ../lib/libmagma.a
LIBMAGMABLAS = ../lib/libmagmablas.a
**********************************************************************************
i am trying to compile magma against atlas 3.8.0 and cuda3.2 for a fermi/tesla machine in a linux environment.
i seem to be getting the following errors
/home/nw/gupta/ATLAS_3.8.0/Linux_64/lib/libf77blas.a(xerbla.o): In function `xerbla_':
xerbla.f:(.text+0x51): undefined reference to `_gfortran_st_write'
xerbla.f:(.text+0x61): undefined reference to `_gfortran_transfer_character'
xerbla.f:(.text+0x71): undefined reference to `_gfortran_transfer_integer'
xerbla.f:(.text+0x79): undefined reference to `_gfortran_st_write_done'
xerbla.f:(.text+0x83): undefined reference to `_gfortran_stop_numeric'
collect2: ld returned 1 exit status
make[1]: *** [testing_zsymv] Error 1
rm testing_zsymv.o testing_zgemv.o testing_zgemm.o testing_zhemv.o
make[1]: Leaving directory `/mnt/nw-node1/nw/gupta/magma_1.0/testing'
make: *** [test] Error 2
i am also attaching my make.inc file.
Please suggest how can i compile the library and also the testing functions since i wish to use dpotrf and dpotrs _gpu versions and in magma 0.2 release they give a segmentation fault when i try to test them. SO i moved to magma 1.0.
thanks and regards
rohit
**************************************************************
#//////////////////////////////////////////////////////////////////////////////
# -- MAGMA (version 1.0) --
# Univ. of Tennessee, Knoxville
# Univ. of California, Berkeley
# Univ. of Colorado, Denver
# November 2010
#
# Contributed by: Allan Menezes (Ontario, Canada)
#//////////////////////////////////////////////////////////////////////////////
#
# GPU_TARGET specifies for which GPU you want to compile MAGMA
# 0: Tesla family
# 1: Fermi Family
#
GPU_TARGET = 0
CC = gcc
NVCC = nvcc
FORT = gfortran
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
OPTS = -O3 -DADD_
NVOPTS = --compiler-options -fno-strict-aliasing -DUNIX -O3 -DADD_
LDOPTS = -fPIC -Xlinker -zmuldefs
LIB = -L/opt64/lapack-3.2/lapack_LINUX.a \
-llapack -lcblas -lf77blas -latlas -lf2c -lcublas -lm
CUDADIR = /opt64/cuda-3.2/cuda/
LIBDIR = -L/home/nw/gupta/ATLAS_3.8.0/Linux_64/lib \
-L/home/nw/gupta/CLAPACK-3.2.1/F2CLIBS/ \
-L$(CUDADIR)/lib64
INC = -I$(CUDADIR)/include
LIBMAGMA = ../lib/libmagma.a
LIBMAGMABLAS = ../lib/libmagmablas.a
**********************************************************************************