From e04e844d473beb8e5c341356df28aa893f09de25 Mon Sep 17 00:00:00 2001 From: OSUmageed Date: Sun, 27 Jan 2019 21:46:52 +0000 Subject: [PATCH] Config example added to top level. --- config.mk.example | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 config.mk.example diff --git a/config.mk.example b/config.mk.example new file mode 100644 index 0000000..751967d --- /dev/null +++ b/config.mk.example @@ -0,0 +1,24 @@ +# Create a config.mk file in src with the necessary information for your machine. +# Use this example as a template. + +PREFIX :=$(MSCRATCH)/hSweep +NVCC :=$(CUDAPATH)/bin/nvcc +MPICXX :=$(MPIPATH)/bin/mpicxx +SOURCEPATH :=$(PREFIX)/src +CC_ICUDAPATH :=$(CUDAPATH)/include +CC_IMPIPATH :=$(MPIPATH)/include +GPU_CC :=35 # Compute Capability +CC_LMPIPATH := +CC_LCUDAPATH := +CUDAFLAGS :=-gencode arch=compute_$GPU_CC,code=sm_$GPUCC +CUDAFLAGS :=$(CUDAFLAGS) -restrict --ptxas-options=-v -Wno-deprecated-gpu-targets +CFLAGS :=-O3 --std=c++11 -w +LIBMPI :=-lmpich -lopa -lmpl -lrt -lpthread +LIBCUDA :=-lcudart -lcuda + +# Additional PATHS +IPATH := +LPATH :=$(MPIPATH)/lib $(INTELLIB) $(CUDAPATH)/lib64 + +# Additional Libs +LIBS :=-lm