Parallel Computing: see us at a conference near you

I've been getting periodic reports back from the team this week on how things are going at PDC.  Customers seem to be very jazzed about parallel computing, our sessions have been enthusiastically received, and my team's debugger and profiler work seems especially popular.  The team also tells me that those customers interested in parallel computing are particularly intelligent and attractive people.  Okay, I made up that last bit; even the homely and dull-witted are interesting in parallel computing.  Okay, I should really stop now.  Anyhow, if you're like me and didn't have the opportunity to attend PDC in person this year, there are still a few more opportunities this month to meet the team and see first hand what we're doing for Visual Studio 2010:

I'll be speaking at the two European events, so feel free to get in touch if you'd like to chat in person.

Comments (8)

  1. Andre says:

    In case you are already in Berlin Nov 15, WWE Smackdown will be there ๐Ÿ˜‰

    I think a match against Big Show would be fair for what you did with the MFC!

  2. Andre says:

    Totally forgot, Nov 19 plays Germany against England in Berlin (soccer of course ๐Ÿ˜‰

  3. WWE Smackdown *and* a Germany-England match?! ๐Ÿ™‚

    I won’t be in Berlin until the 18th, though…. I will try to catch the football match at a bar.  Should be big fun!

  4. Andre says:

    Bar is lame, I’m sure your German MS office can hook you up with tickets.

    If not let me know and I hook you up with a proper shirt and a ticket for the guest corner ๐Ÿ˜‰

  5. It’s actually quite tempting to attend in person, but my keynote in the next morning, so I’ll probably have to admire the match from afar.  ๐Ÿ™‚

  6. Parallel Merge Sort problem says:

    hi sir,

    we’re trying develop parallel program for merge sort. But in parallel taking more time than sequential time. We tried for 2 processor. If anybody give solution it will be very helpfull  …..tnanks & regards …. Samir Kumar Ghosh & Srinivas Karur. Follow our code…



    * FILE: mergesort.c


    *   The master task distributes an array to the workers in chunks, zero pads for equal load balancing

    *   The workers sort and return to the master, which does a final merge


    #include <stdio.h>

    #include <stdlib.h>

    #include <math.h>

    #include <mpi.h>

    //#define N 100000

    #define MASTER 0 /* taskid of first task */

    void showVector(int *v, int n, int id);

    int * merge(int *A, int asize, int *B, int bsize);

    void swap(int *v, int i, int j);

    void m_sort(int *A, int min, int max);

    double startT, stopT;

    double startTime;

    /*function to print a vector*/

    void showVector(int *v, int n, int id)


    int i;

    printf("%d: ",id);


    printf("%d ",v[i]);



    /*function to merge vectors*/

    int * merge(int *A, int asize, int *B, int bsize) {

    int ai, bi, ci, i;

    int *C;

    int csize = asize+bsize;

    ai = 0;

    bi = 0;

    ci = 0;

    /* printf("asize=%d bsize=%dn", asize, bsize); */

    C = (int *)malloc(csize*sizeof(int)); /*the array can be statically allocated too*/

    while ((ai < asize) && (bi < bsize)) {

    if (A[ai] <= B[bi]) {

    C[ci] = A[ai];

    ci++; ai++;

    } else {

    C[ci] = B[bi];

    ci++; bi++;



    if (ai >= asize) /*if A is shorter*/

    for (i = ci; i < csize; i++, bi++)

    C[i] = B[bi];

    else if (bi >= bsize) /*if B is shorter*/

    for (i = ci; i < csize; i++, ai++)

    C[i] = A[ai];

    for (i = 0; i < asize; i++)

    A[i] = C[i];

    for (i = 0; i < bsize; i++)

    B[i] = C[asize+i];

    /* showVector(C, csize, 0); */

    return C;


    void swap(int *v, int i, int j)


    int t;

    t = v[i];

    v[i] = v[j];

    v[j] = t;


    void m_sort(int *A, int min, int max)


    int *C; /* dummy, just to fit the function */

    int mid = (min+max)/2;

    int lowerCount = mid – min + 1;

    int upperCount = max – mid;

    /* If the range consists of a single element, it’s already sorted */

    if (max == min) {


    } else {

    /* Otherwise, sort the first half */

    m_sort(A, min, mid);

    /* Now sort the second half */

    m_sort(A, mid+1, max);

    /* Now merge the two halves */

    C = merge(A + min, lowerCount, A + mid + 1, upperCount);



    main(int argc, char **argv)


    int * data;

    int * chunk;

    int * other;

    int m,n;

    int id,p;

    int s = 0;

    int i;

    int step;

    MPI_Status status;





    startT = MPI_Wtime();

    /**************************** master task ************************************/

    if(id == MASTER)


    int r;


    s = n/p;

    r = n%p;

    data = (int *)malloc((n+s-r)*sizeof(int));


    data[i] = random();








    chunk = (int *)malloc(s*sizeof(int));


    m_sort(chunk, 0, s-1);

    /* showVector(chunk, s, id); */


    /**************************** worker task ************************************/




    chunk = (int *)malloc(s*sizeof(int));


    m_sort(chunk, 0, s-1);

    /* showVector(chunk, s, id);*/


         /*data propagation in a tree fashion*/

    step = 1;








    other = (int *)malloc(m*sizeof(int));


    chunk = merge(chunk,s,other,m);

    s = s+m;





    int near = id-step;





    step = step*2;


    stopT = MPI_Wtime();



    FILE * fout;

    printf("%d; %d processors; %f secsn", s, p, (stopT-startT));

    fout = fopen("result.txt","w");







  7. I’m afraid code debugging is not one of the many services I am able to offer on this blog.  ๐Ÿ™‚

    However, you might consider picking up a CTP version of Visual Studio 2010 so that you can diagnose the parallel performance of your code in the profiler.

  8. Jim West says:

    Samir Kumar Ghosh & Srinivas Karur,

    Using MPI adds a great overhead. If you want to develop for a multicore or multiprocessor computer, use C# instead, with threaded programming.

    Or, you can also use Parallel extensions, but they are still in CTP (means risks).

    There are many interesting books to learn threaded and multithreaded programming with C#.


    C# 2008 and 2005 Threaded Programming: Beginnerโ€™s Guide

    Author: Gastón C. Hillar

    395 pages, Expected January 2009

    ISBN 1847197108, ISBN 13 978-1-847197-10-8

    Concurrent Programming on Windows [Amazon Link]

    Author: Joe Duffy

    Publisher: Addison Wesley, Pages: 1,008, November 2008

    ISBN: 0-3214-3482-X

    Programming the Cell Broadband Engineโ„ข Architecture: Examples and Best Practices (.pdf)

    Authors: Abraham Arevalo, Ricardo M. Matinata, Maharaja Pandian, Eitan Peri, Kurtis Ruby, Francois Thomas, Chris Almond

    Publisher: IBM® Redbooks®

    Programming Clojure (Beta)

    Author: Stuart Halloway

    Programming in Scala: Tackle multi-core complexity on the JVM

    Author: Venkat Subramaniam

    This title will be available on or about March 30, 2009

Skip to main content