Merge pull request #4 from StreamComputing/asc

Asc
Merge pull request #5 from StreamComputing/asc

Added DEBUG_E_EL_SUM_PHASE_1 #ifdefs
Merge pull request #6 from StreamComputing/asc

Asc
Does not break vararg nor static qualifier spec

Changed kernel name generation to be without varargs and static
qualifiers.
Added a descriptive comment to change in NB_FUNCTION_NAME
Changed the description comment of NB_FUNCTION_NAME
Merge pull request #46 from sharpneli/asc

Resolves #26
Merge branch 'asc' into dk

Merge Teemu's fix on variadic macros

Conflicts:
	src/gromacs/mdlib/nbnxn_ocl/nbnxn_ocl_kernel_utils.clh
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
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