Guide/cheatsheet for working on the optimization lab with DAS5.
You should already have a ssh user assigned to you and a password.
Replace all usage of kics2001
in this guide with your own username.
(And you may wish to replace fs1.das5.liacs.nl
as well)
Make key and register it with DAS5:
ssh-keygen
ssh-copy-id [email protected]
Copy all files to das5
cd optimizationlab
scp * [email protected]:
Log in to das5
-
Modify driver.py, set ON_DAS5=True
-
Copy updated driver.py to DAS5:
scp driver.py [email protected]:
-
Log in to das5 and run (once):
chmod +x driver.py
-
You can build and test the files when logged in to DAS5:
make module load prun ./driver.py
-
Or you can build files locally and copy the binaries to DAS5:
make scp k_nearest_seq [email protected]: ssh [email protected] "module load prun; ./driver.py"
Here is a script that will build the binaries locally, upload all of them to DAS5 and test them there
#!/bin/bash
make
scp k_nearest_seq [email protected]:
scp k_nearest_simd [email protected]:
scp k_nearest_thread [email protected]:
ssh [email protected] "module load prun; ./driver.py"
Save to test.sh
for example, and run with ./test.sh
(Do chmod +x test.sh
first once)
~/.ssh/config
Host das
User kics2001
HostName fs1.das5.liacs.nl
Then you can replace the use of [email protected]
on ssh calls everywhere with just das
.
For eaxmple ssh das
or scp driver.py das: