Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /benchmarks/mk/build-rules_gmk.in
ViewVC logotype

View of /benchmarks/mk/build-rules_gmk.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5651 - (download) (annotate)
Tue Nov 2 16:33:20 2021 UTC (4 weeks, 1 day ago) by adrianlehmann
File size: 1479 byte(s)
Add cuda batching and permuting
# build-rules.gmk
#
# This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
#
# COPYRIGHT (c) 2015 The University of Chicago
# All rights reserved.
#
# @configure_input@
#
# standard definitions and rules for compiling benchmark programs
#

SHELL =		@SHELL@
@SET_MAKE@

#
# tools and flags
#
CC =		@CC@
INCLUDES =	-I@TEEM_DIR@/include -I@BMARKS_INCDIR@
CPPFLAGS =	-DNDEBUG $(INCLUDES)
CFLAGS =	-O3 @CFLAG_M64@
LDPATHS =	-L@TEEM_DIR@/lib @LDPATHS@
LIBS =		-lteem -lpng -lz @LIBM@
LDFLAGS =	$(LDPATHS) $(LIBS)
ifeq (@LD_NEEDS_RPATH@,true)
  LDFLAGS +=	-Wl,-rpath=@TEEM_DIR@/lib
endif

DIDEROTC =	@DIDEROTC@ --exec
DIDEROTC_FLAGS =

TARGETS =	@TARGET_SEQ@ @TARGET_PAR@ @TARGET_CL@ @TARGET_CUDA@ @TARGET_CUDA_BATCH@ @TARGET_CUDA_BATCH_PERMUTE@ @TARGET_TEEM@

.PHONY:		all
all:		$(TARGETS)

bmark-seq:	bmark-diderot.diderot
	$(DIDEROTC) -o $@ --target=c $(DIDEROTC_FLAGS) $<

bmark-par:	bmark-diderot.diderot
	$(DIDEROTC) -o $@ --target=pthread $(DIDEROTC_FLAGS) $<

bmark-cl:	bmark-diderot.diderot
	$(DIDEROTC) -o $@ --target=cl $(DIDEROTC_FLAGS) $<

bmark-cuda: bmark-diderot.diderot
	$(DIDEROTC) -o $@ --target=cuda $(DIDEROTC_FLAGS) $<

bmark-cuda-batch: bmark-diderot.diderot
	$(DIDEROTC) -o $@ --target=cuda --cuda-batch $(DIDEROTC_FLAGS) $<

bmark-cuda-batch-permute: bmark-diderot.diderot
	$(DIDEROTC) -o $@ --target=cuda --cuda-batch --cuda-permute $(DIDEROTC_FLAGS) $<

bmark-teem:	bmark-teem.c
	$(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $< $(LDFLAGS)


root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0