moved CUDA code to genchunk.cu
compileCuda() and global _genChunk, compiled as needed.