- Go to your work directory:
cd ~/work
- Clone repository using:
git clone git@github.com:benlee55psu/workshop.git
- Go to the github site https://github.com/benlee55psu/workshop
- Click on the green "clone or download" button. Download ZIP.
- Unzip files and note the local directory of the workshop directory
- Copy workshop directory to ACI. Open the command line on your local machine. Then type in the following:
cd ~/<LocalDirectory>
scp -r ../workshop <userid>@datamgr.aci.ics.psu.edu:~/work/
- Go to the workshop directory on ACI
cd ~/work/workshop/
- Install necessary packages. Type the following into the command line:
module load gcc/5.3.1
module load openmpi/1.10.1
Rscript installPackages.R
(Ignore Open Fabrics and MXM errors. This happens when you are running tests on the login node, which cannot access the MPI enviroment.)
This takes ~1.7 minutes
- Go to the proper directory
cd ~/work/workshop/exercise1/
- Run job using Rscript
Rscript exercise1.R
-
Copy Files to your machine
scp <userid>@datamgr.aci.ics.psu.edu:~/workshop/exercise1/. <LocalDirectory>/workshop/exercise1/.
This takes ~2 minutes
- Go to the proper directory
cd ~/work/workshop/exercise2/
- submit the PBS script
qsub exercise2.PBS
qstat -a -u <userid>
- Copy Files to your machine
scp <userid>@datamgr.aci.ics.psu.edu:~/workshop/exercise2/. <LocalDirectory>/workshop/exercise2/.
This takes ~15 seconds vs. ~2 minutes for Exercise 2
- Go to the proper directory
cd ~/work/workshop/exercise3/
- submit the PBS script
qsub exercise3.PBS
qstat -a -u <userid>
- Copy Files to your machine
scp <userid>@datamgr.aci.ics.psu.edu:~/workshop/exercise3/. <LocalDirectory>/workshop/exercise3/.
Notes
- Please make sure Rmpi is installed (Installation instructions) before running exercise 4.
- FOR JOBS USING <100 PROCESSORS (<5 NODES), OPEN QUEUE IS AN OPTION.
- FOR JOBS USING 100+ PROCESSORS (5+ NODES), USE AN ALLOCATION.
- This takes ~31 seconds vs.~15 seconds for Exercise 3 vs. ~2 minutes for Exercise 2
- Slower times due to communication costs.
- Go to the proper directory
cd ~/work/workshop/exercise4/
- Submit the PBS script
qsub exercise4.PBS
qstat -a -u <userid>
- Copy Files to your machine
scp <userid>@datamgr.aci.ics.psu.edu:~/workshop/exercise4/. <LocalDirectory>/workshop/exercise4/.
- Go to the proper directory
cd ~/work/workshop/exercise5/
- run the following bash command to send 20 separate PBS jobs
bash exercise5.bashrc
qstat -a -u <userid>
- Copy Files to your machine
scp <userid>@datamgr.aci.ics.psu.edu:~/workshop/exercise5/. <LocalDirectory>/workshop/exercise5/.