Computer l-1d43-01.cse.sc.edu
through l-1d43-26.cse.sc.edu
, and
l-3d22-01.cse.sc.edu
through l-3d22-20.cse.sc.edu
are available to use. Choose one randomly to reduce the chance of logining in one machine by multiple users the same time, which could overload the machine. Check Development Machines for details about login.
ssh l-1d43-26.cse.sc.edu -p 222
$HOME/papi-install
(You only need to do this once.)$ wget http://icl.utk.edu/projects/papi/downloads/papi-5.6.0.tar.gz
$ tar vxfz papi-5.6.0.tar.gz
$ cd papi-5.6.0/src
$ ./configure --prefix=$HOME/papi-install
$ make
$ make install
papi_example.c
file (only once)$ cd $HOME
$ wget https://passlab.github.io/CSCE513/resources/papi_example.c
$ export LD_LIBRARY_PATH=$HOME/papi-install/lib:$LD_LIBRARY_PATH
$ gcc -I$HOME/papi-install/include -L$HOME/papi-install/lib papi_example.c -lpapi -o papi_example
$ ./papi_example 4096
INS: 1835627636, CYC: 1869833334, L1 Misses: 1, CPI: 1.220455
======================================================================================================
AXPY: Y[N] = Y[N] + a*X[N], N=4096
------------------------------------------------------------------------------------------------------
Performance: Runtime (ms) MFLOPS Error (compared to base)
------------------------------------------------------------------------------------------------------
axpy_base: 0.999928 8.192594 0