def device_pointer_type(devmem):
 ptrtype = c_int(0)
 _device_pointer_attr(devmem, enums.CU_POINTER_ATTRIBUTE_MEMORY_TYPE, ptrtype)
 map = {enums.CU_MEMORYTYPE_HOST: 'host', enums.CU_MEMORYTYPE_DEVICE: 'device', enums.CU_MEMORYTYPE_ARRAY: 'array', enums.CU_MEMORYTYPE_UNIFIED: 'unified'}
 return map[ptrtype.value]

def device_pointer_type ( devmem ) : ptrtype = c_int ( 0 ) _device_pointer_attr ( devmem , enums . CU_POINTER_ATTRIBUTE_MEMORY_TYPE , ptrtype ) map = { enums . CU_MEMORYTYPE_HOST : 'host' , enums . CU_MEMORYTYPE_DEVICE : 'device' , enums . CU_MEMORYTYPE_ARRAY : 'array' , enums . CU_MEMORYTYPE_UNIFIED : 'unified' } return map [ ptrtype . value ]
query the device pointer type: host .