4096 Dec 3 13:10 coi
4096 Dec 3 13:10 directive
1084 Dec 2 10:07 micrun
4096 Dec 3 13:10 mpi_openmp
4096 Dec 3 13:10 offload


Add the following to your .bashrc file

module load PrgEnv/intel/default >& /dev/null
module load impi/intel/4.1.1 >& /dev/null
module load utility  >& /dev/null

The next time you login your environment should be set to build and run the examples. Each directory has a makefile and batch runs scripts.

For example:i

[tkaiser@mio001 phi]$ cd coi/
[tkaiser@mio001 coi]$ cd hello_world/
[tkaiser@mio001 hello_world]$ make
mkdir -p debug
g++ -L/opt/intel/mic/coi/host-linux-debug/lib -Wl,-rpath=/opt/intel/mic/coi/host-linux-debug/lib -I /opt/intel/mic/coi/include -lcoi_host -Wl,--enable-new-dtags -g -O0 -D_DEBUG -o debug/hello_world_source_host hello_world_source.cpp
mkdir -p debug
/usr/linux-?1om-4.7/bin/x86_64-?1om-linux-g++ -L/opt/intel/mic/coi/device-linux-debug/lib -I /opt/intel/mic/coi/include -lcoi_device -rdynamic -Wl,--enable-new-dtags -g -O0 -D_DEBUG -o debug/hello_world_sink_mic hello_world_sink.cpp
mkdir -p release
g++ -L/opt/intel/mic/coi/host-linux-release/lib -Wl,-rpath=/opt/intel/mic/coi/host-linux-release/lib -I /opt/intel/mic/coi/include -lcoi_host -Wl,--enable-new-dtags -DNDEBUG -O3 -o release/hello_world_source_host hello_world_source.cpp
mkdir -p release
/usr/linux-?1om-4.7/bin/x86_64-?1om-linux-g++ -L/opt/intel/mic/coi/device-linux-release/lib -I /opt/intel/mic/coi/include -lcoi_device -rdynamic -Wl,--enable-new-dtags -DNDEBUG -O3 -o release/hello_world_sink_mic hello_world_sink.cpp
cp release/hello_world_sink_mic ~
[tkaiser@mio001 hello_world]$ sbatch runfile
Submitted batch job 1733
[tkaiser@mio001 hello_world]$ ls
1733.script  debug  hello_world_sink.cpp  hello_world_source.cpp  hosts.1733  index.html  makefile  release  runfile  slurm-1733.out
[tkaiser@mio001 hello_world]$ cat slurm-1733.out 
/u/pa/ru/tkaiser/.bashrc: line 10: module: command not found
Hello from the sink!
4 engines available
Got engine handle
Sink process created, press enter to destroy it.
Sink process returned 0
Sink exit reason SHUTDOWN OK
[tkaiser@mio001 hello_world]$