Quantcast
Channel: High Performance Computing Virtual Laboratory - Parallel Programming
Browsing latest articles
Browse All 8 View Live

It doesn't work. Where can I get help?

All of these things are documented at http://docs.sun.com , but the mass of information on that site makes it a bit difficult to know where to look. Try using the search engine.If you have questions...

View Article


How do I compile and run MPI code on HPCVL clusters ?

To use MPI on our clusters, you will have to do the following things:Include header files on the top of all subroutines that use MPI, i.e. for Fortran INCLUDE 'mpif.h' and for C #include...

View Article


How do I parallelize my code with MPI?

A very simple example of how to parallelize code with MPI is given in the monte.f Fortran program.Only a few MPI commands are necessary to parallelize this Monte-Carlo calculation of pi. The first call...

View Article

What is MPI and when do I use it?

Sometimes it is necessary to re-write the code in a parallel fashion, so that it can be executed on several separate processors, or indeed machines, separately. For this, it is necessary to establish...

View Article

How do I force multi-thread parallelization? How to use compiler directives?

The compiler will be very conservative about multithreading loops automatically. If there is the slightest possibility of data dependencies, it will refuse to do it if -xautopar is used. Function calls...

View Article


How can I use multiple threads to get parallel performance out of my serial...

The compilers running on HPCVL clusters are discussed in our Compiler FAQ. They have options that cause it to attempt to parallelize loops that have no dependencies by multi-threading them. The...

View Article

How do I "parallelize" my code?

Here are 4 steps that should be considered to "parallelize" your code:Optimize the serial version as much as you can. Try to make it as "simple" as possible, avoiding nested loops and loops with...

View Article

Will my serial code run in parallel without changes?

No. At the very least, you will have to recompile it with "parallel options" and to set a few environment variables. For most code, that will not be enough either. Fortunately, in many cases, it is not...

View Article

Browsing latest articles
Browse All 8 View Live