-
Notifications
You must be signed in to change notification settings - Fork 1
/
makeACC
38 lines (24 loc) · 954 Bytes
/
makeACC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Get a gpu with qrsh -l h_rt=00:30:00 -pe omp 1 -P paralg -l gpus=1.0 -l gpu_c=6.0
# Use make -k -f makeACC to compile and ./edgeDetectACC [imagefile] to run
.SUFFIXES:
.SUFFIXES: .o .cpp
#============================================================
TARGET1 = edgeDetectACC
C_OBJS1 = main.o utilities_ACC.o
C_SOURCES = main.cpp utilities_ACC.cpp
MY_INCLUDES = stb_image.h stb_image_write.h utilities.h
CXX = pgc++
#CXXFLAGS = -O3 -std=c++11
CXXFLAGS = -Minfo=accel -ta=tesla
#============================================================
all: $(TARGET1)
.o:.cpp $(MY_INCLUDES)
$(CCX) -c $(CXXFLAGS) $<
$(TARGET1) : $(C_OBJS1)
$(CXX) $(CXXFLAGS) $^ $(LIBDIRS) -o $@
# Implicit rules: $@ = target name, $< = first prerequisite name, $^ = name of all prerequisites
#============================================================
ALL_SOURCES = Makefile $(C_SOURCES) $(MY_INCLUDES)
NOTES =
clean:
rm -f $(TARGET1) $(C_OBJS1) *~