Sunday, September 22, 2013
Notes on setting up the cluster
[jcotham@radium ~]$ cat /proc/cupuinfo
jcotham@radium:~[jcotham@radium ~]$ tar xvf hello.tar
bash: make: command not found
jcotham@radium:~[jcotham@radium ~]$ which make
jcotham@radium:~[jcotham@radium ~]$ man script
root@radium:~[root@radium ~]# sudo yum install make.x86_64
root@radium:~[root@radium ~]# yum install openmpi-devel
jcotham@radium:~[jcotham@radium ~]$ rpm -qa --filesbypkg |grep mpicxx
export PATH=${PATH}:/usr/lib64/openmpi/bin/
[root@radium ~]# wget https://newton.utk.edu/workshop/hello.tar
root@radium:~/hello[root@radium hello]# make
mpicxx -i-dynamic -c hello.cc
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
g++ in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
make: *** [hello.o] Error 1
yum provides */g++
root@radium:~[root@radium ~]# yum install gcc-c++
root@radium:~/hello[root@radium hello]# make
mpicxx -i-dynamic -c hello.cc
cc1plus: error: unrecognized command line option "-i-dynamic"
make: *** [hello.o] Error 1
root@radium:~/hello[root@radium hello]# vi Makefile
root@radium:~/hello[root@radium hello]# make
mpicxx -c hello.cc
mpicxx -o hello hello.o
root@radium:~/hello[root@radium hello]# ./hello
./hello: error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file or directory
root@radium:~/hello[root@radium hello]# which mpicxx
/usr/lib64/openmpi/bin/mpicxx
[root@radium hello]# cd /usr/lib64/openmpi/
[mroot@radium:/usr/lib64/openmpi[root@radium openmpi]# cd lib
[mroot@radium:/usr/lib64/openmpi/lib[root@radium lib]# pushd ~
~ /usr/lib64/openmpi/lib
root@radium:~[root@radium ~]# vi .bashrc
export PATH=${PATH}:/usr/lib64/openmpi/bin/
root@radium:~[root@radium ~]# echo $LD_LIBRARY [K_PATH
:/usr/lib64/openmpi/lib/
/usr/lib64/openmpi/lib
root@radium:~/hello[root@radium hello]# ./hello
Hello World! I am 0 of 1
root@radium:~/hello[root@radium hello]# mpirun -n 2 hello
Hello World! I am 0 of 2
Hello World! I am 1 of 2
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment