Log In | Get Help   
Home My Page Projects Code Snippets Project Openings UPC Operations Microbenchmarking Suite
Summary Activity Tracker Lists Docs News SCM Files
[uoms] View of /trunk/uoms/src/Makefile
[uoms] / trunk / uoms / src / Makefile Repository:
ViewVC logotype

View of /trunk/uoms/src/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (download) (annotate)
Thu Apr 8 10:41:26 2010 UTC (14 years, 1 month ago) by dalvarez
File size: 1451 byte(s)
Small change in the changelog to give credit to people who deserve it for their work in the initial release
# Makefile for the UPC Operations Microbenchmarking Suite 
# 2009

include ./config/make.def

ifeq ($(NTHREADS),0)
	THREADS = $(THREADS_SWITCH)1
else
	THREADS = $(THREADS_SWITCH)$(NTHREADS)
endif

default : usage UOMS.upc data_print.o utilities.o affinity.o mem_manager.o init.o timers.o \
	timers/timers.h
	mkdir -p ../bin
	$(UPCC) $(UPCFLAGS) $(THREADS) UOMS.upc -c -I./timers -o UOMS.o
	$(UPCLINK) $(UPCFLAGS) $(THREADS) -o ../bin/UOMS.$(NTHREADS) *.o \
	timers/timers.o utils/*.o

usage :
	@ echo "Type \"make help\" for usage"
	@ echo " "

timers.o : timers/timers.c
	$(CC) $(CFLAGS) timers/timers.c -c -o timers/timers.o

affinity.o : affinity.upc
	$(UPCC) $(UPCFLAGS) $(THREADS) affinity.upc -c -o affinity.o

mem_manager.o : mem_manager.upc
	$(UPCC) $(UPCFLAGS) $(THREADS) mem_manager.upc -c -o mem_manager.o

init.o : init.upc
	$(UPCC) $(UPCFLAGS) $(THREADS) init.upc -c -o init.o

data_print.o : utils/data_print.upc
	$(UPCC) $(UPCFLAGS) $(THREADS) -I./ utils/data_print.upc -c -o utils/data_print.o

utilities.o : utils/utilities.upc
	$(UPCC) $(UPCFLAGS) $(THREADS) utils/utilities.upc -c -o utils/utilities.o

help :
	@ echo "Usage: "
	@ echo "make NTHREADS=NUMBER_OF_UPC_THREADS"
	@ echo " "
	@ echo "E.g., for 128 threads:"
	@ echo "make NTHREADS=128"
	@ echo " "

clean	:
	rm -f *.o
	rm -f timers/*.o
	rm -f utils/*.o

mrproper : clean
	rm -Rf *pthread-link*
	find ../ -name '*~' | xargs rm -Rf
	rm -Rf ../bin/*
	rm -Rf config/make.def

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge