cj4 log to file after first kernel run

cj4 array is written to file after the first kernel execution.

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

OpenCL: see
#define DEBUG_DUMP_CJ4_OCL
Output files: ocl_cj4.txt

CUDA: see
#define DEBUG_DUMP_CJ4_CUDA
Output files: cuda_cj4.txt
Fixes for unsigned integers reading/writing from/to file
Merge branch 'asc' into dk
ocl_pmalloc - replaced malloc with calloc
Merge pull request #7 from StreamComputing/asc

Asc
Added debug buffer for OpenCL kernel - see DEBUG_OCL

Added a new parameter to the OpenCL kernel, a buffer where each thread
can output one float value for debugging purposes.
Host side:
- uncomment #define DEBUG_OCL
This way the host will alloc memory for the debug buffer. Additionally,
after each kernel run it will transfer data back to host and write it to
debug_buffer.txt
Device side:
- call print_to_debug_buffer_f to write to the debug buffer.
Each thread can output one single value.
Merge branch 'asc' into dk
Merge pull request #8 from StreamComputing/asc

Added debug buffer for OpenCL kernel - see DEBUG_OCL
Fixes for DEBUG_OCL, added similar option for CUDA, DEBUG_CUDA
DEBUG_CUDA fix
Merge pull request #9 from StreamComputing/asc

Asc
Changed atomics and made vector construction explicit

Atomic operations now use the same value as received from the
cmpexchange, thus guaranteeing that the value we are adding does not
come from stale cache. Vector construction also uses the built in syntax
instead of circumventing them trough a function call.
Fixed local atomic
Local fixes

Changed textures into constant memory buffers
Added DEBUG_RUN_STEP to control which kernel run to debug
Merge pull request #10 from StreamComputing/asc

Added DEBUG_RUN_STEP to control which kernel run to debug
Merge branch 'asc' into dk
Output buffer cleared after every iteration
Merge pull request #48 from sharpneli/asc

Asc
reqd_work_group_size set based on CL_SIZE, removed printf