Operation Manual
Setup:
-
Download the files from GitHub by entering the following command:
git clone https://github.com/jorgeorodriguez/ISTA520_midterm.git
-
Download CCTools 4.0.2 & Installing
wget http://www.nd.edu/~ccl/software/files/cctools-4.0.2-source.tar.gz cd ~/cctools-4.0.2-source ./configure --prefix ~/cctools && make install
-
Set environment variables by running the following commands:
export PATH=~/cctools/bin:${PATH} export PYTHONPATH=~/cctools/lib/python2.4/site-packages:~/cctools/lib/python2.6/site-packages:${PYTHONPATH}
Get started:
-
Run the following script to split the files into sections for benchmarking:
python splitting_densityGrid.py
-
Now we need to take take the IDs from the grav_pos.txt file: python split_grav_pos.py
-
We can now run workqueue to give jobs to workers. This workqueue needs prism.py and grav_per_point.py so make sure they are in the directory
python grav_wq.py
-
Next, we send workers to start processing the tasks. This command will submit a worker to lima with a timeout period of 10 seconds, using port number 54601. The last value will specify how many workers you would like to send for this job
torque_submit_workers -d all -t 10 lima.futuregrid.org 54601 1
-
The grav_wq.py script will generate several output files that will need to be combined into one. For that we can run:
merge.output.py
-
Finally, we can generate a checksum on the final output file to make sure it maintains its integrity:
md5sum finalfile.txt