===== Quick Start ===== [[doku:win2vsc|How to connect from Windows?]] ==== Login ==== - Log in to your university's designated login server via SSH: \\ # Uni Wien ssh @vsc.univie.ac.at # TU Wien ssh @vsc.tuwien.ac.at # Boku Wien ssh @vsc.boku.ac.at - Transfer your programs and data/input files to your home directory. scp @vsc.univie.ac.at:~/ - (Re-)Compile your application. Please use the latest "Intel" MPI-Environment as described in [[doku:mpi|MPI Environment]]. ==== The job script ==== === header === #$ -N #$ -pe mpich #$ -V #$ -l h_rt=hh:mm:ss #$ -M #$ -m beas # all job events sent via email - "" is a freely chosen descriptive name, - "" is the number of processor cores that you want to use for the calculation. To ensure exclusive reservation of the compute nodes for your job, the value for "" has to be a multiple of 8. - "-V" declares that all environment variables in the qsub command's environment are to be exported to the batch job. - "-l" specifies the job's runtime. This explicit specification is in particular advisable for jobs with short run times, i.e., several hours or even minutes. In order to **reduce the time in the queue**, see also the section on [[doku:runtime|maximum runtime specification.]] - "-M ; -m beas" request E-Mail notifications concerning job events (b .. beginning, e .. end, a .. abort or reschedule, s .. suspend). === run executable === The job can be started in several ways, - as single core job on one core (no MPI) task ./ - as parallel single core job (no MPI) on parallel cores (see also [[doku:sequential-codes|Sequential code]]) - as MPI-enabled application mpirun -m $TMPDIR/machines -np $NSLOTS "" is substituted by the path of the MPI-enabled application. Please note that the particular options to mpirun depend on the MPI version that you use. Current IntelMPI versions, for example, require the option ''-machinefile'' instead of ''-m'':mpirun -machinefile $TMPDIR/machines -np $NSLOTS Please always check for the correct options withmpirun -help ==== example ==== Here is an example job-script, requesting 32 processor cores, which will run for a maximum of 3 hours and sends emails at the beginning and at the end of the job: #$ -N hitchhiker #$ -pe mpich 32 #$ -V #$ -M my.name@example.at #$ -m be #$ -l h_rt=03:00:00 mpirun -machinefile $TMPDIR/machines -np $NSLOTS ./myjob ====Submit your job:==== - qsub where "" is the name of the file you just created. - Check if and where your job has been scheduled:\\ qstat - Inspect the job output. Assuming your job was assigned the id "42" and your job's name was "hitchhiker", you should be able to find the following files in the directory you started it from: \\ $ ls -l hitchhiker.o42 hitchhiker.e42 hitchhiker.po42 hitchhiker.pe42 In this example hitchhiker.o42 contains the output of your job. hitchhiker.e42 contains possible error messages. In hitchhiker.po42 and hitchhiker.pe42 you might find additional information related to the parallel computing environment. - Delete Jobs: $ qdel - View all jobs in the queue: $ qstat -u \* For advanced topics see also [[doku:advanced_topics|Sun grid engine (SGE)]].