code: func (d DevicePtr) PtrAttribute(attr PointerAttribute) (unsafe.Pointer, error) {
  	var p unsafe.Pointer
  	devPtr := C.CUdeviceptr(d)
  	a := C.CUpointer_attribute(attr)
  	if err := result(C.cuPointerGetAttribute(p, a, devPtr)); err != nil {
  		return nil, err
  	}
  	return p, nil
  }
docs: // PtrAttribute returns information about a pointer.