PAR Lecture 23, Thu Apr 13

1   Git

Git is good to simultaneously keep various versions. A git intro:

Create a dir for the project:

mkdir PROJECT; cd PROJECT

Initialize:

git init

Create a branch (you can do this several times):

git branch MYBRANCHNAME

Go to a branch:

git checkout MYBRANCHNAME

Do things:

vi, make, ....

Save it:

git add .; git commit -mCOMMENT

Repeat

We'll test this on /parallel-class/mic/matmul3.cc for the Xeon and the Xeon Phi.

2   Intel tutorials

Today we'll run some Intel tutorials. Students with their laptops are encouraged to participate.

Setting things up in your home dir (or whereever):

  1. mkdir samples; cd samples
  2. source /parallel-class/mic/setup

For each sample,

  1. Get the tarball into your dir with wget
  2. Unpack it.
  3. cd into the subdir
  4. Browse readme.html and follow it.

Here are the samples.

  1. Intel® C++ Compiler - Using Auto-Vectorization Tutorial
  2. Intel® C++ Xeon Phi™ sample
    1. LEO_tutorial
    2. Sample_c: several programs.
  3. Tachyon samples with various backends.

Comments

Comments powered by Disqus