allocate bytebuffer inside CUDA-C Lib - 4