# This makefile is used when compiling gpu benchmarks on puhti
# Before compiling on Puhti, load gcc, cuda-mpi and cuda
# module load gcc/8.3.0 hpcx-mpi/2.5.0-cuda cuda/10.1.168
# 
# On other systems run mpicc -showme:link and include the 
# Replace MPI_LIBS below with the -L and -l parameters it
# prints.
#


.PRECIOUS: build/%.cpt

MAKEFILE = Makefile_gpu
OPTS = -DNDIM=4


#CXXFLAGS = -O3  $(OPTS) 
#LDFLAGS =  
CXXFLAGS = -O3  $(OPTS) 
LDFLAGS = 


include ../../libraries/Makefile_cuda


test_CG: build/test_CG.o Makefile_gpu $(HILA_OBJECTS) 
	$(LD) $(LDFLAGS) -o $@ $< $(HILA_OBJECTS) 


clean:
	rm -rf build/*.cpt build/*.o

cleanall:
	rm -rf build/*


