I thought -w 3 might be worth revisiting since the speedups seem to have
stabilized some...I only tested this with "-m 1" since prior testing showed
no improvement for more threads.  I am going to test -m 2 -w 3 and will show
those results later.

On two machines -- one Windows 7 desktop several years old with Dual
x5450@3Ghz which we'll call M1.  Newer HP Envy laptop with I7-4702MQ @2.2Ghz
which we'll call M2.
Using r4940 and testing wisdom 2 & 3 (modified the code and recompiled for
that).
Numbers here reported after a few dozen iterations so is a pretty accurate
average.

Mike W9MDB

M1, M2
1.50,1.03       Jt9 -w 2
1.44,1.01       Jt9 -w 3
1.08,0.79       Jt9_omp -w 2
1.06,0.73       Jt9_omp -w 3

So -w 3 gives a 3.8% improvement on the old machine for jt9 and a 1.9%
improvement on the new laptop.
And -w 3 gives a 1.9% improvements on the old machine for jt9_omp and a 7.6%
improvement on the new laptop.

Mike W9MDB

#include <stdio.h>
#include <math.h>

int main(int argc,char *argv[])
{
        char cmdbuf[4096];
        double total=0;
        int n=0;
        int nthreads=1;
        char buf[4096];
        char *cmd="jt9";

        if (argc > 1) {
                nthreads = atoi(argv[1]);
        }
        if (nthreads > 0) {
                cmd = "jt9_omp";
        }
        printf("Testing %s with %d thread%c\n",cmd,nthreads,nthreads==1?'
':'s');
        sprintf(cmdbuf,"TimeMem-1.0.exe %s -p 1 -d 3 -w 3 -m %d
130610_2343.wav | grep Elapsed | cut -f2 -d: >doit.txt",cmd,nthreads);
        while(1) {
                system(cmdbuf);
                FILE *fp=fopen("doit.txt","r");
                fgets(buf,sizeof(buf),fp);
                fclose(fp);
                double sec = atof(buf);
                ++n;
                total+=sec;
                double avg = total/n;
                if (sec > avg*1.5) {
                        printf("\nlong run %.2f avg=%.2f\n",sec,avg);
                }
                printf("%d sec=%.2f avg=%.2f\r",n,sec,avg);
                fflush(stdout);
        }
}


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to