InfolabClusterComputeHowtoSingle172012-10-17 00:35:21akrevl162012-10-17 00:34:15akrevl152012-10-17 00:33:35akrevl142012-10-17 00:31:50akrevl132012-10-17 00:31:29akrevl122012-10-17 00:31:13akrevl112012-10-17 00:23:50akrevl102012-10-17 00:22:41akrevl92012-10-17 00:13:40akrevl82012-10-17 00:13:27akrevl72012-10-17 00:11:54akrevl62012-10-17 00:11:21akrevl52012-10-17 00:10:02akrevl42012-10-17 00:05:39akrevl32012-10-16 23:02:23akrevl22012-10-16 23:00:58akrevl12012-10-16 22:59:13akrevlThis HOWTO describes how to run a single core job on the Infolab Compute Cluster. The programWe are going to use just a simple Python script as our main program for this HOWTO. You can download the script here SingleCore.py.
The script starts, records the current time, figures out the hostname it is running on and the username it is running as. Then it sleeps for 10 seconds (so we at least have some impact on the cluster), records the time again and prints out a string that may look a little something like this: It's a good idea to check if the program will run on the target platform. It doesn't make much difference for a Python script, but if you were running a C binary it's worth checking if it runs on the AMD platform. This is where ild1 comes in. The development node ild1 is set up in the same way as the cluster nodes are. So let's test the script on ild1: Note that we are using a full path both to the python executable and to the Python script. The result is as expected: The submission scriptNow that we got the program up and running let's log into the submission node ilhead1 and prepare a submission script. You can download the script here: SingleCore.qsub.sh
We are using a friendly name SingleCoreJob for our submission and we are limiting our job to a single node and a single CPU cure (based on what our script does, there really is no reason to ask for more). We are also limiting the wall clock time to 1 minute. Since our program only sleeps for 10 seconds a 1 minute wall time seems more than enough for the job to complete. Submit the jobNothing left to do but submit the job to the cluster with qsub: If we submitted the job successfully, the resource manager should reply with with the ID of the job and the name of the headnode: Check on the jobWhile the job is running, you can check on it with qstat and showq commands. Please be patient with the showq command as it tends to return timeouts when a lot of jobs are in the queue. The resultsOnce the job is finished it should deposit two files into the directory we ran qsub from: SingleCoreJob.e4651: copy of the standard error stream SingleCoreJob.o4651: copy of the standard output stream Let's see what does our directory contain: Now let's see the content of those files: Excellent, the standard error file is empty and the standard output tells us that our job ran on node iln28 and it finished (as expeted) in 10 seconds.