RockCluster: Submit Job: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
No edit summary
Onnowpurbo (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
* http://www.photonlimited.com/~johns/tachyon/
* http://www.photonlimited.com/~johns/tachyon/
* http://www.photonlimited.com/~johns/tachyon/files/0.99b2/
* http://www.photonlimited.com/~johns/tachyon/files/0.99b2/
Copy ke front end rockcluster
scp tachyon-0.99b2.tar.gz root@192.168.0.120:
Masuk ke front end rockcluster
ssh root@192.168.0.120
lakukan
cd ~
tar xzf tachyon-0.99b2.tar.gz
cd tachyon/unix
Buka
vi Make-arch


Lakukan
Lakukan


* Cari config option untuk "linux-lam"
* Copy set option ini ke entry baru.
* Ubah di new entry linux-lam ke linux-mpich
* Ubah "CC = hcc" ke "CC = gcc"
* Ubah -I$(LAMHOME)/h ke -I/opt/mpich2/gnu/include
* Ubah -L$(LAMHOME)/lib ke -L/opt/mpich2/gnu/lib
* Ubah -lmpi to -lmpich
* Save
Jalankan
cd ~
cd tachyon/unix
make linux-mpich
tachyon binary akan tampak di compile/linux-mpich/.
cd ~
vi machines
isi dengan misalnya
compute-0-0
compute-0-1
compute-0-2


Jalankan Tachyon di tiga (3) slave machine dengan perintah


  1.  Copy the file tachyon-0.97.tar.gz (Tachyon source and examples) from the workshop CD and untar them in your home directory with:
cd ~
/opt/mpich2/gnu/bin/mpirun -v -np 3 -machinefile machines \
    tachyon/compile/linux-mpich/tachyon +V tachyon/scenes/balls.dat


          tar xzf tachyon-0.97.tar.gz
==Submit Job Menggunakan qsub==


  2. cd tachyon/unix
Cek
  3. Use a text editor to open the file Make-arch
  4. Search for the config options for "linux-lam"
  5. Copy this set of options to a new entry.
  6. Change (in the new entry) linux-lam to linux-mpich
  7. Change "CC = hcc" to "CC = gcc"
  8. Change -I$(LAMHOME)/h to -I/opt/mpich/gnu/include
  9. Change -L$(LAMHOME)/lib to -L/opt/mpich/gnu/lib
  10. Change -lmpi to -lmpich
  11. Save, quit the editor and run "make linux-mpich" to build tachyon. If this doesn't work you probably missed on of the edits above, or applied them in the wrong place. The tachyon binary will end up in compile/linux-mpich/.
  12. cd (back to your home directory)
  13. Use a text editor to create the file machines containing:


          compute-0-0
qstat -f
          compute-0-1
          compute-0-2


  14. Run Tachyon on the three slave machines with:
Cek


          /opt/mpich/gnu/bin/mpirun -v -np 3 -machinefile machines \
qconf -sq compute-0-0.q
            tachyon/compile/linux-mpich/tachyon +V tachyon/scenes/balls.dat
qconf -sq compute-0-1.q
qconf -sq compute-0-2.q


  15. Look at the timing output, which is broken into different stages of the calculation. Run on two and one processors (change -np 3) and calculate speedups for the different stages as well as the total time.
Buat file


vi tachyon.job


isi


==Submit Job Menggunakan qsub==
#$ -cwd
#$ -j y
#$ -S /bin/bash
/opt/mpich2/gnu/bin/mpirun -v -np $NSLOTS -machinefile $TMPDIR/machines \
  tachyon/compile/linux-mpich/tachyon +V tachyon/scenes/balls.dat


Submit job (untuk 3 processor)


qsub -pe mpich 3 tachyon.job


==Referensi==
==Referensi==

Latest revision as of 03:37, 30 July 2011

Submit Job Menggunaan mpirun

Ambil source code tachyon dari

Copy ke front end rockcluster

scp tachyon-0.99b2.tar.gz root@192.168.0.120:

Masuk ke front end rockcluster

ssh root@192.168.0.120

lakukan

cd ~
tar xzf tachyon-0.99b2.tar.gz
cd tachyon/unix

Buka

vi Make-arch

Lakukan

  • Cari config option untuk "linux-lam"
  • Copy set option ini ke entry baru.
  • Ubah di new entry linux-lam ke linux-mpich
  • Ubah "CC = hcc" ke "CC = gcc"
  • Ubah -I$(LAMHOME)/h ke -I/opt/mpich2/gnu/include
  • Ubah -L$(LAMHOME)/lib ke -L/opt/mpich2/gnu/lib
  • Ubah -lmpi to -lmpich
  • Save

Jalankan

cd ~
cd tachyon/unix
make linux-mpich

tachyon binary akan tampak di compile/linux-mpich/.

cd ~
vi machines

isi dengan misalnya

compute-0-0
compute-0-1
compute-0-2

Jalankan Tachyon di tiga (3) slave machine dengan perintah

cd ~
/opt/mpich2/gnu/bin/mpirun -v -np 3 -machinefile machines \
    tachyon/compile/linux-mpich/tachyon +V tachyon/scenes/balls.dat

Submit Job Menggunakan qsub

Cek

qstat -f

Cek

qconf -sq compute-0-0.q
qconf -sq compute-0-1.q
qconf -sq compute-0-2.q

Buat file

vi tachyon.job

isi

#$ -cwd
#$ -j y
#$ -S /bin/bash
/opt/mpich2/gnu/bin/mpirun -v -np $NSLOTS -machinefile $TMPDIR/machines \
  tachyon/compile/linux-mpich/tachyon +V tachyon/scenes/balls.dat

Submit job (untuk 3 processor)

qsub -pe mpich 3 tachyon.job

Referensi

Pranala Menarik