# HG changeset patch # User Shinji KONO # Date 1387584027 -32400 # Node ID 0296fa2dfe6d1a3f2481c1b5bdcf0c77eb8b32ee # Parent b2d2a16d3b843c5cd035f19562c90975d20bcb69 add test diff -r b2d2a16d3b84 -r 0296fa2dfe6d example/many_task/Makefile --- a/example/many_task/Makefile Sat Dec 21 08:51:43 2013 +0900 +++ b/example/many_task/Makefile Sat Dec 21 09:00:27 2013 +0900 @@ -20,9 +20,13 @@ @echo "Make for OpenCL" @$(MAKE) -f Makefile.gpu +gpu-test: FORCE + @echo "Make for OpenCL" + @$(MAKE) -f Makefile.gpu test + FORCE: clean: @$(MAKE) -f Makefile.macosx clean @$(MAKE) -f Makefile.linux clean - @$(MAKE) -f Makefile.cell clean \ No newline at end of file + @$(MAKE) -f Makefile.cell clean diff -r b2d2a16d3b84 -r 0296fa2dfe6d example/many_task/Makefile.gpu --- a/example/many_task/Makefile.gpu Sat Dec 21 08:51:43 2013 +0900 +++ b/example/many_task/Makefile.gpu Sat Dec 21 09:00:27 2013 +0900 @@ -30,7 +30,10 @@ $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) debug: $(TARGET) - sudo gdb ./$(TARGET) + sudo lldb -- ./$(TARGET) -gpu -g + +test : $(TARGET) + ./$(TARGET) -gpu -g clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) diff -r b2d2a16d3b84 -r 0296fa2dfe6d example/word_count/Makefile --- a/example/word_count/Makefile Sat Dec 21 08:51:43 2013 +0900 +++ b/example/word_count/Makefile Sat Dec 21 09:00:27 2013 +0900 @@ -16,9 +16,13 @@ @echo "Make for OpenCL" @$(MAKE) -f Makefile.gpu +gpu-test: FORCE + @echo "Make for OpenCL" + @$(MAKE) -f Makefile.gpu test + FORCE: clean: @$(MAKE) -f Makefile.macosx clean @$(MAKE) -f Makefile.linux clean - @$(MAKE) -f Makefile.cell clean \ No newline at end of file + @$(MAKE) -f Makefile.cell clean diff -r b2d2a16d3b84 -r 0296fa2dfe6d example/word_count/Makefile.gpu --- a/example/word_count/Makefile.gpu Sat Dec 21 08:51:43 2013 +0900 +++ b/example/word_count/Makefile.gpu Sat Dec 21 09:00:27 2013 +0900 @@ -32,7 +32,10 @@ $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) debug: $(TARGET) - sudo gdb ./$(TARGET) + sudo lldb -- ./$(TARGET) -file c.txt -gpu -g + +test : + ./$(TARGET) -file c.txt -gpu -g clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS)