Merge pull request #45 from StreamComputing/dk

Dk
IN/OUT comments for the OpenCL kernel parameters
f, fshift log to file after first kernel run

f and fshift arrays are written to file after the first kernel
execution.

For the OpenCL version. the results are also compared to the CUDA
results, if the corresponding files are found.

OpenCL: see
#define DEBUG_DUMP_F_OCL
#define DEBUG_DUMP_FSHIFT_OCL
Output files: ocl_f.txt and ocl_fshift.txt

CUDA: see
#define DEBUG_DUMP_F_CUDA
#define DEBUG_DUMP_FSHIFT_CUDA
Output files: cuda_f.txt and cuda_fshift.txt
Fixed nbst.fshift allocation and D2H copy

fshift is a field inside the cl_nb_staging_t data structure.
It is declared as float*, but actually each of its elements is a float3.
Adjusted the allocation and the D2H copy accordingly.
Needs clean-up.
Add energy reduction for cpu
Remove static and device qualifiers
In CPU debug, remove the use of shared memory in cj as well as the CPU specific barriers.
These barriers were wrong and crashed the kernel occassionally as the loop indexes they
are called in are not the same for all threads.