You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
890 B
Makefile
38 lines
890 B
Makefile
1 year ago
|
TOPDIR=../..
|
||
|
include $(TOPDIR)/Make.inc
|
||
|
#
|
||
|
# Libraries used
|
||
|
#
|
||
|
PSBLIBDIR=$(PSBLASDIR)/lib/
|
||
|
PSBINCDIR=$(PSBLASDIR)/include
|
||
|
LIBDIR=$(TOPDIR)/lib
|
||
|
INCDIR=$(TOPDIR)/include
|
||
|
PSBLAS_LIB= -L$(PSBLIBDIR) -lpsb_util -lpsb_base
|
||
|
#-lpsb_util -lpsb_krylov -lpsb_prec -lpsb_base
|
||
|
LDLIBS=$(PSBLDLIBS)
|
||
|
#
|
||
|
# Compilers and such
|
||
|
#
|
||
|
#CCOPT= -g
|
||
|
FINCLUDES=$(FMFLAG). $(FMFLAG)$(INCDIR) $(FMFLAG)$(PSBINCDIR) $(FIFLAG).
|
||
1 year ago
|
CINCLUDES=$(SPGPU_INCLUDES) $(CUDA_INCLUDES) -I.. -I$(INCDIR)
|
||
1 year ago
|
LIBNAME=libpsb_gpu.a
|
||
|
|
||
|
|
||
|
CUDAOBJS=psi_cuda_c_CopyCooToElg.o psi_cuda_c_CopyCooToHlg.o \
|
||
|
psi_cuda_d_CopyCooToElg.o psi_cuda_d_CopyCooToHlg.o \
|
||
|
psi_cuda_s_CopyCooToElg.o psi_cuda_s_CopyCooToHlg.o \
|
||
|
psi_cuda_z_CopyCooToElg.o psi_cuda_z_CopyCooToHlg.o
|
||
|
|
||
|
|
||
|
|
||
|
objs: $(CUDAOBJS)
|
||
|
|
||
|
lib: objs
|
||
|
ar cur ../$(LIBNAME) $(CUDAOBJS)
|
||
|
|
||
|
$(CUDAOBJS): psi_cuda_common.cuh psi_cuda_CopyCooToElg.cuh psi_cuda_CopyCooToHlg.cuh
|
||
|
|
||
|
clean:
|
||
|
/bin/rm -f $(CUDAOBJS)
|