finish alloc for CPU