Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > pthread > pthread__Exe_Time_vs_Task_Size__Meas
changeset 1:f50569310618
working pthread
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Mon, 14 Nov 2011 11:19:45 +0100 |
| parents | 0565c02d5239 |
| children | d77a1ca881bf |
| files | .hgignore Makefile src/Application/main.c |
| diffstat | 3 files changed, 9 insertions(+), 6 deletions(-) [+] |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/.hgignore Mon Nov 14 11:19:45 2011 +0100 1.3 @@ -0,0 +1,3 @@ 1.4 +nbproject 1.5 +task_size_vs_exe_time 1.6 +glob: *.o
2.1 --- a/Makefile Sat Oct 22 15:04:48 2011 -0700 2.2 +++ b/Makefile Mon Nov 14 11:19:45 2011 +0100 2.3 @@ -1,12 +1,12 @@ 2.4 obj = \ 2.5 src/Application/main.o 2.6 2.7 -NUM_CORES=8 2.8 +NUM_CORES=4 2.9 2.10 bin = task_size_vs_exe_time 2.11 2.12 CC = gcc 2.13 -CFLAGS = -m64 -ffast-math -fwrapv -fno-omit-frame-pointer -O3 -D NUM_CORES=$(NUM_CORES) -g -Wall 2.14 +CFLAGS = -m64 -Isrc/ -ffast-math -fwrapv -fno-omit-frame-pointer -O3 -D NUM_CORES=$(NUM_CORES) -g -Wall 2.15 2.16 $(bin): $(obj) 2.17 $(CC) -o $@ $(obj) -lm -lpthread
3.1 --- a/src/Application/main.c Sat Oct 22 15:04:48 2011 -0700 3.2 +++ b/src/Application/main.c Mon Nov 14 11:19:45 2011 +0100 3.3 @@ -80,13 +80,13 @@ 3.4 3.5 3.6 union workload{ 3.7 - uint32 highLow[2]; 3.8 - uint64 total; 3.9 + uint32_t highLow[2]; 3.10 + uint64_t total; 3.11 }; 3.12 3.13 struct input_t{ 3.14 unsigned int output; 3.15 - uint64 workcycles; 3.16 + uint64_t workcycles; 3.17 }; 3.18 3.19 /* 3.20 @@ -104,7 +104,7 @@ 3.21 3.22 for(m=0; m<repeatations; m++) 3.23 { 3.24 - int32 stamp_startWorkload, stamp_endWorkload; 3.25 + int32_t stamp_startWorkload, stamp_endWorkload; 3.26 saveLowTimeStampCountInto( stamp_startWorkload ); 3.27 for(n=0; n<workload_size; n++) 3.28 {
