Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104876307
Makefile-bk
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
Thu, Mar 13, 01:52
Size
674 B
Mime Type
text/x-makefile
Expires
Sat, Mar 15, 01:52 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24868740
Attached To
R9010 PHPC_final project_SLWang
Makefile-bk
View Options
CC=nvcc
LD=${CC}
INCLUDES = -I$(OPENBLAS_ROOT)/include
CFLAGS+=-O3 $(INCLUDES) ${COVFLAGS}
DBGFLAGS = -pg -g
LDFLAGS+=-lgcov -lm -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) $(DBGFLAGS) $(CFLAGS) -o $@ -lcuda -lcudart -lcublas
#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