
a “mounts” entry, you will need to create one by clicking on the top tool bar
“Directory→New Subdirectory” and rename the new directory to mounts (by changing
the value of the “name” attribute in the bottom part of the window); click on
“Domain→Save changes”. Click on the newly created “mounts”, then on “Edit→Add”
and then three times on “Directory→New property”. With these commands, we have
created a sub-entry under mounts and three additional properties for this new entry. We
have to change now these new property entries to:
Property: Value:
name mmac-servr00.local:/NetCommon
dir /NetCommon
type Nfs
opts -P
After having entered the above entries, click on “Domain→Save changes”. Now,
automount is told to mount the “/NetCommon” folder from mmac-servr00.local using
nfs to the local mount point “/NetCommon”. All there is left is to create the local mount
point using a terminal window, entering the commands:
sudo mkdir /NetCommon
sudo chmod 777 /NetCommon”.
The easiest thing to do now is to restart the computer; alternatively, restarting the
automount daemon may work too: “sudo kill -1 `cat /var/run/automount.pid`”
(note the backward quotes around cat, which will put the results of the enclosed
command in its place).
5. Setting up OpenMPI
OpenMPI can be downloaded in an executable form for OS X from the OpenMPI
website, however these binaries do not have Fortran support, a language is still used by
many, in scientific computing. Additionally we would want an OpenMPI compilation
that uses the Xgrid infrastructure. Thus we are going to download sources and compile
them into binaries, which we will then distribute over all computers. To compile these set
of instructions we have used resources [1][5][8][11][12].
5.1. OpenMpi on S10.4
Download the OSX version of the gfortran binaries from [13]; once downloaded,
install them. The gfortran libraries will be installed in /usr/local/gfortran, thus we will
need to extend our search path. Edit the /etc/profile file (e.g.,
“
sudo emacs /etc/profile”) and add “:/usr/local/gfortran/bin” to the end of the
PATH variable (close the terminal window, open a new one and see that typing
“gfortran” invokes the compiler).
Download OpenMPI sources from [8]. Open a terminal window and become
superuser “su –“. Move the source tar file to a suitable directory (e.g.,
/var/private/root)
and unpack it (“tar –xvf openmpi*.tar”); change into the
directory containing the source (e.g., “
cd openmpi-1.2.3”). Create a directory for your
build and change to it, configure the compilation, build it, and install it:
mkdir build
Comentários a estes Manuais