add dpl function but invalid device pointer bug
Former-commit-id: fa083290c160ee24b5da350a7a3889cfa4ba2509