Skip to content

Commit

Permalink
Added Makefile.inc for PSG Cluster. renamed pipeline_multi.cpp to pip…
Browse files Browse the repository at this point in the history
…eline_multi.cu to ressolve thrust compilation issue
  • Loading branch information
jirikraus committed Apr 16, 2014
1 parent 94b169e commit 75e27e8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ INCLUDE_DIR = ./include

# Compiler flags
OPTIMISE = -O3
DEBUG =
DEBUG =

# Includes and libraries
INCLUDE = -I$(INCLUDE_DIR) -I$(THRUST_DIR) -I${DEDISP_DIR}/include -I${CUDA_DIR}/include -I./tclap
LIBS = -L$(CUDA_DIR)/lib64 -lcuda -lcudart -L${DEDISP_DIR}/lib -ldedisp -lcufft -lpthread -lnvToolsExt
LIBS = -L$(CUDA_DIR)/lib64 -lcudart -L${DEDISP_DIR}/lib -ldedisp -lcufft -lpthread -lnvToolsExt

# compiler flags
# --compiler-options -Wall
NVCC_COMP_FLAGS = -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30
NVCCFLAGS = ${UCFLAGS} ${OPTIMISE} ${NVCC_COMP_FLAGS} --machine 64 -Xcompiler ${DEBUG}
NVCC_COMP_FLAGS = -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35
NVCCFLAGS = ${UCFLAGS} ${OPTIMISE} ${NVCC_COMP_FLAGS} --machine 64 -Xcompiler ${DEBUG}
CFLAGS = ${UCFLAGS} -fPIC ${OPTIMISE} ${DEBUG}

OBJECTS = ${OBJ_DIR}/kernels.o
Expand All @@ -30,7 +30,7 @@ all: directories ${OBJECTS} ${EXE_FILES}
${OBJ_DIR}/kernels.o: ${SRC_DIR}/kernels.cu
${NVCC} -c ${NVCCFLAGS} ${INCLUDE} $< -o $@

${BIN_DIR}/peasoup: ${SRC_DIR}/pipeline_multi.cpp ${OBJECTS}
${BIN_DIR}/peasoup: ${SRC_DIR}/pipeline_multi.cu ${OBJECTS}
${NVCC} ${NVCCFLAGS} ${INCLUDE} ${LIBS} $^ -o $@

${BIN_DIR}/harmonic_sum_test: ${SRC_DIR}/harmonic_sum_test.cpp ${OBJECTS}
Expand Down Expand Up @@ -63,4 +63,4 @@ directories:

clean:
@rm -rf ${BIN_DIR}/*
@rm -rf ${OBJ_DIR}/*
@rm -rf ${OBJ_DIR}/*
17 changes: 17 additions & 0 deletions Makefile.PSG.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This is where common definitions go

#cuda setup
CUDA_DIR = /shared/apps/cuda/CUDA-v6.0.26

#Thrust 1.7.1 or higher
THRUST_DIR = $(CUDA_DIR)/include

#dedisp setup
DEDISP_DIR = /home-2/jkraus/workspace/PulsarSearch/dedisp

GCC = gcc
GXX = g++
AR = ar
NVCC = $(CUDA_DIR)/bin/nvcc -lineinfo
SHELL = /bin/bash
UCFLAGS = -DUSE_NVTX
File renamed without changes.

0 comments on commit 75e27e8

Please sign in to comment.