Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MATLAB/fortran on a cluster?

  1. Feb 23, 2008 #1
    So for our senior design project we have some numerical simulation that takes awhile to run. It takes about 1.5(min) to crunch through each pass of an algorithm on my 4GB, 2x@GHz processor. We need to run through about 1000 - 2000 iterations.

    So on my laptop, this is about 1-2 days. There is no way I'm going to let my laptop run for this long.

    Our senior design mentor said we can use his Linux cluster to run the simulation, but he only has C and Fortran setup on it.

    Instead of going through anymore details on here and possibly not getting a reply, I'm just going to ask if anyone has experience using a Linux cluster?

    Thanks
     
  2. jcsd
  3. Feb 23, 2008 #2

    f95toli

    User Avatar
    Science Advisor
    Gold Member

    Yes, a couple of years ago I used a Linux cluster (as far as I remember we used 5x4 CPUs, i.e 5 computers with 4 CPUs each) to do some Monte Carlo simulations. The program was written in F77 (not my choice...) and an implementation of MPI.
    It worked very well.

    However, if you are new to parallell processing and MPI it will probably take you a few days to get started. There is multiprocessor toolbox for Matlab which might be easier to use than fortram/MPI, but I have never used it.
     
  4. Feb 23, 2008 #3
    Thanks for the reply. After looking into the problem, we have decided to stay away from the cluster.

    Neither the professor, myself, or my senior design partner has used the MATLAB distributed toolbox before, so it would take a great deal of time to setup.

    Also, my partner and I have unfortunately never used Fortran, so learning Fortran and rewriting our code would also take some time to do.

    We have just decided to export the algorithm to a executable file, and run it on multiple Window's computers. It is kind of a hack way of doing it, since we basically have to copy the executable manually over to each machine and run it by hand, but it will be a lot faster than getting up and running with the other two ways.

    Damn... I wish we would have just started with Fortran in the first place. That would have been a great learning experience to pick up Fortran, and then get experience using a Linux cluster.

    Again, thanks for the reply!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: MATLAB/fortran on a cluster?
  1. Fortran to Maple (Replies: 0)

  2. Fortran question (Replies: 2)

Loading...