I was able to compile using the options below, but what exact libraries are required depends on your installation of ATLAS and LAPACK.
-mark
Code: Select all
# Depending on your system and how LAPACK was compiled, you may need one or more of:
# -lifcore -ldl -lf2c -lgfortran
LIB = -llapack -lcblas -lf77blas -latlas -lcublas -lm -lgfortran -lifcore
# define library directories here or in your environment
# CUDADIR = /usr/local/cuda
# LAPACKDIR = $(HOME)/src/lapack-3.4.2
# ATLASDIR = /mnt/scratch/sw/atlas-gcc
LIBDIR = -L$(LAPACKDIR) \
-L$(ATLASDIR)/lib \
-L$(CUDADIR)/lib64
INC = -I$(CUDADIR)/include