pub fn is_device_ptr(addr: usize) -> bool
Returns true when addr is a CUDA device pointer.
true
addr
Probes the CUDA driver via cuPointerGetAttribute; returns false when CUDA is unavailable or the pointer is not device memory.
cuPointerGetAttribute
false