Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104872792
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
Thu, Mar 13, 01:14
Size
707 B
Mime Type
text/x-makefile
Expires
Sat, Mar 15, 01:14 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
24869554
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