Added KData and genK function
getKDataExpr is used to inspect for used array names in kernels. This way we can transfer the correct arrays to the GPU.
Outputting kernel with parameters.
Generating some opencl memory code. Size is a bit off. need to be passed to function or something.
Passing size to setupOCLMemory
restructuring code. It's in the wrong order currently.
Minor clean
outputted file now compiles with gcc, but return array in zipWith example still has bogus values.
Start working on nestPar
Corrected order of arguments in mapP. arr switched places with f.
added error guard on nestPar
nestPar seems to work. mapP generates a kernel.
Added modulus operator to Expr.
removed commented code in GenOCL.hs
Code cleaning.
added fold.c example of a parallel-ish fold using for-loops (not actually parallel).
started implementing a different fold.
refined codegen for If. Doesn't generate empty else clause anymore.
generating if-statements for Fold. Conditions are off. Bodies missing.
Added == to Expr