Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80351497
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 31, 07:19
Size
707 B
Mime Type
text/x-makefile
Expires
Mon, Sep 2, 07:19 (2 d)
Engine
blob
Format
Raw Data
Handle
20345318
Attached To
R9010 PHPC_final project_SLWang
Makefile
View Options
CC=nvcc
LD=${CC}
INCLUDES = -I$(OPENBLAS_ROOT)/include
CFLAGS+=-O3 $(INCLUDES) ${COVFLAGS}
DBGFLAGS = -pg -g
LDFLAGS+=-L$(OPENBLAS_ROOT)/lib -lopenblas
#OBJS=blas.o cg.o util.o cg_blas.o mmio.o
OBJS=mmio.o cg.o util.o second.o cg_blas.o
all: conjugategradient
conjugategradient: $(OBJS)
$(LD) $(OBJS) $(LDFLAGS) -I$(OPENBLAS_ROOT)/include -o $@ -lcublas
#$(LD) $(OBJS) $(LDFLAGS) $(DBGFLAGS) $(CFLAGS) -o $@
#coverage study
coverage:
./conjugategradient matrix3x3.mtx vector3.mtx
gcov *.c
lcov --capture --directory . --output-file coverage.info
genhtml coverage.info --output-directory out_html
clean:
rm -Rf conjugategradient *.o *~ *.gcda *.gcov *.gcno out_html coverage.info gmon.out
Event Timeline
Log In to Comment