allocate bytebuffer inside CUDA-C Lib