by device memory