Function convert_specific_address_space_to_generic

Source
pub unsafe fn convert_specific_address_space_to_generic<T>(
    ptr: *const T,
    address_space: AddressSpace,
) -> *const T
Expand description

Converts a pointer in a specific address space, to a generic address space. This maps directly to the cvta PTX instruction.

ยงSafety

The pointer must be valid for an instance of T, and the pointer must fall in the specific address space in memory, otherwise Undefined Behavior is exhibited.