#////////////////////////////////////////////////////////////////////////////// # -- MAGMA (version 1.6.0) -- # Univ. of Tennessee, Knoxville # Univ. of California, Berkeley # Univ. of Colorado, Denver # @date November 2014 #////////////////////////////////////////////////////////////////////////////// # GPU_TARGET contains one or more of Tesla, Fermi, or Kepler, # to specify for which GPUs you want to compile MAGMA: # Tesla - NVIDIA compute capability 1.x cards # Fermi - NVIDIA compute capability 2.x cards # Kepler - NVIDIA compute capability 3.x cards # The default is all, "Tesla Fermi Kepler". # See http://developer.nvidia.com/cuda-gpus # GPU_TARGET ?= Fermi Kepler CC = gcc CXX = g++ NVCC = nvcc FORT = gfortran ARCH = ar ARCHFLAGS = cr RANLIB = ranlib CFLAGS = -O3 -DADD_ -fopenmp -DMAGMA_SETAFFINITY FFLAGS = -O3 -DADD_ F90FLAGS = -O3 -DADD_ -x f95-cpp-input NVCCFLAGS = -O3 -DADD_ -Xcompiler -fno-strict-aliasing LDFLAGS = -fopenmp # Depending on how ATLAS and LAPACK were compiled, you may need one or more of: # -lifcore -ldl -lf2c -lgfortran LIB = /usr/lib64/atlas-sse3/liblapack.a /usr/lib64/atlas-sse3/libf77blas.a /usr/lib64/atlas-sse3/libcblas.a /usr/lib64/atlas-sse3/libatlas.a -lgfortran -lcublas -lcudart -lstdc++ -lm -lgfortran # define library directories here or in your environment LAPACKDIR ?= /usr/lib64 ATLASDIR ?= /usr/lib64/atlas-sse3 CUDADIR ?= /usr -include make.check-atlas -include make.check-cuda LIBDIR = -L$(LAPACKDIR) \ -L$(ATLASDIR)/lib \ -L$(CUDADIR)/lib64 INC = -I$(CUDADIR)/include