Loading...
 

Software

We present software installed:

  1. Rocks cluster 6.2,
  2. CentOS 6.9,
  3. python {2.7, 3.3}
  4. Matlab
  5. etc

1. Rocks cluster 6.2


2. CentOS 6.9


3. Python


Στην υπολογιστική συστοιχία Πυθαγόρας, έχει εγκατασταθεί η Python 2.7 και οι αντίστοιχες βιβλιοθήκες NumPy ....

Εκτέλεση κώδικα python
Για την υποβολή προγραμμάτων γραμμένα σε γλώσσα Python, στον SGE του Πυθαγόρα, θα χρειαστείτε το αρχείο πηγαίου κώδικα σας μέσα στο φάκελλο source π.χ. script.py και το αντίστοιχο qsub script στο φάκελλο data π.χ. script.qsub.

Το αρχείο script.qsub, θα περιέχει της παραμέτρους της εντολής qsub όπως παρουσιάστηκαν παραπάνω, για παράδειγμα:

#!/bin/bash -l #$ -S /bin/bash # Starting parameters for qsub ##################################### #$ -t 1-5 #$ -o logs #$ -e logs #$ -j y filename=‘echo $JOB_NAME | cut -d "." -f1‘ echo "Start - ‘date‘" echo "-------------------------------" cd ~/source python ${filename}.py echo "-------------------------------" echo "Finish - ‘date‘"


4. Matlab


The standard way to use X-Windows is to tunnel the X-Windows protocol through an ssh connection. If you open your ssh session with the '-X' option, it will automatically set up the necessary tunnel and environment variables.
localhost$ ssh -X username at linuxlogin.cac.cornell.edu

user$ echo $DISPLAY localhost:11.0 linuxlogin$ gs

If all goes well, you should see a valid setting for your DISPLAY environment variable, then have a blank window presented to you by gs (Ghostscript, the PostScript and PDF previewer). Note, if gs is not installed on the machine you're logging into, you can try another X client such as xclock, xlogo, emacs, etc.