The type of buf_size is changed to size_t in mat_v_gpu_blocked.