Skip to content

alvitawa/ssh-cheatsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

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)

Connect to UvA VPN!

https://student.uva.nl/content/az/vpn-toegang-tot-het-uva-netwerk/download-uvavpn-software/uvavpn-software-downloaden.html

Setup

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

Test on das5

  1. Modify driver.py, set ON_DAS5=True

  2. Copy updated driver.py to DAS5:

    scp driver.py [email protected]:
    
  3. Log in to das5 and run (once):

    chmod +x driver.py
    
  4. You can build and test the files when logged in to DAS5:

    make
    module load prun
    ./driver.py
    
  5. 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)

Tip: make a ssh configuration for DAS5

~/.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:

Alternative: Use VSCode Remote to do everything on the DAS5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published