is_device_ptr

Function is_device_ptr 

Source
pub fn is_device_ptr(addr: usize) -> bool
Expand description

Returns true when addr is a CUDA device pointer.

Probes the CUDA driver via cuPointerGetAttribute; returns false when CUDA is unavailable or the pointer is not device memory.