2008/11/27

Install MPICH2 in Mandriva 2009 single machine

  1. You will need the following prerequisites : download mpich2 from http://www.mcs.anl.gov/research/projects/mpich2/
  2. Set you environment : export CXX=icpc & export CC=icc
  3. ./configure --prefix=/home/YOU/MPICH2-install/ --enable-cxx --enable-sharedlibs=gcc
  4. make
  5. make install
  6. vi ~/.bashrc and plus "export PATH=/home/YOU/mpich2-install/bin:$PATH"
  7. touch ~/.mpd.conf
  8. touch .mpd.conf
  9. edit .mpd.conf to add line like that secretword=
It will work NOW! If your no-passwd sshd is work.
How to run a MPI program:
  1. mpd &
    mpdtrace
    mpdallexit
  2. mpdboot -n -f mpd.hosts
  3. mpd &
    mpdtrace -l
  4. mpdtrace
  5. mpdringtest 100
  6. mpiexec -n hostname
  7. mpiexec -n 2 c.out
  8. mpdallexit
Summary
  • How many processor: mpdboot -n -f mpd.hosts
  • mpd &
  • Run your parallel program: mpiexec -n 2 c.out
  • Clean mpd: mpdallexit

2008/11/26

The lastest MPICH-1 configure environment parameter

./configure --with-device=ch_p4 --with-arch=LINUX --with-mpe --enable-cxx --enable-mpedbg --enable-debug --enable-traceback -prefix=/opt/MPICH/ -c++=/opt/intel/Compiler/11.0/074/bin/ia32/icpc -cc=/opt/intel/Compiler/11.0/074/bin/ia32/icc -opt=-g -rsh=ssh

Confessions of a Linux Fan: 10 Things You Might Want To Know Before Switching Over To Linux

This article is I refer from http://thinkthick.blogspot.com/2007/07/confessions-of-linux-fan-10-things-you.html


Confessions of a Linux Fan: 10 Things You Might Want To Know Before Switching Over To Linux
1. The basic installation of most mainstream Linux distributions is very easy, but a first time user might run into trouble when trying to depart from the defaults.
2. If you want a proper Linux installation, you are going to have to mess around with the partition table.
3. You will have to learn how to use the command line.
4. All those pretty effects of wobbly windows and cube desktops require some work from the user.
5. Yes, more hardware works with Linux than with Windows. No, not all hardware works 100% like it's supposed to.
6. If you need/want to install a package not included in the repositories, or install from source, you might need to do some research.
7. Most mainstream software manufacturers forget about Linux.
8. Linux is not for the meek of heart.
9. Linux is almost entirely virus/trojan/spyware free, but you will still need some kind of protection.
10. Linux assumes that you are an intelligent person.

2008/11/25

Install Mandriva 2009

I had installed Mandriva 2009 for two days.
There are some of my thoughts:
  1. Beginning, The Mandriva 2009 will choose kernel-server-2.6.27.0
  2. After installed, Do not update anythings
  3. Put you install DVD into DVD-Rom, then update kernel to kernel-desktop-2.6.27.0 (which also support memory to 4GB). Or , suggestion, Using Easy urpmi to update to kernel-desktop-2.6.27.5. Please don't forget to install kernel source code.
  4. Type commend as root: urpmi nvidia
  5. If you are not kernel-desktop-2.6.27.5, it will update automaticly
  6. It will install x11-driver-video-nvidia-177.70, dkms-nvidia-current-177.70, nvidia-current-kernel-2.6.27.5-desktop and so on
  7. Type "XFdark" as root
  8. My video card is GeForce 9400GT, it will suggest choose "GeForce 6100 or later"
  9. Reboot, using kernel-desktop-2.6.27.5
Finished!!!!!!