allocate bytebuffer inside CUDA-C Lib - 2