Proposals:Compiling on Bluegene Supercomputer: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
No edit summary
Line 28: Line 28:
There are two ways to do this
There are two ways to do this


*Compile using the MPI wrapper itself
*(1)Compile using the MPI wrapper


The problem with this is that the MPI wrapper itself is not small, and there is no need to set the optimization flags (which makes compilation slow usually) used by the wrapper. More often than not it will interfere adversely with your CMake setup. Nevertheless, this is one option.
The problem with this is that the MPI wrapper itself is not small, and there is no need to set the optimization flags (which makes compilation slow usually) used by the wrapper. More often than not it will interfere adversely with your CMake setup. Nevertheless, this is one option.


*Compile using the gnu compiler used by the wrapper
*(2)Compile using the gnu compiler used by the MPI wrapper


The problem with this is that CMake will force the C/C++ compiler for all projects that use ITK later, to be the one used for compiling ITK. This means, you cannot just use the MPI Wrapper for all future compilation of the other projects(that use ITK) by setting CMAKE_C(XX)_COMPILER. So, the way I did it is to have a local copy of the gnu compiler (used inside the wrapper) and name it as mpicc/mpicxx. Later, I'll replace it with the original MPI wrappers for all my future projects. I know, this is a dirty hack for now. CMake is happy, and so are we!
The problem with this is that CMake will force the C/C++ compiler for all projects that use ITK later, to be the one used for compiling ITK. This means, you cannot just use the MPI Wrapper for all future compilation of the other projects(that use ITK) by setting CMAKE_C(XX)_COMPILER. So, the way I did it is to have a local copy of the gnu compiler (used inside the wrapper) and name it as mpicc/mpicxx. Later, I'll replace it with the original MPI wrappers for all my future projects. I know, this is a dirty hack for now. CMake is happy, and so are we!

Revision as of 23:54, 25 March 2008

This page describes the changes that are needed in ITK in order to make possible to build it in the Bluegene/L supercomputer.

The tests have been developed at the Bluegene/L machine available at the Rensselaer Polytechnic InstituteRPI. This computer, located at the RPI Computational Center for Nanotechnology Innovations is the seventh worlds largest supercomputer, according to the Top500 list released on June 2007.

Developers

  • Arunachalam Narayanaswamy
  • Pat Marion
  • Luis Ibanez

List of Changes using the mpixlC compiler

  • Remove optimization (use -O0) from the following files
    • Insight/Utilities/vxl/v3p/netlib/linpack
      • csvdc.c
      • zsvdc.c
    • Done by adding a SET_SOURCE_FILES_PROPERTIES() command in the CMakeLists.txt file of "netlib".

You can find the TryRunResults.cmake file here

Too many changes to be made along the way. The maximum I got to was 60%. I've deferred this job until I can solve the current compile error.

Notes for compiling using mpicc

This is a MPI wrapper written over the gnu compiler for PowerPC.

There are two ways to do this

  • (1)Compile using the MPI wrapper

The problem with this is that the MPI wrapper itself is not small, and there is no need to set the optimization flags (which makes compilation slow usually) used by the wrapper. More often than not it will interfere adversely with your CMake setup. Nevertheless, this is one option.

  • (2)Compile using the gnu compiler used by the MPI wrapper

The problem with this is that CMake will force the C/C++ compiler for all projects that use ITK later, to be the one used for compiling ITK. This means, you cannot just use the MPI Wrapper for all future compilation of the other projects(that use ITK) by setting CMAKE_C(XX)_COMPILER. So, the way I did it is to have a local copy of the gnu compiler (used inside the wrapper) and name it as mpicc/mpicxx. Later, I'll replace it with the original MPI wrappers for all my future projects. I know, this is a dirty hack for now. CMake is happy, and so are we!


From here on, I'll talk about the problems that you *might* encounter in the method 2. Feel free to try 1


You can find the TryRunResults.cmake file here . You would need this after configuring the build for the first time. These are necessary for the build system to know more about the target system because we are cross compiling.


  • Remove -fp_port from compiler options for compiling Utilities/vxl/v3p/netlib/blas/slamch.c and Utilities/vxl/v3p/netlib/blas/dlamch.c
    • -fp_port option belongs to icc(?), I dont know how it crept into this. May be the compiler identification step was wrong?
    • For the time being, one could do 'make -n|grep fp_port'. Run the commands manually after removing -fp_port. Then continue with 'make'.