Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore Notes updates.
00-timing-soln.c Update timing code to (maybe) be Mac compatible.
01-sequential-soln.c Update all demos to new timing code.
01-sequential.c Update all demos to new timing code.
02-flexible-op.c Start work on omp.
02-flexible-soln.c Update all demos to new timing code.
02-flexible.c
03-openmp-soln.c Update all demos to new timing code.
03-openmp.c Update all demos to new timing code.
04-opencl-soln.c Fix timing order (pointed out by Hao Liu).
04-opencl.c
05-mpi-soln.c Update all demos to new timing code.
05-mpi.c Update all demos to new timing code.
README Add README
cl-helper.c Finish CL demo.
cl-helper.h Finish CL demo.
set-governor Finish basic vector add.
timing.h timing.h fixes by Julian Panetta. (Thanks!)
vec-add-soln.cl Add DP pragma to vec-add-soln.cl.
vec-add.cl Remove -start suffix.

README

 * These examples are written in C99. You will need the compiler flag
 * -std=c99 to compile it.
 *
 * To make the timestamp functions and their datatypes available, you need to
pass * -D_XOPEN_SOURCE=500 to the compiler.
 *
 * If you get this error:
 * timing-example.c:(.text+0xd9): undefined reference to `clock_gettime'
 * timing-example.c:(.text+0x108): undefined reference to `clock_gettime'
 * then you'll need to the -lrt flag, too.
 *
 * Summary: Assuming you've saved this file as 'timing-example.c',
 * use this to compile:
 *
 * gcc -std=c99 -D_XOPEN_SOURCE=500 -lrt timing-example.c
 *
 * Andreas Kloeckner, 9/3/2012
Something went wrong with that request. Please try again.