fixed bug in coreLayer_CUDA.cu